cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the total number of bronze with rank of 5 and silver more than 1`

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

CREATE TABLE "medals_summary" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of bronze with rank of 5 and silver more than 1`:
```sql
                SELECT COUNT("bronze") FROM "medals_summary" WHERE "rank"='5' AND "silver">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total population from the 2000 census for the municipality that has a 464.5 square km area and a population density in 2010 larger than 1840?`

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

CREATE TABLE "municipalities" (
  "administrative_division" text,
  "area_km" real,
  "population_2000_census" real,
  "population_2010_census" real,
  "population_density_2010_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total population from the 2000 census for the municipality that has a 464.5 square km area and a population density in 2010 larger than 1840?`:
```sql
                SELECT COUNT("population_2000_census") FROM "municipalities" WHERE "area_km"=464.5 AND "population_density_2010_km">1840;
```
## Task
Generate a SQL query to answer the following question:
`What was the sum of the population in 2010 for the division of japeri with an area of 82.9 squared km?`

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

CREATE TABLE "municipalities" (
  "administrative_division" text,
  "area_km" real,
  "population_2000_census" real,
  "population_2010_census" real,
  "population_density_2010_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the sum of the population in 2010 for the division of japeri with an area of 82.9 squared km?`:
```sql
                SELECT SUM("population_2010_census") FROM "municipalities" WHERE "administrative_division"='japeri' AND "area_km"<82.9;
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the game against Atlanta?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the game against Atlanta?`:
```sql
                SELECT "score" FROM "november" WHERE "visitor"='atlanta';
```
## Task
Generate a SQL query to answer the following question:
`In the 1936 summer Olympics what was the date of a match that ended with a score of 6-1?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the 1936 summer Olympics what was the date of a match that ended with a score of 6-1?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "competition"='1936 summer olympics' AND "score"='6-1';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the game that had an end result of 5-2?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the game that had an end result of 5-2?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "result"='5-2';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of losses that have 1 draw and games over 7?`

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

CREATE TABLE "world_championship_group_b_italy" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of losses that have 1 draw and games over 7?`:
```sql
                SELECT COUNT("lost") FROM "world_championship_group_b_italy" WHERE "drawn"=1 AND "games">7;
```
## Task
Generate a SQL query to answer the following question:
`How many rounds had a pick number of more than 10 and Appalachian State as a college?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds had a pick number of more than 10 and Appalachian State as a college?`:
```sql
                SELECT COUNT("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num">10 AND "college"='appalachian state';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest overall where the position was linebacker and the pick number was more than 9?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest overall where the position was linebacker and the pick number was more than 9?`:
```sql
                SELECT MAX("overall") FROM "atlanta_falcons_draft_history" WHERE "position"='linebacker' AND "pick_num">9;
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of the game earlier than 69 with a record of 4–56?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of the game earlier than 69 with a record of 4–56?`:
```sql
                SELECT "score" FROM "game_log" WHERE "game"<69 AND "record"='4–56';
```
## Task
Generate a SQL query to answer the following question:
`What is the game number with a score of 116–138?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game number with a score of 116–138?`:
```sql
                SELECT COUNT("game") FROM "game_log" WHERE "score"='116–138';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of the game against the boston celtics?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of the game against the boston celtics?`:
```sql
                SELECT "score" FROM "game_log" WHERE "opponent"='boston celtics';
```
## Task
Generate a SQL query to answer the following question:
`What is the Game held on february 9?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Game held on february 9?`:
```sql
                SELECT "game" FROM "game_log" WHERE "date"='february 9';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of the game larger than 57 with a Record of 4–55?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of the game larger than 57 with a Record of 4–55?`:
```sql
                SELECT "score" FROM "game_log" WHERE "game">57 AND "record"='4–55';
```
## Task
Generate a SQL query to answer the following question:
`Which Reigon has a Village of Chassagne-Montrachet?`

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

CREATE TABLE "list_of_grand_crus" (
  "grand_cru" text,
  "region" text,
  "village" text,
  "wine_style" text,
  "vineyard_surface_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Reigon has a Village of Chassagne-Montrachet?`:
```sql
                SELECT "region" FROM "list_of_grand_crus" WHERE "village"='chassagne-montrachet';
```
## Task
Generate a SQL query to answer the following question:
`Which Village has a Region of Côte De Nuits, Wine Styles of Red Wine, and a Grand Cru of Latricières-Chambertin?`

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

CREATE TABLE "list_of_grand_crus" (
  "grand_cru" text,
  "region" text,
  "village" text,
  "wine_style" text,
  "vineyard_surface_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Village has a Region of Côte De Nuits, Wine Styles of Red Wine, and a Grand Cru of Latricières-Chambertin?`:
```sql
                SELECT "village" FROM "list_of_grand_crus" WHERE "region"='côte de nuits' AND "wine_style"='red wine' AND "grand_cru"='latricières-chambertin';
```
## Task
Generate a SQL query to answer the following question:
`What is the Vineyeard surface (2010) with a Village of Gevrey-Chambertin, and Grand Cru of Latricières-Chambertin?`

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

CREATE TABLE "list_of_grand_crus" (
  "grand_cru" text,
  "region" text,
  "village" text,
  "wine_style" text,
  "vineyard_surface_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Vineyeard surface (2010) with a Village of Gevrey-Chambertin, and Grand Cru of Latricières-Chambertin?`:
```sql
                SELECT "vineyard_surface_2010" FROM "list_of_grand_crus" WHERE "village"='gevrey-chambertin' AND "grand_cru"='latricières-chambertin';
```
## Task
Generate a SQL query to answer the following question:
`What is the Grand Cru with a Wine Style of Red Wine and Village of Gevrey-Chambertin?`

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

CREATE TABLE "list_of_grand_crus" (
  "grand_cru" text,
  "region" text,
  "village" text,
  "wine_style" text,
  "vineyard_surface_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Grand Cru with a Wine Style of Red Wine and Village of Gevrey-Chambertin?`:
```sql
                SELECT "grand_cru" FROM "list_of_grand_crus" WHERE "wine_style"='red wine' AND "village"='gevrey-chambertin';
```
## Task
Generate a SQL query to answer the following question:
`What is the average pick number of Pennsylvania?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average pick number of Pennsylvania?`:
```sql
                SELECT AVG("pick") FROM "draft_picks" WHERE "school_club_team"='pennsylvania';
```
## Task
Generate a SQL query to answer the following question:
`What is the school/club team of the player with a pick larger than 83?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the school/club team of the player with a pick larger than 83?`:
```sql
                SELECT "school_club_team" FROM "draft_picks" WHERE "pick">83;
```
## Task
Generate a SQL query to answer the following question:
`What is the schoo/club team of the player in round 3?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the schoo/club team of the player in round 3?`:
```sql
                SELECT "school_club_team" FROM "draft_picks" WHERE "round"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest round of the player from UCLA?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest round of the player from UCLA?`:
```sql
                SELECT MIN("round") FROM "draft_picks" WHERE "school_club_team"='ucla';
```
## Task
Generate a SQL query to answer the following question:
`When was –16 (62-71-71-68=272) the winning score?`

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

CREATE TABLE "pga_tour_wins_25" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was –16 (62-71-71-68=272) the winning score?`:
```sql
                SELECT "date" FROM "pga_tour_wins_25" WHERE "winning_score"='–16 (62-71-71-68=272)';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the tournament played on Jun 17, 1973?`

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

CREATE TABLE "pga_tour_wins_25" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the tournament played on Jun 17, 1973?`:
```sql
                SELECT "tournament" FROM "pga_tour_wins_25" WHERE "date"='jun 17, 1973';
```
## Task
Generate a SQL query to answer the following question:
`Howard Twitty was the runner-up of what tournament?`

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

CREATE TABLE "pga_tour_wins_25" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Howard Twitty was the runner-up of what tournament?`:
```sql
                SELECT "tournament" FROM "pga_tour_wins_25" WHERE "runner_s_up"='howard twitty';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the College/Junior/Club Team that has the Position of defence, and the Nationality of czechoslovakia?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the College/Junior/Club Team that has the Position of defence, and the Nationality of czechoslovakia?`:
```sql
                SELECT "college_junior_club_team" FROM "draft_picks" WHERE "position"='defence' AND "nationality"='czechoslovakia';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Position that has the College/Junior/Club Team of hull olympiques (qmjhl)?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Position that has the College/Junior/Club Team of hull olympiques (qmjhl)?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "college_junior_club_team"='hull olympiques (qmjhl)';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Player that has the Round smaller than 6, and the College/Junior/Club Team of hull olympiques (qmjhl)?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Player that has the Round smaller than 6, and the College/Junior/Club Team of hull olympiques (qmjhl)?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "round"<6 AND "college_junior_club_team"='hull olympiques (qmjhl)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name of the Center?`

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

CREATE TABLE "ncaa_consensus_all_american_team" (
  "position" text,
  "name" text,
  "school" text,
  "unanimous" text,
  "college_hall_of_fame" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name of the Center?`:
```sql
                SELECT "name" FROM "ncaa_consensus_all_american_team" WHERE "position"='center';
```
## Task
Generate a SQL query to answer the following question:
`What Position has no College Hall of Fame?`

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

CREATE TABLE "ncaa_consensus_all_american_team" (
  "position" text,
  "name" text,
  "school" text,
  "unanimous" text,
  "college_hall_of_fame" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Position has no College Hall of Fame?`:
```sql
                SELECT "position" FROM "ncaa_consensus_all_american_team" WHERE "college_hall_of_fame"='no';
```
## Task
Generate a SQL query to answer the following question:
`What School has no no no Unanimously?`

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

CREATE TABLE "ncaa_consensus_all_american_team" (
  "position" text,
  "name" text,
  "school" text,
  "unanimous" text,
  "college_hall_of_fame" text
);
### SQL
Given the database schema, here is the SQL query that answers `What School has no no no Unanimously?`:
```sql
                SELECT "school" FROM "ncaa_consensus_all_american_team" WHERE "unanimous"='no no no';
```
## Task
Generate a SQL query to answer the following question:
`What is the School of the quarterback?`

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

CREATE TABLE "ncaa_consensus_all_american_team" (
  "position" text,
  "name" text,
  "school" text,
  "unanimous" text,
  "college_hall_of_fame" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the School of the quarterback?`:
```sql
                SELECT "school" FROM "ncaa_consensus_all_american_team" WHERE "position"='quarterback';
```
## Task
Generate a SQL query to answer the following question:
`What School is the Center from?`

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

CREATE TABLE "ncaa_consensus_all_american_team" (
  "position" text,
  "name" text,
  "school" text,
  "unanimous" text,
  "college_hall_of_fame" text
);
### SQL
Given the database schema, here is the SQL query that answers `What School is the Center from?`:
```sql
                SELECT "school" FROM "ncaa_consensus_all_american_team" WHERE "position"='center';
```
## Task
Generate a SQL query to answer the following question:
`What is the Unanimous of the Minnesota Southern California School?`

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

CREATE TABLE "ncaa_consensus_all_american_team" (
  "position" text,
  "name" text,
  "school" text,
  "unanimous" text,
  "college_hall_of_fame" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Unanimous of the Minnesota Southern California School?`:
```sql
                SELECT "unanimous" FROM "ncaa_consensus_all_american_team" WHERE "school"='minnesota southern california';
```
## Task
Generate a SQL query to answer the following question:
`What is the Cache with a Capacity that is 600 gb?`

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

CREATE TABLE "models" (
  "model_no" text,
  "gen" text,
  "released" text,
  "capacity" text,
  "cache" text,
  "interface" text,
  "feature_set" text,
  "sector_size" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Cache with a Capacity that is 600 gb?`:
```sql
                SELECT "cache" FROM "models" WHERE "capacity"='600 gb';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a College/Junior/Club Team (League) of estevan bruins (wchl), and a Round of 3?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a College/Junior/Club Team (League) of estevan bruins (wchl), and a Round of 3?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "college_junior_club_team_league"='estevan bruins (wchl)' AND "round"=3;
```
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a Player of larry wright?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nationality has a Player of larry wright?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "player"='larry wright';
```
## Task
Generate a SQL query to answer the following question:
`What score has august 25 as the date?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has august 25 as the date?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='august 25';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of episodes where jim sweeney was the 1st performer and steve steen was the 2nd performer?`

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

CREATE TABLE "series_4" (
  "date" text,
  "episode" real,
  "performer_1" text,
  "performer_2" text,
  "performer_3" text,
  "performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of episodes where jim sweeney was the 1st performer and steve steen was the 2nd performer?`:
```sql
                SELECT COUNT("episode") FROM "series_4" WHERE "performer_1"='jim sweeney' AND "performer_2"='steve steen';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the episode numbers where chip esten is the 4th performer and christopher smith was the 2nd performer?`

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

CREATE TABLE "series_4" (
  "date" text,
  "episode" real,
  "performer_1" text,
  "performer_2" text,
  "performer_3" text,
  "performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the episode numbers where chip esten is the 4th performer and christopher smith was the 2nd performer?`:
```sql
                SELECT SUM("episode") FROM "series_4" WHERE "performer_4"='chip esten' AND "performer_2"='christopher smith';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the episodes where chip esten was the 4th performer and jim meskimen was the 1st performer?`

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

CREATE TABLE "series_4" (
  "date" text,
  "episode" real,
  "performer_1" text,
  "performer_2" text,
  "performer_3" text,
  "performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the episodes where chip esten was the 4th performer and jim meskimen was the 1st performer?`:
```sql
                SELECT SUM("episode") FROM "series_4" WHERE "performer_4"='chip esten' AND "performer_1"='jim meskimen';
```
## Task
Generate a SQL query to answer the following question:
`Who was the 3rd performer when christopher smith was the 2nd performer?`

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

CREATE TABLE "series_4" (
  "date" text,
  "episode" real,
  "performer_1" text,
  "performer_2" text,
  "performer_3" text,
  "performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the 3rd performer when christopher smith was the 2nd performer?`:
```sql
                SELECT "performer_3" FROM "series_4" WHERE "performer_2"='christopher smith';
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a Time of 4:50?`

### 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 Record has a Time of 4:50?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='4:50';
```
## Task
Generate a SQL query to answer the following question:
`Which Event has a Resolution of loss, and a Record of 12–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 Event has a Resolution of loss, and a Record of 12–2?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "record"='12–2';
```
## Task
Generate a SQL query to answer the following question:
`Which Drawn has a Difference of 14?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Drawn has a Difference of 14?`:
```sql
                SELECT AVG("drawn") FROM "torneio_rio_s_o_paulo" WHERE "difference"='14';
```
## Task
Generate a SQL query to answer the following question:
`Which Played has a Lost larger than 2, and a Team of américa?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Played has a Lost larger than 2, and a Team of américa?`:
```sql
                SELECT "played" FROM "torneio_rio_s_o_paulo" WHERE "lost">2 AND "team"='américa';
```
## Task
Generate a SQL query to answer the following question:
`What's the number of touchdowns that there are 0 field goals, less than 5 points, and had Joe Maddock playing?`

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

CREATE TABLE "michigan_51_indiana_0" (
  "player" text,
  "position" text,
  "starter" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of touchdowns that there are 0 field goals, less than 5 points, and had Joe Maddock playing?`:
```sql
                SELECT SUM("touchdowns") FROM "michigan_51_indiana_0" WHERE "field_goals"=0 AND "player"='joe maddock' AND "points"<5;
```
## Task
Generate a SQL query to answer the following question:
`what is the class of w269ax`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" text,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the class of w269ax`:
```sql
                SELECT "class" FROM "translators" WHERE "call_sign"='w269ax';
```
## Task
Generate a SQL query to answer the following question:
`Which song is from Volume:Issue 64:11-12?`

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

CREATE TABLE "see_also" (
  "volume_issue" text,
  "issue_date" text,
  "weeks_on_numbe_one" text,
  "song" text,
  "artist_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which song is from Volume:Issue 64:11-12?`:
```sql
                SELECT "song" FROM "see_also" WHERE "volume_issue"='64:11-12';
```
## Task
Generate a SQL query to answer the following question:
`Which Artist's song is listed as " missing "?`

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

CREATE TABLE "see_also" (
  "volume_issue" text,
  "issue_date" text,
  "weeks_on_numbe_one" text,
  "song" text,
  "artist_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Artist's song is listed as " missing "?`:
```sql
                SELECT "artist_s" FROM "see_also" WHERE "song"='\" missing \"';
```
## Task
Generate a SQL query to answer the following question:
`Which song is from Volume:Issue 63:5?`

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

CREATE TABLE "see_also" (
  "volume_issue" text,
  "issue_date" text,
  "weeks_on_numbe_one" text,
  "song" text,
  "artist_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which song is from Volume:Issue 63:5?`:
```sql
                SELECT "song" FROM "see_also" WHERE "volume_issue"='63:5';
```
## Task
Generate a SQL query to answer the following question:
`Which song is linked to Volume:Issue 64:14-18?`

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

CREATE TABLE "see_also" (
  "volume_issue" text,
  "issue_date" text,
  "weeks_on_numbe_one" text,
  "song" text,
  "artist_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which song is linked to Volume:Issue 64:14-18?`:
```sql
                SELECT "song" FROM "see_also" WHERE "volume_issue"='64:14-18';
```
## Task
Generate a SQL query to answer the following question:
`What is the match report of the match on 20 August?`

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

CREATE TABLE "national_team" (
  "date" text,
  "venue" text,
  "score_1" text,
  "comp" text,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the match report of the match on 20 August?`:
```sql
                SELECT "match_report" FROM "national_team" WHERE "date"='20 august';
```
## Task
Generate a SQL query to answer the following question:
`What is the origin for the launch taking place in 2010?`

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

CREATE TABLE "animation_channels" (
  "name" text,
  "hanzi" text,
  "origin" text,
  "launch" real,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the origin for the launch taking place in 2010?`:
```sql
                SELECT "origin" FROM "animation_channels" WHERE "launch"=2010;
```
## Task
Generate a SQL query to answer the following question:
`What is the origin for the item with an owner of Hunan Broadcasting System (HBS)?`

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

CREATE TABLE "animation_channels" (
  "name" text,
  "hanzi" text,
  "origin" text,
  "launch" real,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the origin for the item with an owner of Hunan Broadcasting System (HBS)?`:
```sql
                SELECT "origin" FROM "animation_channels" WHERE "owner"='hunan broadcasting system (hbs)';
```
## Task
Generate a SQL query to answer the following question:
`If the college is Trinity, what position is listed?`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "round" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the college is Trinity, what position is listed?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "college"='trinity';
```
## Task
Generate a SQL query to answer the following question:
`How many picks did the College of USC wind up getting?`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "round" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many picks did the College of USC wind up getting?`:
```sql
                SELECT COUNT("pick_num") FROM "nfl_draft" WHERE "college"='usc';
```
## Task
Generate a SQL query to answer the following question:
`For Pick #323, which round is it?`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "round" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `For Pick #323, which round is it?`:
```sql
                SELECT "round" FROM "nfl_draft" WHERE "pick_num"=323;
```
## Task
Generate a SQL query to answer the following question:
`What score has amblecote as the venue?`

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

CREATE TABLE "largest_margin_of_runs_victory" (
  "score" text,
  "opposition" text,
  "venue" text,
  "city" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What score has amblecote as the venue?`:
```sql
                SELECT "score" FROM "largest_margin_of_runs_victory" WHERE "venue"='amblecote';
```
## Task
Generate a SQL query to answer the following question:
`What city has riverside ground as the venue, with a year prior to 1998?`

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

CREATE TABLE "largest_margin_of_runs_victory" (
  "score" text,
  "opposition" text,
  "venue" text,
  "city" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What city has riverside ground as the venue, with a year prior to 1998?`:
```sql
                SELECT "city" FROM "largest_margin_of_runs_victory" WHERE "venue"='riverside ground' AND "year"<1998;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest year that has chester-le-street as the city, with 345 runs as the score?`

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

CREATE TABLE "largest_margin_of_runs_victory" (
  "score" text,
  "opposition" text,
  "venue" text,
  "city" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest year that has chester-le-street as the city, with 345 runs as the score?`:
```sql
                SELECT MIN("year") FROM "largest_margin_of_runs_victory" WHERE "city"='chester-le-street' AND "score"='345 runs';
```
## Task
Generate a SQL query to answer the following question:
`What year has 385 runs as the score?`

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

CREATE TABLE "largest_margin_of_runs_victory" (
  "score" text,
  "opposition" text,
  "venue" text,
  "city" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year has 385 runs as the score?`:
```sql
                SELECT "year" FROM "largest_margin_of_runs_victory" WHERE "score"='385 runs';
```
## Task
Generate a SQL query to answer the following question:
`What score has 1998 as the year?`

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

CREATE TABLE "largest_margin_of_runs_victory" (
  "score" text,
  "opposition" text,
  "venue" text,
  "city" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What score has 1998 as the year?`:
```sql
                SELECT "score" FROM "largest_margin_of_runs_victory" WHERE "year"=1998;
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd (m) value for Gregor Schlierenzauer?`

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

CREATE TABLE "villach" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd (m) value for Gregor Schlierenzauer?`:
```sql
                SELECT MIN("2nd_m") FROM "villach" WHERE "name"='gregor schlierenzauer';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the tournament with a score of 199 (–17)?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the tournament with a score of 199 (–17)?`:
```sql
                SELECT "date" FROM "tournament_results" WHERE "score"='199 (–17)';
```
## Task
Generate a SQL query to answer the following question:
`What was the amount of the 1st prize when paul azinger (9) was the winner?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the amount of the 1st prize when paul azinger (9) was the winner?`:
```sql
                SELECT AVG("1st_prize") FROM "tournament_results" WHERE "winner"='paul azinger (9)';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the winner of the tour championship tournament?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the winner of the tour championship tournament?`:
```sql
                SELECT "winner" FROM "tournament_results" WHERE "tournament"='the tour championship';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the at&t pebble beach national pro-am Tournament?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the at&t pebble beach national pro-am Tournament?`:
```sql
                SELECT "date" FROM "tournament_results" WHERE "tournament"='at&t pebble beach national pro-am';
```
## Task
Generate a SQL query to answer the following question:
`Which Site has a Sport of w swimming?`

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

CREATE TABLE "2007_2008" (
  "date" text,
  "site" text,
  "sport" text,
  "winning_team" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Site has a Sport of w swimming?`:
```sql
                SELECT "site" FROM "2007_2008" WHERE "sport"='w swimming';
```
## Task
Generate a SQL query to answer the following question:
`Which Series are on september 15, 2007?`

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

CREATE TABLE "2007_2008" (
  "date" text,
  "site" text,
  "sport" text,
  "winning_team" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Series are on september 15, 2007?`:
```sql
                SELECT "series" FROM "2007_2008" WHERE "date"='september 15, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What position did the 2010-11 USA ír player have?`

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

CREATE TABLE "defensive_player_of_the_year" (
  "season" text,
  "player" text,
  "position" text,
  "nationality" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the 2010-11 USA ír player have?`:
```sql
                SELECT "position" FROM "defensive_player_of_the_year" WHERE "nationality"='usa' AND "team"='ír' AND "season"='2010-11';
```
## Task
Generate a SQL query to answer the following question:
`What position did the kr team player play?`

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

CREATE TABLE "defensive_player_of_the_year" (
  "season" text,
  "player" text,
  "position" text,
  "nationality" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the kr team player play?`:
```sql
                SELECT "position" FROM "defensive_player_of_the_year" WHERE "team"='kr';
```
## Task
Generate a SQL query to answer the following question:
`What team has Steinar Kaldal, a guard / forward?`

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

CREATE TABLE "defensive_player_of_the_year" (
  "season" text,
  "player" text,
  "position" text,
  "nationality" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team has Steinar Kaldal, a guard / forward?`:
```sql
                SELECT "team" FROM "defensive_player_of_the_year" WHERE "position"='guard / forward' AND "player"='steinar kaldal';
```
## Task
Generate a SQL query to answer the following question:
`What team did the 2003-04 winner play for?`

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

CREATE TABLE "defensive_player_of_the_year" (
  "season" text,
  "player" text,
  "position" text,
  "nationality" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team did the 2003-04 winner play for?`:
```sql
                SELECT "team" FROM "defensive_player_of_the_year" WHERE "season"='2003-04';
```
## Task
Generate a SQL query to answer the following question:
`Which catalogue is on 12" vinyl?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which catalogue is on 12" vinyl?`:
```sql
                SELECT "catalogue" FROM "release_history" WHERE "format"='12\" vinyl';
```
## Task
Generate a SQL query to answer the following question:
`Which region has and eyeball label and catalogue 7200222?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which region has and eyeball label and catalogue 7200222?`:
```sql
                SELECT "region" FROM "release_history" WHERE "label"='eyeball' AND "catalogue"='7200222';
```
## Task
Generate a SQL query to answer the following question:
`Which catalogue is from Japan?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which catalogue is from Japan?`:
```sql
                SELECT "catalogue" FROM "release_history" WHERE "region"='japan';
```
## Task
Generate a SQL query to answer the following question:
`What is the format for the United States dated July 23, 2002?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the format for the United States dated July 23, 2002?`:
```sql
                SELECT "format" FROM "release_history" WHERE "region"='united states' AND "date"='july 23, 2002';
```
## Task
Generate a SQL query to answer the following question:
`What is the label for catalogue 7200222?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the label for catalogue 7200222?`:
```sql
                SELECT "label" FROM "release_history" WHERE "catalogue"='7200222';
```