cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the name of the song in Amma Cheppindi?`

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

CREATE TABLE "telugu_songs" (
  "year" real,
  "song_title" text,
  "movie" text,
  "music_director" text,
  "co_singers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the song in Amma Cheppindi?`:
```sql
                SELECT "song_title" FROM "telugu_songs" WHERE "movie"='amma cheppindi';
```
## Task
Generate a SQL query to answer the following question:
`What was the average year that Thuppakki movies came out?`

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

CREATE TABLE "telugu_songs" (
  "year" real,
  "song_title" text,
  "movie" text,
  "music_director" text,
  "co_singers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average year that Thuppakki movies came out?`:
```sql
                SELECT AVG("year") FROM "telugu_songs" WHERE "movie"='thuppakki';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest summary statistic of the algorithm with a distance larger than 2 and simulated datasets of aabbababaaabbababbab?`

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

CREATE TABLE "table_1_example_of_abc_rejection_algorit" (
  "theta_i" real,
  "simulated_datasets_step_2" text,
  "summary_statistic_omega_s_i_step_3" real,
  "distance_rho_omega_s_i_omega_e_step_4" real,
  "outcome_step_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest summary statistic of the algorithm with a distance larger than 2 and simulated datasets of aabbababaaabbababbab?`:
```sql
                SELECT MAX("summary_statistic_omega_s_i_step_3") FROM "table_1_example_of_abc_rejection_algorit" WHERE "distance_rho_omega_s_i_omega_e_step_4">2 AND "simulated_datasets_step_2"='aabbababaaabbababbab';
```
## Task
Generate a SQL query to answer the following question:
`What is the summary of the algorithm with a theta i of 0.43?`

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

CREATE TABLE "table_1_example_of_abc_rejection_algorit" (
  "theta_i" real,
  "simulated_datasets_step_2" text,
  "summary_statistic_omega_s_i_step_3" real,
  "distance_rho_omega_s_i_omega_e_step_4" real,
  "outcome_step_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the summary of the algorithm with a theta i of 0.43?`:
```sql
                SELECT "summary_statistic_omega_s_i_step_3" FROM "table_1_example_of_abc_rejection_algorit" WHERE "theta_i"=0.43;
```
## Task
Generate a SQL query to answer the following question:
`How many games had 2 goals scored?`

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

CREATE TABLE "all_time_national_performance" (
  "nationality" text,
  "year" text,
  "games_played" real,
  "minutes_played" text,
  "goals_scored" text,
  "yellow_card" text,
  "red_card" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games had 2 goals scored?`:
```sql
                SELECT SUM("games_played") FROM "all_time_national_performance" WHERE "goals_scored"='2';
```
## Task
Generate a SQL query to answer the following question:
`What was the result week 11?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result week 11?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week"=11;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of democratic votes when the other votes are less than  18 and the percentage of R votes are 52.63% and votes since 1856 less than 38`

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

CREATE TABLE "analytical_table" (
  "state" text,
  "votes" real,
  "votes_since_1856" real,
  "democratic_votes" real,
  "d_votes_since_1856" real,
  "pct_of_d_votes" text,
  "d_pct_since_1856" text,
  "republican_votes" real,
  "pct_of_r_votes" text,
  "r_pct_since_1856" text,
  "other_votes" real,
  "o_votes_since_1856" real,
  "pct_of_o_votes" text,
  "o_pct_since_1856" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of democratic votes when the other votes are less than  18 and the percentage of R votes are 52.63% and votes since 1856 less than 38`:
```sql
                SELECT COUNT("democratic_votes") FROM "analytical_table" WHERE "other_votes"<18 AND "pct_of_r_votes"='52.63%' AND "votes_since_1856"<38;
```
## Task
Generate a SQL query to answer the following question:
`On what Date was the Opponent Panathinaikos?`

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

CREATE TABLE "uefa_cup" (
  "round" text,
  "date" text,
  "opponent" text,
  "score" text,
  "attendance" real,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date was the Opponent Panathinaikos?`:
```sql
                SELECT "date" FROM "uefa_cup" WHERE "opponent"='panathinaikos';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended games with st kilda as the home side?`

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

CREATE TABLE "round_14" (
  "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 many people attended games with st kilda as the home side?`:
```sql
                SELECT SUM("crowd") FROM "round_14" WHERE "home_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`Who is the home team when the crowd is over 32,485?`

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

CREATE TABLE "round_14" (
  "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 `Who is the home team when the crowd is over 32,485?`:
```sql
                SELECT "home_team" FROM "round_14" WHERE "crowd">'32,485';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of floors for buildings in mecca ranked above 12?`

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

CREATE TABLE "tallest_buildings_under_construction" (
  "rank" real,
  "name" text,
  "city" text,
  "height" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of floors for buildings in mecca ranked above 12?`:
```sql
                SELECT AVG("floors") FROM "tallest_buildings_under_construction" WHERE "city"='mecca' AND "rank"<12;
```
## Task
Generate a SQL query to answer the following question:
`What city is the lamar tower 1, ranked above 5?`

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

CREATE TABLE "tallest_buildings_under_construction" (
  "rank" real,
  "name" text,
  "city" text,
  "height" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What city is the lamar tower 1, ranked above 5?`:
```sql
                SELECT "city" FROM "tallest_buildings_under_construction" WHERE "rank"<5 AND "name"='lamar tower 1';
```
## Task
Generate a SQL query to answer the following question:
`What city has a building with over 57 floors?`

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

CREATE TABLE "tallest_buildings_under_construction" (
  "rank" real,
  "name" text,
  "city" text,
  "height" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What city has a building with over 57 floors?`:
```sql
                SELECT "city" FROM "tallest_buildings_under_construction" WHERE "floors">57;
```
## Task
Generate a SQL query to answer the following question:
`How many laps did antônio pizzonia do?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps did antônio pizzonia do?`:
```sql
                SELECT COUNT("laps") FROM "race" WHERE "driver"='antônio pizzonia';
```
## Task
Generate a SQL query to answer the following question:
`What is the constructor for time/retired of handling?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the constructor for time/retired of handling?`:
```sql
                SELECT "constructor" FROM "race" WHERE "time_retired"='handling';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team's score at windy hill?`

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

CREATE TABLE "round_19" (
  "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 away team's score at windy hill?`:
```sql
                SELECT "away_team_score" FROM "round_19" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`What is the average crowd size when the away team scores 7.13 (55)?`

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

CREATE TABLE "round_19" (
  "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 average crowd size when the away team scores 7.13 (55)?`:
```sql
                SELECT AVG("crowd") FROM "round_19" WHERE "away_team_score"='7.13 (55)';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team's score when the away side scores 14.11 (95)?`

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

CREATE TABLE "round_19" (
  "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 side scores 14.11 (95)?`:
```sql
                SELECT "home_team_score" FROM "round_19" WHERE "away_team_score"='14.11 (95)';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest round of a player from Sweden who plays right wing?`

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

CREATE TABLE "2013_draft_picks" (
  "round" real,
  "overall" text,
  "player" text,
  "position" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round of a player from Sweden who plays right wing?`:
```sql
                SELECT MAX("round") FROM "2013_draft_picks" WHERE "nationality"='sweden' AND "position"='right wing';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of a player from a round less than 4 and an overall of 17?`

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

CREATE TABLE "2013_draft_picks" (
  "round" real,
  "overall" text,
  "player" text,
  "position" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of a player from a round less than 4 and an overall of 17?`:
```sql
                SELECT "position" FROM "2013_draft_picks" WHERE "round"<4 AND "overall"='17';
```
## Task
Generate a SQL query to answer the following question:
`What is the average round of a player with an overall of 138?`

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

CREATE TABLE "2013_draft_picks" (
  "round" real,
  "overall" text,
  "player" text,
  "position" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average round of a player with an overall of 138?`:
```sql
                SELECT AVG("round") FROM "2013_draft_picks" WHERE "overall"='138';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player from Sweden from a round after 3?`

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

CREATE TABLE "2013_draft_picks" (
  "round" real,
  "overall" text,
  "player" text,
  "position" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from Sweden from a round after 3?`:
```sql
                SELECT "player" FROM "2013_draft_picks" WHERE "nationality"='sweden' AND "round">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of a player from linköpings hc (se)?`

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

CREATE TABLE "2013_draft_picks" (
  "round" real,
  "overall" text,
  "player" text,
  "position" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of a player from linköpings hc (se)?`:
```sql
                SELECT "nationality" FROM "2013_draft_picks" WHERE "club_team"='linköpings hc (se)';
```
## Task
Generate a SQL query to answer the following question:
`What is the crowd size for st kilda as the home team?`

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

CREATE TABLE "round_1" (
  "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 crowd size for st kilda as the home team?`:
```sql
                SELECT "crowd" FROM "round_1" WHERE "home_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`When an away team scored 6.12 (48), what was the home team?`

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

CREATE TABLE "round_1" (
  "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 `When an away team scored 6.12 (48), what was the home team?`:
```sql
                SELECT "home_team" FROM "round_1" WHERE "away_team_score"='6.12 (48)';
```
## Task
Generate a SQL query to answer the following question:
`I want the sum of pages for thistle among roses`

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

CREATE TABLE "titles" (
  "swedish_title" text,
  "norwegian_title" text,
  "translated_title" text,
  "published" real,
  "pages" real,
  "isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the sum of pages for thistle among roses`:
```sql
                SELECT SUM("pages") FROM "titles" WHERE "translated_title"='thistle among roses';
```
## Task
Generate a SQL query to answer the following question:
`Who is the manager for FMC Corporation pension fund?`

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

CREATE TABLE "the_statement" (
  "fund" text,
  "manager" text,
  "fund_period" text,
  "fund_return" text,
  "market_return" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the manager for FMC Corporation pension fund?`:
```sql
                SELECT "manager" FROM "the_statement" WHERE "fund"='fmc corporation pension fund';
```
## Task
Generate a SQL query to answer the following question:
`What fund has a fund return of 19.8% / 13.7%?`

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

CREATE TABLE "the_statement" (
  "fund" text,
  "manager" text,
  "fund_period" text,
  "fund_return" text,
  "market_return" text
);
### SQL
Given the database schema, here is the SQL query that answers `What fund has a fund return of 19.8% / 13.7%?`:
```sql
                SELECT "fund" FROM "the_statement" WHERE "fund_return"='19.8% / 13.7%';
```
## Task
Generate a SQL query to answer the following question:
`What was the position of Frank Tripp?`

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

CREATE TABLE "overview" (
  "character" text,
  "position" text,
  "actor" text,
  "first_episode" text,
  "final_episode" text,
  "episodes_credited" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position of Frank Tripp?`:
```sql
                SELECT "position" FROM "overview" WHERE "character"='frank tripp';
```
## Task
Generate a SQL query to answer the following question:
`What was the final episode credited of 187?`

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

CREATE TABLE "overview" (
  "character" text,
  "position" text,
  "actor" text,
  "first_episode" text,
  "final_episode" text,
  "episodes_credited" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final episode credited of 187?`:
```sql
                SELECT "final_episode" FROM "overview" WHERE "episodes_credited"=187;
```
## Task
Generate a SQL query to answer the following question:
`Which class at 55 built?`

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

CREATE TABLE "1890_1904" (
  "class" text,
  "wheels" text,
  "date" text,
  "no_built" real,
  "loco_nos" text,
  "comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which class at 55 built?`:
```sql
                SELECT "class" FROM "1890_1904" WHERE "no_built"=55;
```
## Task
Generate a SQL query to answer the following question:
`What is the Loco Nos of the e3 class?`

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

CREATE TABLE "1890_1904" (
  "class" text,
  "wheels" text,
  "date" text,
  "no_built" real,
  "loco_nos" text,
  "comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Loco Nos of the e3 class?`:
```sql
                SELECT "loco_nos" FROM "1890_1904" WHERE "class"='e3';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended Junction Oval?`

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

CREATE TABLE "round_6" (
  "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 many people attended Junction Oval?`:
```sql
                SELECT SUM("crowd") FROM "round_6" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the team that played against Fitzroy?`

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

CREATE TABLE "round_6" (
  "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 score of the team that played against Fitzroy?`:
```sql
                SELECT "home_team_score" FROM "round_6" WHERE "away_team"='fitzroy';
```
## Task
Generate a SQL query to answer the following question:
`Which 2011-12 season with a volume larger than 27,543 at club of melfi?`

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

CREATE TABLE "girone_b" (
  "club" text,
  "city" text,
  "stadium" text,
  "capacity" real,
  "2011_12_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2011-12 season with a volume larger than 27,543 at club of melfi?`:
```sql
                SELECT "2011_12_season" FROM "girone_b" WHERE "capacity">'27,543' AND "club"='melfi';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the stadium for the city of melfi?`

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

CREATE TABLE "girone_b" (
  "club" text,
  "city" text,
  "stadium" text,
  "capacity" real,
  "2011_12_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the stadium for the city of melfi?`:
```sql
                SELECT "stadium" FROM "girone_b" WHERE "city"='melfi';
```
## Task
Generate a SQL query to answer the following question:
`What is the total capacity for the stadium of pasquale ianniello?`

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

CREATE TABLE "girone_b" (
  "club" text,
  "city" text,
  "stadium" text,
  "capacity" real,
  "2011_12_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total capacity for the stadium of pasquale ianniello?`:
```sql
                SELECT SUM("capacity") FROM "girone_b" WHERE "stadium"='pasquale ianniello';
```
## Task
Generate a SQL query to answer the following question:
`What city is Jaffna Airport in?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city is Jaffna Airport in?`:
```sql
                SELECT "city" FROM "destinations" WHERE "airport"='jaffna airport';
```
## Task
Generate a SQL query to answer the following question:
`Which city has an ICAO of TBA?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has an ICAO of TBA?`:
```sql
                SELECT "city" FROM "destinations" WHERE "icao"='tba';
```
## Task
Generate a SQL query to answer the following question:
`Which player went to the College of Wyoming?`

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

CREATE TABLE "draft" (
  "round" text,
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player went to the College of Wyoming?`:
```sql
                SELECT "player" FROM "draft" WHERE "college"='wyoming';
```
## Task
Generate a SQL query to answer the following question:
`What was the smallest crowd at a game when Richmond was the away team?`

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

CREATE TABLE "round_14" (
  "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 smallest crowd at a game when Richmond was the away team?`:
```sql
                SELECT MIN("crowd") FROM "round_14" WHERE "away_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team at the game that had a crowd of over 24,520?`

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

CREATE TABLE "round_14" (
  "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 `Who was the home team at the game that had a crowd of over 24,520?`:
```sql
                SELECT "home_team" FROM "round_14" WHERE "crowd">'24,520';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of since for belletti`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" real,
  "goals" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of since for belletti`:
```sql
                SELECT COUNT("since") FROM "squad_information" WHERE "name"='belletti';
```
## Task
Generate a SQL query to answer the following question:
`Name the highest goals for youth system and ita`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" real,
  "goals" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the highest goals for youth system and ita`:
```sql
                SELECT MAX("goals") FROM "squad_information" WHERE "nat"='ita' AND "transfer_fee"='youth system';
```
## Task
Generate a SQL query to answer the following question:
`What is the time/retired for eddie irvine with a grid of greater than 3?`

### 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 is the time/retired for eddie irvine with a grid of greater than 3?`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "grid">3 AND "driver"='eddie irvine';
```
## Task
Generate a SQL query to answer the following question:
`How many laps had a grid of greater than 17 and retired due to collision?`

### 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 `How many laps had a grid of greater than 17 and retired due to collision?`:
```sql
                SELECT SUM("laps") FROM "classification" WHERE "grid">17 AND "time_retired"='collision';
```
## Task
Generate a SQL query to answer the following question:
`How many silvers for south korea with under 1 gold medal?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many silvers for south korea with under 1 gold medal?`:
```sql
                SELECT MAX("silver") FROM "medal_table" WHERE "nation"='south korea' AND "gold"<1;
```
## Task
Generate a SQL query to answer the following question:
`How many golds for uganda with under 3 total medals?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds for uganda with under 3 total medals?`:
```sql
                SELECT MAX("gold") FROM "medal_table" WHERE "nation"='uganda' AND "total"<3;
```
## Task
Generate a SQL query to answer the following question:
`How many bronzes for nations ranked above 7, under 3 golds, and under 10 total medals?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many bronzes for nations ranked above 7, under 3 golds, and under 10 total medals?`:
```sql
                SELECT COUNT("bronze") FROM "medal_table" WHERE "rank"<7 AND "gold"<3 AND "total"<10;
```
## Task
Generate a SQL query to answer the following question:
`Which week has a result showing L 24-10?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "kickoff_a" text,
  "game_site" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week has a result showing L 24-10?`:
```sql
                SELECT "week" FROM "schedule" WHERE "result"='l 24-10';
```
## Task
Generate a SQL query to answer the following question:
`Which week has a Kickoff time of 1:00 with a record of 4-5-1?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "kickoff_a" text,
  "game_site" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week has a Kickoff time of 1:00 with a record of 4-5-1?`:
```sql
                SELECT "week" FROM "schedule" WHERE "kickoff_a"='1:00' AND "record"='4-5-1';
```
## Task
Generate a SQL query to answer the following question:
`Which week has a record of 5-7-1?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "kickoff_a" text,
  "game_site" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week has a record of 5-7-1?`:
```sql
                SELECT "week" FROM "schedule" WHERE "record"='5-7-1';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent on the game that will be played at metropolitan stadium?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "kickoff_a" text,
  "game_site" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent on the game that will be played at metropolitan stadium?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "game_site"='metropolitan stadium';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team at Victoria Park?`

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

CREATE TABLE "round_18" (
  "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 `Who was the home team at Victoria Park?`:
```sql
                SELECT "home_team_score" FROM "round_18" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`What did the away team score at Kardinia Park?`

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

CREATE TABLE "round_18" (
  "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 did the away team score at Kardinia Park?`:
```sql
                SELECT "away_team_score" FROM "round_18" WHERE "venue"='kardinia park';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team's score in Junction Oval?`

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

CREATE TABLE "round_18" (
  "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 away team's score in Junction Oval?`:
```sql
                SELECT "away_team_score" FROM "round_18" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`When did the away team score 11.7 (73)?`

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

CREATE TABLE "round_11" (
  "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 `When did the away team score 11.7 (73)?`:
```sql
                SELECT "date" FROM "round_11" WHERE "away_team_score"='11.7 (73)';
```
## Task
Generate a SQL query to answer the following question:
`Which home team scored 12.11 (83)?`

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

CREATE TABLE "round_11" (
  "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 scored 12.11 (83)?`:
```sql
                SELECT "home_team" FROM "round_11" WHERE "home_team_score"='12.11 (83)';
```
## Task
Generate a SQL query to answer the following question:
`What did the away team score at Moorabbin Oval?`

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

CREATE TABLE "round_11" (
  "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 did the away team score at Moorabbin Oval?`:
```sql
                SELECT "away_team_score" FROM "round_11" WHERE "venue"='moorabbin oval';
```
## Task
Generate a SQL query to answer the following question:
`Who constructed the car that has a Time/Retired of engine, and over 50 laps?`

### 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 `Who constructed the car that has a Time/Retired of engine, and over 50 laps?`:
```sql
                SELECT "constructor" FROM "classification" WHERE "time_retired"='engine' AND "laps">50;
```
## Task
Generate a SQL query to answer the following question:
`What is the time/retired for ronnie peterson with under 75 laps and a grid under 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 is the time/retired for ronnie peterson with under 75 laps and a grid under 15?`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "laps"<75 AND "grid"<15 AND "driver"='ronnie peterson';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the tournament with more than 6 OWGR points and Ryu Hyun-Woo as the winner?`

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

CREATE TABLE "2013_schedule" (
  "dates" text,
  "tournament" text,
  "location" text,
  "prize_fund_krw" text,
  "winner" text,
  "owgr_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the tournament with more than 6 OWGR points and Ryu Hyun-Woo as the winner?`:
```sql
                SELECT "location" FROM "2013_schedule" WHERE "owgr_points">6 AND "winner"='ryu hyun-woo';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at Arden Street Oval?`

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

CREATE TABLE "round_15" (
  "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 `Who was the away team at Arden Street Oval?`:
```sql
                SELECT "away_team" FROM "round_15" WHERE "venue"='arden street oval';
```
## Task
Generate a SQL query to answer the following question:
`Where did Collingwood play their home game with an attendance of 14,962?`

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

CREATE TABLE "round_15" (
  "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 `Where did Collingwood play their home game with an attendance of 14,962?`:
```sql
                SELECT "venue" FROM "round_15" WHERE "crowd">'14,962' AND "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the game with an away team score of 10.8 (68)?`

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

CREATE TABLE "round_15" (
  "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 many people attended the game with an away team score of 10.8 (68)?`:
```sql
                SELECT COUNT("crowd") FROM "round_15" WHERE "away_team_score"='10.8 (68)';
```
## Task
Generate a SQL query to answer the following question:
`I want the team with assists greater than 118 and rank less than 2`

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

CREATE TABLE "assists" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `I want the team with assists greater than 118 and rank less than 2`:
```sql
                SELECT "team" FROM "assists" WHERE "assists">118 AND "rank"<2;
```
## Task
Generate a SQL query to answer the following question:
`What region has a 5 rank?`

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

CREATE TABLE "the_easternmost_high_summits_of_the_rock" (
  "rank" real,
  "mountain_peak" text,
  "region" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What region has a 5 rank?`:
```sql
                SELECT "region" FROM "the_easternmost_high_summits_of_the_rock" WHERE "rank"=5;
```
## Task
Generate a SQL query to answer the following question:
`Which mountain peak has spanish peaks?`

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

CREATE TABLE "the_easternmost_high_summits_of_the_rock" (
  "rank" real,
  "mountain_peak" text,
  "region" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which mountain peak has spanish peaks?`:
```sql
                SELECT "mountain_peak" FROM "the_easternmost_high_summits_of_the_rock" WHERE "mountain_range"='spanish peaks';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team at Junction Oval when attendance was over 16,000?`

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

CREATE TABLE "round_17" (
  "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 `Who was the home team at Junction Oval when attendance was over 16,000?`:
```sql
                SELECT "home_team" FROM "round_17" WHERE "crowd">'16,000' AND "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`What date did Essendon play as the home team?`

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

CREATE TABLE "round_17" (
  "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 date did Essendon play as the home team?`:
```sql
                SELECT "date" FROM "round_17" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance at Windy Hill?`

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

CREATE TABLE "round_17" (
  "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 attendance at Windy Hill?`:
```sql
                SELECT MAX("crowd") FROM "round_17" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`What was the smallest crowd of vfl park?`

### 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 was the smallest crowd of vfl park?`:
```sql
                SELECT MIN("crowd") FROM "round_20" WHERE "venue"='vfl park';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team score at kardinia park?`

### 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 was the away team score at kardinia park?`:
```sql
                SELECT "away_team_score" FROM "round_20" WHERE "venue"='kardinia park';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at the home game of north 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 `Who was the away team at the home game of north melbourne?`:
```sql
                SELECT "away_team" FROM "round_20" WHERE "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the average crowd size at a home game that had a score of 14.15 (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 was the average crowd size at a home game that had a score of 14.15 (99)?`:
```sql
                SELECT AVG("crowd") FROM "round_20" WHERE "home_team_score"='14.15 (99)';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of yards on a red tee that has a hole of 1 and a par above 4?`

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

CREATE TABLE "course_detail" (
  "hole" text,
  "yards_red_tees" real,
  "par_red_tees" real,
  "yards_white_tees" real,
  "par_white_tees" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of yards on a red tee that has a hole of 1 and a par above 4?`:
```sql
                SELECT AVG("yards_red_tees") FROM "course_detail" WHERE "hole"='1' AND "par_white_tees">4;
```
## Task
Generate a SQL query to answer the following question:
`How many bronzes did netherlands win?`

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

CREATE TABLE "medal_count" (
  "nation" text,
  "gold" text,
  "silver" text,
  "bronze" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many bronzes did netherlands win?`:
```sql
                SELECT "bronze" FROM "medal_count" WHERE "nation"='netherlands';
```
## Task
Generate a SQL query to answer the following question:
`What is the nation for 6 total?`

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

CREATE TABLE "medal_count" (
  "nation" text,
  "gold" text,
  "silver" text,
  "bronze" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nation for 6 total?`:
```sql
                SELECT "nation" FROM "medal_count" WHERE "total"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is the bronze when silver is 4 and gold is 1 and the total is more than 2`

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

CREATE TABLE "medal_count" (
  "nation" text,
  "gold" text,
  "silver" text,
  "bronze" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bronze when silver is 4 and gold is 1 and the total is more than 2`:
```sql
                SELECT "bronze" FROM "medal_count" WHERE "total">2 AND "gold"='1' AND "silver"='4';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the gold for netherlands`

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

CREATE TABLE "medal_count" (
  "nation" text,
  "gold" text,
  "silver" text,
  "bronze" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the gold for netherlands`:
```sql
                SELECT "gold" FROM "medal_count" WHERE "nation"='netherlands';
```