cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which university has a Year of Foundation before 1908, and a University Status before 1988?`

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

CREATE TABLE "member_universities" (
  "university" text,
  "location" text,
  "year_of_foundation" real,
  "university_status" real,
  "the_world_university_rankings_2012_13" text,
  "academic_ranking_of_world_universities_2012" text,
  "qs_world_university_rankings_2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which university has a Year of Foundation before 1908, and a University Status before 1988?`:
```sql
                SELECT "university" FROM "member_universities" WHERE "year_of_foundation"<1908 AND "university_status"<1988;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest Interview score from a contestant who had a swimsuit score of 8.857 and an Average score over 9.097?`

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

CREATE TABLE "semifinal_scores" (
  "state" text,
  "swimsuit" real,
  "evening_gown" real,
  "interview" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest Interview score from a contestant who had a swimsuit score of 8.857 and an Average score over 9.097?`:
```sql
                SELECT MAX("interview") FROM "semifinal_scores" WHERE "swimsuit"=8.857 AND "average">9.097;
```
## Task
Generate a SQL query to answer the following question:
`What year has a Top 25 of 0, and a Earnings ($) larger than 0?`

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

CREATE TABLE "pga_tour_career_summary" (
  "year" text,
  "starts" real,
  "cuts_made" real,
  "wins" real,
  "top_10" real,
  "top_25" real,
  "earnings" real,
  "money_list_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year has a Top 25 of 0, and a Earnings ($) larger than 0?`:
```sql
                SELECT "year" FROM "pga_tour_career_summary" WHERE "top_25"=0 AND "earnings">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Top 25 with a Money list rank of 232 and Cuts smaller than 2?`

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

CREATE TABLE "pga_tour_career_summary" (
  "year" text,
  "starts" real,
  "cuts_made" real,
  "wins" real,
  "top_10" real,
  "top_25" real,
  "earnings" real,
  "money_list_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Top 25 with a Money list rank of 232 and Cuts smaller than 2?`:
```sql
                SELECT MAX("top_25") FROM "pga_tour_career_summary" WHERE "money_list_rank"='232' AND "cuts_made"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest Earnings that has a Money list rank of 6 and Starts smaller than 22?`

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

CREATE TABLE "pga_tour_career_summary" (
  "year" text,
  "starts" real,
  "cuts_made" real,
  "wins" real,
  "top_10" real,
  "top_25" real,
  "earnings" real,
  "money_list_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest Earnings that has a Money list rank of 6 and Starts smaller than 22?`:
```sql
                SELECT MIN("earnings") FROM "pga_tour_career_summary" WHERE "money_list_rank"='6' AND "starts"<22;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of Cuts made that has a Top 10 smaller than 8 and Wins larger than 0?`

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

CREATE TABLE "pga_tour_career_summary" (
  "year" text,
  "starts" real,
  "cuts_made" real,
  "wins" real,
  "top_10" real,
  "top_25" real,
  "earnings" real,
  "money_list_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of Cuts made that has a Top 10 smaller than 8 and Wins larger than 0?`:
```sql
                SELECT MAX("cuts_made") FROM "pga_tour_career_summary" WHERE "top_10"<8 AND "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`How many Starts that have Cuts made of 2, Top 25 larger than 0, and Earnings ($) smaller than 338,067?`

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

CREATE TABLE "pga_tour_career_summary" (
  "year" text,
  "starts" real,
  "cuts_made" real,
  "wins" real,
  "top_10" real,
  "top_25" real,
  "earnings" real,
  "money_list_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Starts that have Cuts made of 2, Top 25 larger than 0, and Earnings ($) smaller than 338,067?`:
```sql
                SELECT COUNT("starts") FROM "pga_tour_career_summary" WHERE "cuts_made"=2 AND "top_25">0 AND "earnings"<'338,067';
```
## Task
Generate a SQL query to answer the following question:
`Which event was in round 1, resulted in a win, and a record of 15-4?`

### 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 was in round 1, resulted in a win, and a record of 15-4?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "res"='win' AND "record"='15-4';
```
## Task
Generate a SQL query to answer the following question:
`What is the result when the time was 5:00 and a record of 14-4?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result when the time was 5:00 and a record of 14-4?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "record"='14-4';
```
## Task
Generate a SQL query to answer the following question:
`How many wins did Ayr United have?`

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

CREATE TABLE "performance_by_club" (
  "club" text,
  "wins" text,
  "last_win" text,
  "runners_up" text,
  "last_final_lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins did Ayr United have?`:
```sql
                SELECT "wins" FROM "performance_by_club" WHERE "club"='ayr united';
```
## Task
Generate a SQL query to answer the following question:
`When was the final loss of the club last won in 2001 and has a total of 3 wins?`

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

CREATE TABLE "performance_by_club" (
  "club" text,
  "wins" text,
  "last_win" text,
  "runners_up" text,
  "last_final_lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the final loss of the club last won in 2001 and has a total of 3 wins?`:
```sql
                SELECT "last_final_lost" FROM "performance_by_club" WHERE "wins"='3' AND "last_win"='2001';
```
## Task
Generate a SQL query to answer the following question:
`When was the last win for the club that had a final loss in 2011?`

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

CREATE TABLE "performance_by_club" (
  "club" text,
  "wins" text,
  "last_win" text,
  "runners_up" text,
  "last_final_lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the last win for the club that had a final loss in 2011?`:
```sql
                SELECT "last_win" FROM "performance_by_club" WHERE "last_final_lost"='2011';
```
## Task
Generate a SQL query to answer the following question:
`How many wins did the 8 time runner-up have?`

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

CREATE TABLE "performance_by_club" (
  "club" text,
  "wins" text,
  "last_win" text,
  "runners_up" text,
  "last_final_lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins did the 8 time runner-up have?`:
```sql
                SELECT "wins" FROM "performance_by_club" WHERE "runners_up"='8';
```
## Task
Generate a SQL query to answer the following question:
`How many wins did the club have with the last win in 2000?`

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

CREATE TABLE "performance_by_club" (
  "club" text,
  "wins" text,
  "last_win" text,
  "runners_up" text,
  "last_final_lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins did the club have with the last win in 2000?`:
```sql
                SELECT "wins" FROM "performance_by_club" WHERE "last_win"='2000';
```
## Task
Generate a SQL query to answer the following question:
`Who has the highest TDs, with yards of 9, and carries smaller than 13?`

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

CREATE TABLE "running_backs" (
  "player" text,
  "car" real,
  "yards" text,
  "avg" text,
  "td_s" real,
  "long" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the highest TDs, with yards of 9, and carries smaller than 13?`:
```sql
                SELECT MAX("td_s") FROM "running_backs" WHERE "yards"='9' AND "car"<13;
```
## Task
Generate a SQL query to answer the following question:
`What are the carries of the player Jeremiah Pope?`

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

CREATE TABLE "running_backs" (
  "player" text,
  "car" real,
  "yards" text,
  "avg" text,
  "td_s" real,
  "long" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the carries of the player Jeremiah Pope?`:
```sql
                SELECT SUM("car") FROM "running_backs" WHERE "player"='jeremiah pope';
```
## Task
Generate a SQL query to answer the following question:
`What was the largest crowd that was in attendance for fitzroy?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the largest crowd that was in attendance for fitzroy?`:
```sql
                SELECT MAX("crowd") FROM "round_8" WHERE "home_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`Who plays g position for the st. louis bombers?`

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

CREATE TABLE "other_picks" (
  "round" text,
  "player" text,
  "position" text,
  "team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who plays g position for the st. louis bombers?`:
```sql
                SELECT "player" FROM "other_picks" WHERE "team"='st. louis bombers' AND "position"='g';
```
## Task
Generate a SQL query to answer the following question:
`Who plays f position for depauw?`

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

CREATE TABLE "other_picks" (
  "round" text,
  "player" text,
  "position" text,
  "team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who plays f position for depauw?`:
```sql
                SELECT "player" FROM "other_picks" WHERE "position"='f' AND "college"='depauw';
```
## Task
Generate a SQL query to answer the following question:
`What position does the saint louis player play?`

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

CREATE TABLE "other_picks" (
  "round" text,
  "player" text,
  "position" text,
  "team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the saint louis player play?`:
```sql
                SELECT "position" FROM "other_picks" WHERE "college"='saint louis';
```
## Task
Generate a SQL query to answer the following question:
`Who plays for sam houston state?`

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

CREATE TABLE "other_picks" (
  "round" text,
  "player" text,
  "position" text,
  "team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who plays for sam houston state?`:
```sql
                SELECT "player" FROM "other_picks" WHERE "college"='sam houston state';
```
## Task
Generate a SQL query to answer the following question:
`How many positions have Points of 30-8 and more than 25 goals?`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions have Points of 30-8 and more than 25 goals?`:
```sql
                SELECT COUNT("position") FROM "final_table" WHERE "points"='30-8' AND "goals_for">25;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest play with ue figueres club and a goal difference more than 16?`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest play with ue figueres club and a goal difference more than 16?`:
```sql
                SELECT MIN("played") FROM "final_table" WHERE "club"='ue figueres' AND "goal_difference">16;
```
## Task
Generate a SQL query to answer the following question:
`How many played have 8 wins and more than 58 goals against?`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many played have 8 wins and more than 58 goals against?`:
```sql
                SELECT COUNT("played") FROM "final_table" WHERE "wins"=8 AND "goals_against">58;
```
## Task
Generate a SQL query to answer the following question:
`What is withdrawn with a GSR Class of 296?`

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

CREATE TABLE "waterford_and_limerick_railway" (
  "year" text,
  "type" text,
  "nos" text,
  "gswr_class" real,
  "gswr_nos" text,
  "gsr_class" text,
  "inchicore_class" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is withdrawn with a GSR Class of 296?`:
```sql
                SELECT "withdrawn" FROM "waterford_and_limerick_railway" WHERE "gsr_class"='296';
```
## Task
Generate a SQL query to answer the following question:
`What Inchicore Class has a GSR Class of 235?`

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

CREATE TABLE "waterford_and_limerick_railway" (
  "year" text,
  "type" text,
  "nos" text,
  "gswr_class" real,
  "gswr_nos" text,
  "gsr_class" text,
  "inchicore_class" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Inchicore Class has a GSR Class of 235?`:
```sql
                SELECT "inchicore_class" FROM "waterford_and_limerick_railway" WHERE "gsr_class"='235';
```
## Task
Generate a SQL query to answer the following question:
`What Inchicore Class has a GSWR Class smaller than 268, and a Type of 0-4-2t?`

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

CREATE TABLE "waterford_and_limerick_railway" (
  "year" text,
  "type" text,
  "nos" text,
  "gswr_class" real,
  "gswr_nos" text,
  "gsr_class" text,
  "inchicore_class" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Inchicore Class has a GSWR Class smaller than 268, and a Type of 0-4-2t?`:
```sql
                SELECT "inchicore_class" FROM "waterford_and_limerick_railway" WHERE "gswr_class"<268 AND "type"='0-4-2t';
```
## Task
Generate a SQL query to answer the following question:
`Which GSWR Class is from 1893?`

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

CREATE TABLE "waterford_and_limerick_railway" (
  "year" text,
  "type" text,
  "nos" text,
  "gswr_class" real,
  "gswr_nos" text,
  "gsr_class" text,
  "inchicore_class" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which GSWR Class is from 1893?`:
```sql
                SELECT "gswr_class" FROM "waterford_and_limerick_railway" WHERE "year"='1893';
```
## Task
Generate a SQL query to answer the following question:
`Which Crowd has a Home team score of 15.20 (110), and a Home team of carlton?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Crowd has a Home team score of 15.20 (110), and a Home team of carlton?`:
```sql
                SELECT MIN("crowd") FROM "round_7" WHERE "home_team_score"='15.20 (110)' AND "home_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`Which Home team score has an Away team score of 20.11 (131)?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home team score has an Away team score of 20.11 (131)?`:
```sql
                SELECT "home_team_score" FROM "round_7" WHERE "away_team_score"='20.11 (131)';
```
## Task
Generate a SQL query to answer the following question:
`Which number of Crowd has an Away team score of 20.11 (131)?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which number of Crowd has an Away team score of 20.11 (131)?`:
```sql
                SELECT COUNT("crowd") FROM "round_7" WHERE "away_team_score"='20.11 (131)';
```
## Task
Generate a SQL query to answer the following question:
`On the episode that had a run time of 24:57, how many million viewers were there?`

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

CREATE TABLE "serial_details_by_episode" (
  "episode" text,
  "broadcast_date" text,
  "run_time" text,
  "viewers_in_millions" text,
  "archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `On the episode that had a run time of 24:57, how many million viewers were there?`:
```sql
                SELECT "viewers_in_millions" FROM "serial_details_by_episode" WHERE "run_time"='24:57';
```
## Task
Generate a SQL query to answer the following question:
`What year had a record of 4-21?`

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

CREATE TABLE "hazleton_mountaineers_epbl" (
  "year" text,
  "league" text,
  "record" text,
  "reg_season" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had a record of 4-21?`:
```sql
                SELECT "year" FROM "hazleton_mountaineers_epbl" WHERE "record"='4-21';
```
## Task
Generate a SQL query to answer the following question:
`What regular season had a record of 16-12?`

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

CREATE TABLE "hazleton_mountaineers_epbl" (
  "year" text,
  "league" text,
  "record" text,
  "reg_season" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What regular season had a record of 16-12?`:
```sql
                SELECT "reg_season" FROM "hazleton_mountaineers_epbl" WHERE "record"='16-12';
```
## Task
Generate a SQL query to answer the following question:
`What is the regular season info that had a record of 20-10?`

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

CREATE TABLE "hazleton_mountaineers_epbl" (
  "year" text,
  "league" text,
  "record" text,
  "reg_season" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the regular season info that had a record of 20-10?`:
```sql
                SELECT "reg_season" FROM "hazleton_mountaineers_epbl" WHERE "record"='20-10';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the 1st leg for asfa rabat`

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

CREATE TABLE "qualifying_round" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the 1st leg for asfa rabat`:
```sql
                SELECT "1st_leg" FROM "qualifying_round" WHERE "team_num1"='asfa rabat';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the 2nd leg for alemannia aachen`

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

CREATE TABLE "qualifying_round" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the 2nd leg for alemannia aachen`:
```sql
                SELECT "2nd_leg" FROM "qualifying_round" WHERE "team_num1"='alemannia aachen';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the 1st leg for antwerp bc`

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

CREATE TABLE "qualifying_round" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the 1st leg for antwerp bc`:
```sql
                SELECT "1st_leg" FROM "qualifying_round" WHERE "team_num2"='antwerp bc';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the team 2 for handelsministerium vienna`

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

CREATE TABLE "qualifying_round" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the team 2 for handelsministerium vienna`:
```sql
                SELECT "team_num2" FROM "qualifying_round" WHERE "team_num1"='handelsministerium vienna';
```
## Task
Generate a SQL query to answer the following question:
`On what date did the away team Melbourne play?`

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

CREATE TABLE "round_20" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did the away team Melbourne play?`:
```sql
                SELECT "date" FROM "round_20" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What home team played the away team South Melbourne?`

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

CREATE TABLE "round_20" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home team played the away team South Melbourne?`:
```sql
                SELECT "home_team" FROM "round_20" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the away team that played a home team who scored 11.16 (82)?`

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

CREATE TABLE "round_20" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the away team that played a home team who scored 11.16 (82)?`:
```sql
                SELECT "away_team" FROM "round_20" WHERE "home_team_score"='11.16 (82)';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the away team that scored 15.9 (99)?`

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

CREATE TABLE "round_20" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the away team that scored 15.9 (99)?`:
```sql
                SELECT "away_team" FROM "round_20" WHERE "away_team_score"='15.9 (99)';
```
## Task
Generate a SQL query to answer the following question:
`Which is the largest area in Greenville County, by square mile?`

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

CREATE TABLE "counties" (
  "county" text,
  "year_founded" text,
  "county_seat" text,
  "2010_census_population" real,
  "july_1_2012_population_estimate" real,
  "area_sq_mi" real,
  "land_area_sq_mi" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the largest area in Greenville County, by square mile?`:
```sql
                SELECT MAX("area_sq_mi") FROM "counties" WHERE "county"='greenville county';
```
## Task
Generate a SQL query to answer the following question:
`Which is the total number in the 2010 Census in Oconee County where the area in square miles was less than 674?`

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

CREATE TABLE "counties" (
  "county" text,
  "year_founded" text,
  "county_seat" text,
  "2010_census_population" real,
  "july_1_2012_population_estimate" real,
  "area_sq_mi" real,
  "land_area_sq_mi" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the total number in the 2010 Census in Oconee County where the area in square miles was less than 674?`:
```sql
                SELECT SUM("2010_census_population") FROM "counties" WHERE "county"='oconee county' AND "area_sq_mi"<674;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of areas by square mile where the founding year was 1785, the county seat was in Spartanburg, and the land area by square mile was more than 811?`

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

CREATE TABLE "counties" (
  "county" text,
  "year_founded" text,
  "county_seat" text,
  "2010_census_population" real,
  "july_1_2012_population_estimate" real,
  "area_sq_mi" real,
  "land_area_sq_mi" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of areas by square mile where the founding year was 1785, the county seat was in Spartanburg, and the land area by square mile was more than 811?`:
```sql
                SELECT SUM("area_sq_mi") FROM "counties" WHERE "year_founded"='1785' AND "county_seat"='spartanburg' AND "land_area_sq_mi">811;
```
## Task
Generate a SQL query to answer the following question:
`Which Particle has a Rest mass MeV/c 2 of 1192.642(24)?`

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

CREATE TABLE "hyperons" (
  "particle" text,
  "symbol" text,
  "makeup" text,
  "rest_mass_me_v_c_2" text,
  "isospin_i" text,
  "spin_parity_j_p" text,
  "commonly_decays_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Particle has a Rest mass MeV/c 2 of 1192.642(24)?`:
```sql
                SELECT "particle" FROM "hyperons" WHERE "rest_mass_me_v_c_2"='1192.642(24)';
```
## Task
Generate a SQL query to answer the following question:
`Which Particle has an Isospin I of 1 and Commonly decays to p + + π 0 or n 0 + π +?`

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

CREATE TABLE "hyperons" (
  "particle" text,
  "symbol" text,
  "makeup" text,
  "rest_mass_me_v_c_2" text,
  "isospin_i" text,
  "spin_parity_j_p" text,
  "commonly_decays_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Particle has an Isospin I of 1 and Commonly decays to p + + π 0 or n 0 + π +?`:
```sql
                SELECT "particle" FROM "hyperons" WHERE "isospin_i"='1' AND "commonly_decays_to"='p + + π 0 or n 0 + π +';
```
## Task
Generate a SQL query to answer the following question:
`When the Makeup is u s s and the Spin (Parity) J P of 3⁄2 +, what is the Rest mass MeV/C2?`

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

CREATE TABLE "hyperons" (
  "particle" text,
  "symbol" text,
  "makeup" text,
  "rest_mass_me_v_c_2" text,
  "isospin_i" text,
  "spin_parity_j_p" text,
  "commonly_decays_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Makeup is u s s and the Spin (Parity) J P of 3⁄2 +, what is the Rest mass MeV/C2?`:
```sql
                SELECT "rest_mass_me_v_c_2" FROM "hyperons" WHERE "makeup"='u s s' AND "spin_parity_j_p"='3⁄2 +';
```
## Task
Generate a SQL query to answer the following question:
`Which Particle has an Isospin I of 1⁄2, and a Symbol of ξ ∗0 (1530)?`

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

CREATE TABLE "hyperons" (
  "particle" text,
  "symbol" text,
  "makeup" text,
  "rest_mass_me_v_c_2" text,
  "isospin_i" text,
  "spin_parity_j_p" text,
  "commonly_decays_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Particle has an Isospin I of 1⁄2, and a Symbol of ξ ∗0 (1530)?`:
```sql
                SELECT "particle" FROM "hyperons" WHERE "isospin_i"='1⁄2' AND "symbol"='ξ ∗0 (1530)';
```
## Task
Generate a SQL query to answer the following question:
`Which Particle has a Makeup of d s s and a Spin (Parity) J P of 3⁄2 +?`

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

CREATE TABLE "hyperons" (
  "particle" text,
  "symbol" text,
  "makeup" text,
  "rest_mass_me_v_c_2" text,
  "isospin_i" text,
  "spin_parity_j_p" text,
  "commonly_decays_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Particle has a Makeup of d s s and a Spin (Parity) J P of 3⁄2 +?`:
```sql
                SELECT "particle" FROM "hyperons" WHERE "makeup"='d s s' AND "spin_parity_j_p"='3⁄2 +';
```
## Task
Generate a SQL query to answer the following question:
`Which Particle has a Rest mass MeV/c 2 of 1383.7±1.0?`

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

CREATE TABLE "hyperons" (
  "particle" text,
  "symbol" text,
  "makeup" text,
  "rest_mass_me_v_c_2" text,
  "isospin_i" text,
  "spin_parity_j_p" text,
  "commonly_decays_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Particle has a Rest mass MeV/c 2 of 1383.7±1.0?`:
```sql
                SELECT "particle" FROM "hyperons" WHERE "rest_mass_me_v_c_2"='1383.7±1.0';
```
## Task
Generate a SQL query to answer the following question:
`What was the title of Ashanti's 2003 rap song?`

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

CREATE TABLE "grammy_awards_and_nominations" (
  "year" real,
  "category" text,
  "genre" text,
  "title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title of Ashanti's 2003 rap song?`:
```sql
                SELECT "title" FROM "grammy_awards_and_nominations" WHERE "year"=2003 AND "genre"='rap';
```
## Task
Generate a SQL query to answer the following question:
`How many tries did the player Paul Sykes take when he earned 0 points?`

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

CREATE TABLE "1999_squad_statistics" (
  "player" text,
  "position" text,
  "tries" real,
  "goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many tries did the player Paul Sykes take when he earned 0 points?`:
```sql
                SELECT MAX("tries") FROM "1999_squad_statistics" WHERE "player"='paul sykes' AND "points">0;
```
## Task
Generate a SQL query to answer the following question:
`Mike Forshaw had 0 goals and 28 points. What is his position?`

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

CREATE TABLE "1999_squad_statistics" (
  "player" text,
  "position" text,
  "tries" real,
  "goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Mike Forshaw had 0 goals and 28 points. What is his position?`:
```sql
                SELECT "position" FROM "1999_squad_statistics" WHERE "goals"=0 AND "points"=28 AND "player"='mike forshaw';
```
## Task
Generate a SQL query to answer the following question:
`How big is the Venue of Brunswick Street Oval?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How big is the Venue of Brunswick Street Oval?`:
```sql
                SELECT SUM("crowd") FROM "round_3" WHERE "venue"='brunswick street oval';
```
## Task
Generate a SQL query to answer the following question:
`What is the Away Team score of North Melbourne?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Away Team score of North Melbourne?`:
```sql
                SELECT "away_team_score" FROM "round_3" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the number of Personal Staff Units Killed?`

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

CREATE TABLE "head_quarters_and_support_regiments" (
  "unit" text,
  "complement" text,
  "killed" text,
  "wounded" text,
  "missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of Personal Staff Units Killed?`:
```sql
                SELECT "killed" FROM "head_quarters_and_support_regiments" WHERE "unit"='personal staff';
```
## Task
Generate a SQL query to answer the following question:
`What was the Complement of Artillery Corps Units that had 0 off 0 men Killed or Wounded?`

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

CREATE TABLE "head_quarters_and_support_regiments" (
  "unit" text,
  "complement" text,
  "killed" text,
  "wounded" text,
  "missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Complement of Artillery Corps Units that had 0 off 0 men Killed or Wounded?`:
```sql
                SELECT "complement" FROM "head_quarters_and_support_regiments" WHERE "killed"='0 off 0 men' AND "wounded"='0 off 0 men' AND "unit"='artillery corps';
```
## Task
Generate a SQL query to answer the following question:
`How many were Wounded while in a Unit with a Complement of 83 off 9 Men?`

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

CREATE TABLE "head_quarters_and_support_regiments" (
  "unit" text,
  "complement" text,
  "killed" text,
  "wounded" text,
  "missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were Wounded while in a Unit with a Complement of 83 off 9 Men?`:
```sql
                SELECT "wounded" FROM "head_quarters_and_support_regiments" WHERE "complement"='83 off 9 men';
```
## Task
Generate a SQL query to answer the following question:
`How many of the Royal Waggon Train Unit were Missing while having a Killed of 0 off 0 men and a Wounded of 0 off 0 men?`

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

CREATE TABLE "head_quarters_and_support_regiments" (
  "unit" text,
  "complement" text,
  "killed" text,
  "wounded" text,
  "missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many of the Royal Waggon Train Unit were Missing while having a Killed of 0 off 0 men and a Wounded of 0 off 0 men?`:
```sql
                SELECT "missing" FROM "head_quarters_and_support_regiments" WHERE "killed"='0 off 0 men' AND "wounded"='0 off 0 men' AND "unit"='royal waggon train';
```
## Task
Generate a SQL query to answer the following question:
`How many were Wounded in the Artillery Corps unit while having 0 off 0 men Killed?`

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

CREATE TABLE "head_quarters_and_support_regiments" (
  "unit" text,
  "complement" text,
  "killed" text,
  "wounded" text,
  "missing" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were Wounded in the Artillery Corps unit while having 0 off 0 men Killed?`:
```sql
                SELECT "wounded" FROM "head_quarters_and_support_regiments" WHERE "killed"='0 off 0 men' AND "unit"='artillery corps';
```
## Task
Generate a SQL query to answer the following question:
`What suface during the game that had Yevgeny Kafelnikov as an opponent?`

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

CREATE TABLE "singles_27_15_12" (
  "outcome" text,
  "date" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What suface during the game that had Yevgeny Kafelnikov as an opponent?`:
```sql
                SELECT "surface" FROM "singles_27_15_12" WHERE "opponent"='yevgeny kafelnikov';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team's score when the Away team's score is 12.10 (82)?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team's score when the Away team's score is 12.10 (82)?`:
```sql
                SELECT "home_team_score" FROM "round_9" WHERE "away_team_score"='12.10 (82)';
```
## Task
Generate a SQL query to answer the following question:
`What was the earliest week that the Storm played the San Jose Sabercats?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "home_away" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest week that the Storm played the San Jose Sabercats?`:
```sql
                SELECT MIN("week") FROM "season_schedule" WHERE "opponent"='san jose sabercats';
```
## Task
Generate a SQL query to answer the following question:
`How many were in attendance when the score was † 4–4 †?`

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

CREATE TABLE "scottish_football_league_challenge_cup_f" (
  "season" text,
  "winner" text,
  "score" text,
  "runner_up" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in attendance when the score was † 4–4 †?`:
```sql
                SELECT "attendance" FROM "scottish_football_league_challenge_cup_f" WHERE "score"='† 4–4 †';
```
## Task
Generate a SQL query to answer the following question:
`How many people were watching when Livingston was the runner-up?`

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

CREATE TABLE "scottish_football_league_challenge_cup_f" (
  "season" text,
  "winner" text,
  "score" text,
  "runner_up" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were watching when Livingston was the runner-up?`:
```sql
                SELECT "attendance" FROM "scottish_football_league_challenge_cup_f" WHERE "runner_up"='livingston';
```
## Task
Generate a SQL query to answer the following question:
`what average grid has laps larger than 52 and contains the driver of andrea de adamich?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `what average grid has laps larger than 52 and contains the driver of andrea de adamich?`:
```sql
                SELECT AVG("grid") FROM "classification" WHERE "laps">52 AND "driver"='andrea de adamich';
```
## Task
Generate a SQL query to answer the following question:
`what's the highest lap that contains the driver of graham hill and a grid that is larger than 18?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the highest lap that contains the driver of graham hill and a grid that is larger than 18?`:
```sql
                SELECT MAX("laps") FROM "classification" WHERE "driver"='graham hill' AND "grid">18;
```
## Task
Generate a SQL query to answer the following question:
`what's the average grid that has a time/retired piston and laps smaller than 15?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the average grid that has a time/retired piston and laps smaller than 15?`:
```sql
                SELECT AVG("grid") FROM "classification" WHERE "time_retired"='piston' AND "laps"<15;
```
## Task
Generate a SQL query to answer the following question:
`Who is the tuner after season 2004 with Gaurav Gill as the driver, Team MRF, and Mai governing body?`

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

CREATE TABLE "results" (
  "season" real,
  "driver" text,
  "co_driver" text,
  "team" text,
  "tuner" text,
  "governing_body" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the tuner after season 2004 with Gaurav Gill as the driver, Team MRF, and Mai governing body?`:
```sql
                SELECT "tuner" FROM "results" WHERE "season">2004 AND "driver"='gaurav gill' AND "team"='team mrf' AND "governing_body"='mai';
```
## Task
Generate a SQL query to answer the following question:
`Who is the driver in season 2003 with a tuner of N. Leelakrishnan and a Mai governing body?`

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

CREATE TABLE "results" (
  "season" real,
  "driver" text,
  "co_driver" text,
  "team" text,
  "tuner" text,
  "governing_body" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the driver in season 2003 with a tuner of N. Leelakrishnan and a Mai governing body?`:
```sql
                SELECT "driver" FROM "results" WHERE "tuner"='n. leelakrishnan' AND "governing_body"='mai' AND "season"=2003;
```
## Task
Generate a SQL query to answer the following question:
`Who is the turner on Team MRF?`

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

CREATE TABLE "results" (
  "season" real,
  "driver" text,
  "co_driver" text,
  "team" text,
  "tuner" text,
  "governing_body" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the turner on Team MRF?`:
```sql
                SELECT "tuner" FROM "results" WHERE "team"='mrf';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest season with driver Farad Bathena?`

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

CREATE TABLE "results" (
  "season" real,
  "driver" text,
  "co_driver" text,
  "team" text,
  "tuner" text,
  "governing_body" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest season with driver Farad Bathena?`:
```sql
                SELECT MIN("season") FROM "results" WHERE "driver"='farad bathena';
```
## Task
Generate a SQL query to answer the following question:
`Which Major League Soccer team for the 2005 season has the lowest goals?`

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

CREATE TABLE "statistics" (
  "season" text,
  "club" text,
  "league" text,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Major League Soccer team for the 2005 season has the lowest goals?`:
```sql
                SELECT MIN("goals") FROM "statistics" WHERE "league"='major league soccer' AND "season"='2005';
```