cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the report for the race that Ayrton Senna won on 27 August?`

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

CREATE TABLE "season_review" (
  "grand_prix" text,
  "date" text,
  "location" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the report for the race that Ayrton Senna won on 27 August?`:
```sql
                SELECT "report" FROM "season_review" WHERE "winning_driver"='ayrton senna' AND "date"='27 august';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of gold medals for the United States with silver medal count greater than 3?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of gold medals for the United States with silver medal count greater than 3?`:
```sql
                SELECT SUM("gold") FROM "medal_count" WHERE "nation"='united states' AND "silver">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of medals of Norway with a silver medal count greater than 6 and a gold medal count greater than 10?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of medals of Norway with a silver medal count greater than 6 and a gold medal count greater than 10?`:
```sql
                SELECT COUNT("total") FROM "medal_count" WHERE "silver">6 AND "nation"='norway' AND "gold">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest bronze medal count for Italy with fewer than 6 gold medals and greater than 10 total medals?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest bronze medal count for Italy with fewer than 6 gold medals and greater than 10 total medals?`:
```sql
                SELECT MIN("bronze") FROM "medal_count" WHERE "gold"<6 AND "nation"='italy' AND "total">10;
```
## Task
Generate a SQL query to answer the following question:
`On average, what is the number of silver medals for nations ranking higher than 7, with a total of 6 medals and fewer than 2 bronze medals?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `On average, what is the number of silver medals for nations ranking higher than 7, with a total of 6 medals and fewer than 2 bronze medals?`:
```sql
                SELECT AVG("silver") FROM "medal_count" WHERE "rank">7 AND "total"=6 AND "bronze"<2;
```
## Task
Generate a SQL query to answer the following question:
`For the United States, with greater than 2 bronze metals, greater than 3 silver medals, and a rank higher than 3, what is the highest total number of medals?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the United States, with greater than 2 bronze metals, greater than 3 silver medals, and a rank higher than 3, what is the highest total number of medals?`:
```sql
                SELECT MAX("total") FROM "medal_count" WHERE "bronze">2 AND "rank">3 AND "nation"='united states' AND "silver">3;
```
## Task
Generate a SQL query to answer the following question:
`Which player was active in Jazz in 1975-79?`

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

CREATE TABLE "m" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player was active in Jazz in 1975-79?`:
```sql
                SELECT "player" FROM "m" WHERE "years_for_jazz"='1975-79';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality for the guard position from Bowling Green?`

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

CREATE TABLE "m" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality for the guard position from Bowling Green?`:
```sql
                SELECT "nationality" FROM "m" WHERE "position"='guard' AND "school_club_team"='bowling green';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player from Auburn?`

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

CREATE TABLE "m" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from Auburn?`:
```sql
                SELECT "player" FROM "m" WHERE "school_club_team"='auburn';
```
## Task
Generate a SQL query to answer the following question:
`Which player is a shooting guard?`

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

CREATE TABLE "m" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player is a shooting guard?`:
```sql
                SELECT "player" FROM "m" WHERE "position"='shooting guard';
```
## Task
Generate a SQL query to answer the following question:
`Which position was active in Jazz in 2002-03?`

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

CREATE TABLE "m" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_jazz" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position was active in Jazz in 2002-03?`:
```sql
                SELECT "position" FROM "m" WHERE "years_for_jazz"='2002-03';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of swimsuits when evening gown is 8.329 and average is less than 8.497`

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

CREATE TABLE "preliminary_competition" (
  "state" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of swimsuits when evening gown is 8.329 and average is less than 8.497`:
```sql
                SELECT COUNT("swimsuit") FROM "preliminary_competition" WHERE "evening_gown"=8.329 AND "average"<8.497;
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of swimsuit when the evening gown is less than 6.983 and the average is less than 7.362`

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

CREATE TABLE "preliminary_competition" (
  "state" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of swimsuit when the evening gown is less than 6.983 and the average is less than 7.362`:
```sql
                SELECT SUM("swimsuit") FROM "preliminary_competition" WHERE "average"<7.362 AND "evening_gown"<6.983;
```
## Task
Generate a SQL query to answer the following question:
`Name the most interview for minnesota and average more than 7.901`

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

CREATE TABLE "preliminary_competition" (
  "state" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most interview for minnesota and average more than 7.901`:
```sql
                SELECT MAX("interview") FROM "preliminary_competition" WHERE "state"='minnesota' AND "average">7.901;
```
## Task
Generate a SQL query to answer the following question:
`Name the highest Decile for roll more than 325 and area of warkworth`

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

CREATE TABLE "rodney_local_board" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the highest Decile for roll more than 325 and area of warkworth`:
```sql
                SELECT MAX("decile") FROM "rodney_local_board" WHERE "roll">325 AND "area"='warkworth';
```
## Task
Generate a SQL query to answer the following question:
`Name the authority for roll of 54`

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

CREATE TABLE "rodney_local_board" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the authority for roll of 54`:
```sql
                SELECT "authority" FROM "rodney_local_board" WHERE "roll"=54;
```
## Task
Generate a SQL query to answer the following question:
`What was the score of Match 2?`

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

CREATE TABLE "friendly" (
  "match" real,
  "date" text,
  "competition_or_tour" text,
  "ground" text,
  "opponent" text,
  "score1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of Match 2?`:
```sql
                SELECT "score1" FROM "friendly" WHERE "match"=2;
```
## Task
Generate a SQL query to answer the following question:
`Which away team had a score of 11.11 (77)?`

### 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 `Which away team had a score of 11.11 (77)?`:
```sql
                SELECT "away_team" FROM "round_8" WHERE "away_team_score"='11.11 (77)';
```
## Task
Generate a SQL query to answer the following question:
`When did Essendon play at home?`

### 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 `When did Essendon play at home?`:
```sql
                SELECT "date" FROM "round_8" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`What was Collingwood's score when they played against North Melbourne at home?`

### 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 Collingwood's score when they played against North Melbourne at home?`:
```sql
                SELECT "home_team_score" FROM "round_8" WHERE "away_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team score at Melbourne's away match?`

### 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 home team score at Melbourne's away match?`:
```sql
                SELECT "home_team_score" FROM "round_8" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`How many people were in attendance at Hawthorn's home match?`

### 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 `How many people were in attendance at Hawthorn's home match?`:
```sql
                SELECT MIN("crowd") FROM "round_8" WHERE "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`what is the capital with the Voivodeship Separate city of białostockie?`

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

CREATE TABLE "polish_voivodeships_1919_1939" (
  "car_plates_since_1937" text,
  "voivodeship_separate_city" text,
  "capital" text,
  "area_in_1000km_1930" text,
  "population_in_1000_1931" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the capital with the Voivodeship Separate city of białostockie?`:
```sql
                SELECT "capital" FROM "polish_voivodeships_1919_1939" WHERE "voivodeship_separate_city"='białostockie';
```
## Task
Generate a SQL query to answer the following question:
`between car plates of 80-84 what is the population in 1000 in year 1931?`

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

CREATE TABLE "polish_voivodeships_1919_1939" (
  "car_plates_since_1937" text,
  "voivodeship_separate_city" text,
  "capital" text,
  "area_in_1000km_1930" text,
  "population_in_1000_1931" text
);
### SQL
Given the database schema, here is the SQL query that answers `between car plates of 80-84 what is the population in 1000 in year 1931?`:
```sql
                SELECT "population_in_1000_1931" FROM "polish_voivodeships_1919_1939" WHERE "car_plates_since_1937"='80-84';
```
## Task
Generate a SQL query to answer the following question:
`tell me the population in 1000(1931) that has car plates since 1937 of 35-39.`

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

CREATE TABLE "polish_voivodeships_1919_1939" (
  "car_plates_since_1937" text,
  "voivodeship_separate_city" text,
  "capital" text,
  "area_in_1000km_1930" text,
  "population_in_1000_1931" text
);
### SQL
Given the database schema, here is the SQL query that answers `tell me the population in 1000(1931) that has car plates since 1937 of 35-39.`:
```sql
                SELECT "population_in_1000_1931" FROM "polish_voivodeships_1919_1939" WHERE "car_plates_since_1937"='35-39';
```
## Task
Generate a SQL query to answer the following question:
`tell me the name of the capital with an area of 20,4.`

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

CREATE TABLE "polish_voivodeships_1919_1939" (
  "car_plates_since_1937" text,
  "voivodeship_separate_city" text,
  "capital" text,
  "area_in_1000km_1930" text,
  "population_in_1000_1931" text
);
### SQL
Given the database schema, here is the SQL query that answers `tell me the name of the capital with an area of 20,4.`:
```sql
                SELECT "capital" FROM "polish_voivodeships_1919_1939" WHERE "area_in_1000km_1930"='20,4';
```
## Task
Generate a SQL query to answer the following question:
`When did they play against Wales?`

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

CREATE TABLE "international_tries" (
  "date" text,
  "venue" text,
  "opponent" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did they play against Wales?`:
```sql
                SELECT "date" FROM "international_tries" WHERE "opponent"='wales';
```
## Task
Generate a SQL query to answer the following question:
`What was the result on 29/09/07?`

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

CREATE TABLE "international_tries" (
  "date" text,
  "venue" text,
  "opponent" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result on 29/09/07?`:
```sql
                SELECT "result" FROM "international_tries" WHERE "date"='29/09/07';
```
## Task
Generate a SQL query to answer the following question:
`What was the competition on 25/08/07?`

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

CREATE TABLE "international_tries" (
  "date" text,
  "venue" text,
  "opponent" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the competition on 25/08/07?`:
```sql
                SELECT "competition" FROM "international_tries" WHERE "date"='25/08/07';
```
## Task
Generate a SQL query to answer the following question:
`What position is associated with a Time of 20:39.171?`

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

CREATE TABLE "race_2" (
  "pos" real,
  "driver" text,
  "time" text,
  "best_time" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What position is associated with a Time of 20:39.171?`:
```sql
                SELECT AVG("pos") FROM "race_2" WHERE "time"='20:39.171';
```
## Task
Generate a SQL query to answer the following question:
`How many points associated with a Best time of 01:46.367?`

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

CREATE TABLE "race_2" (
  "pos" real,
  "driver" text,
  "time" text,
  "best_time" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points associated with a Best time of 01:46.367?`:
```sql
                SELECT AVG("points") FROM "race_2" WHERE "best_time"='01:46.367';
```
## Task
Generate a SQL query to answer the following question:
`What is the total reg gp of Ilya Krikunov, who has a round of 7 and a pick number larger than 223?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total reg gp of Ilya Krikunov, who has a round of 7 and a pick number larger than 223?`:
```sql
                SELECT COUNT("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "rd_num"=7 AND "player"='ilya krikunov' AND "pick_num">223;
```
## Task
Generate a SQL query to answer the following question:
`What is the total PI GP of the player with a pick number 49 and a reg gp less than 0?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total PI GP of the player with a pick number 49 and a reg gp less than 0?`:
```sql
                SELECT COUNT("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pick_num"=49 AND "reg_gp"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the pick # of the player with a PI GP less than 0?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick # of the player with a PI GP less than 0?`:
```sql
                SELECT SUM("pick_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pl_gp"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the reg gp of the player with a round number less than 2?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the reg gp of the player with a round number less than 2?`:
```sql
                SELECT SUM("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "rd_num"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the average PI GP of the player from round 5 with a pick # larger than 151?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average PI GP of the player from round 5 with a pick # larger than 151?`:
```sql
                SELECT AVG("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "rd_num"=5 AND "pick_num">151;
```
## Task
Generate a SQL query to answer the following question:
`What constellation has a Declination ( J2000 ) of °32′39″?`

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

CREATE TABLE "5801_5900" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What constellation has a Declination ( J2000 ) of °32′39″?`:
```sql
                SELECT "constellation" FROM "5801_5900" WHERE "declination_j2000"='°32′39″';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest pick from Elitserien (Sweden)?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest pick from Elitserien (Sweden)?`:
```sql
                SELECT MIN("pick_num") FROM "round_five" WHERE "league_from"='elitserien (sweden)';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game played when the home team scored 10.12 (72)?`

### 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 `Where was the game played when the home team scored 10.12 (72)?`:
```sql
                SELECT "venue" FROM "round_7" WHERE "home_team_score"='10.12 (72)';
```
## Task
Generate a SQL query to answer the following question:
`How many spectators were at the game where Richmond was the away team?`

### 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 `How many spectators were at the game where Richmond was the away team?`:
```sql
                SELECT SUM("crowd") FROM "round_7" WHERE "away_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the kanyakumari government medical college?`

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

CREATE TABLE "tamil_nadu_government_allopathic_western" (
  "college_name" text,
  "location" text,
  "district" text,
  "affiliation" text,
  "estd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the kanyakumari government medical college?`:
```sql
                SELECT "location" FROM "tamil_nadu_government_allopathic_western" WHERE "college_name"='kanyakumari government medical college';
```
## Task
Generate a SQL query to answer the following question:
`Where is the coimbatore affilation that was established in 1982?`

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

CREATE TABLE "tamil_nadu_government_allopathic_western" (
  "college_name" text,
  "location" text,
  "district" text,
  "affiliation" text,
  "estd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the coimbatore affilation that was established in 1982?`:
```sql
                SELECT "affiliation" FROM "tamil_nadu_government_allopathic_western" WHERE "estd"='1982' AND "location"='coimbatore';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the salem district?`

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

CREATE TABLE "tamil_nadu_government_allopathic_western" (
  "college_name" text,
  "location" text,
  "district" text,
  "affiliation" text,
  "estd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the salem district?`:
```sql
                SELECT "location" FROM "tamil_nadu_government_allopathic_western" WHERE "district"='salem district';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the tiruchirappalli district?`

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

CREATE TABLE "tamil_nadu_government_allopathic_western" (
  "college_name" text,
  "location" text,
  "district" text,
  "affiliation" text,
  "estd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the tiruchirappalli district?`:
```sql
                SELECT "location" FROM "tamil_nadu_government_allopathic_western" WHERE "district"='tiruchirappalli district';
```
## Task
Generate a SQL query to answer the following question:
`What is the district where the thanjavur medical college is located?`

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

CREATE TABLE "tamil_nadu_government_allopathic_western" (
  "college_name" text,
  "location" text,
  "district" text,
  "affiliation" text,
  "estd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the district where the thanjavur medical college is located?`:
```sql
                SELECT "district" FROM "tamil_nadu_government_allopathic_western" WHERE "college_name"='thanjavur medical college';
```
## Task
Generate a SQL query to answer the following question:
`Where is the location of the coimbatore medical college?`

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

CREATE TABLE "tamil_nadu_government_allopathic_western" (
  "college_name" text,
  "location" text,
  "district" text,
  "affiliation" text,
  "estd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the location of the coimbatore medical college?`:
```sql
                SELECT "location" FROM "tamil_nadu_government_allopathic_western" WHERE "college_name"='coimbatore medical college';
```
## Task
Generate a SQL query to answer the following question:
`What is the Time/Retired when the grid is larger than 9 and Rolf Stommelen is the driver?`

### 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 when the grid is larger than 9 and Rolf Stommelen is the driver?`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "grid">9 AND "driver"='rolf stommelen';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of laps when the Time/Retired is differential?`

### 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 highest number of laps when the Time/Retired is differential?`:
```sql
                SELECT MAX("laps") FROM "classification" WHERE "time_retired"='differential';
```
## Task
Generate a SQL query to answer the following question:
`Who is the driver when the laps are smaller than 14, the grid is smaller than 16, and the Time/retired is not classified?`

### 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 is the driver when the laps are smaller than 14, the grid is smaller than 16, and the Time/retired is not classified?`:
```sql
                SELECT "driver" FROM "classification" WHERE "laps"<14 AND "grid"<16 AND "time_retired"='not classified';
```
## Task
Generate a SQL query to answer the following question:
`What is the average grid when the laps are smaller than 14 and Reine Wisell is the driver?`

### 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 average grid when the laps are smaller than 14 and Reine Wisell is the driver?`:
```sql
                SELECT AVG("grid") FROM "classification" WHERE "laps"<14 AND "driver"='reine wisell';
```
## Task
Generate a SQL query to answer the following question:
`Who is the entrant with a driver Damon Hill and a Renault RS8 3.0 V10 engine?`

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

CREATE TABLE "teams_and_drivers" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the entrant with a driver Damon Hill and a Renault RS8 3.0 V10 engine?`:
```sql
                SELECT "entrant" FROM "teams_and_drivers" WHERE "engine"='renault rs8 3.0 v10' AND "driver"='damon hill';
```
## Task
Generate a SQL query to answer the following question:
`Who is the constructor of the car with a Peugeot A12 EV5 3.0 V10 engine that competed in all rounds?`

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

CREATE TABLE "teams_and_drivers" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the constructor of the car with a Peugeot A12 EV5 3.0 V10 engine that competed in all rounds?`:
```sql
                SELECT "constructor" FROM "teams_and_drivers" WHERE "rounds"='all' AND "engine"='peugeot a12 ev5 3.0 v10';
```
## Task
Generate a SQL query to answer the following question:
`What kind of engine is in the car for Scuderia Ferrari that went all rounds?`

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

CREATE TABLE "teams_and_drivers" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of engine is in the car for Scuderia Ferrari that went all rounds?`:
```sql
                SELECT "engine" FROM "teams_and_drivers" WHERE "rounds"='all' AND "entrant"='scuderia ferrari';
```
## Task
Generate a SQL query to answer the following question:
`Who is the constructor of the 196 chassis?`

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

CREATE TABLE "teams_and_drivers" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the constructor of the 196 chassis?`:
```sql
                SELECT "constructor" FROM "teams_and_drivers" WHERE "chassis"='196';
```
## Task
Generate a SQL query to answer the following question:
`Name the home with visitor of kings`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the home with visitor of kings`:
```sql
                SELECT "home" FROM "december" WHERE "visitor"='kings';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of attendance when the cavaliers visited`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of attendance when the cavaliers visited`:
```sql
                SELECT COUNT("attendance") FROM "december" WHERE "visitor"='cavaliers';
```
## Task
Generate a SQL query to answer the following question:
`Which women's doubles had the accompanying Men's singles player Ville Lång?`

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

CREATE TABLE "21st_century" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which women's doubles had the accompanying Men's singles player Ville Lång?`:
```sql
                SELECT "women_s_doubles" FROM "21st_century" WHERE "men_s_singles"='ville lång';
```
## Task
Generate a SQL query to answer the following question:
`Which mixed doubles was featured in 2006?`

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

CREATE TABLE "21st_century" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which mixed doubles was featured in 2006?`:
```sql
                SELECT "mixed_doubles" FROM "21st_century" WHERE "year"=2006;
```
## Task
Generate a SQL query to answer the following question:
`Which women's doubles had the men's singles player Kenichi Tago?`

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

CREATE TABLE "21st_century" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which women's doubles had the men's singles player Kenichi Tago?`:
```sql
                SELECT "women_s_doubles" FROM "21st_century" WHERE "men_s_singles"='kenichi tago';
```
## Task
Generate a SQL query to answer the following question:
`In the games at corio oval, what was the highest crowd?`

### 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 `In the games at corio oval, what was the highest crowd?`:
```sql
                SELECT MAX("crowd") FROM "round_17" WHERE "venue"='corio oval';
```
## Task
Generate a SQL query to answer the following question:
`In the match as corio oval, who was the away 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 `In the match as corio oval, who was the away team?`:
```sql
                SELECT "away_team" FROM "round_17" WHERE "venue"='corio oval';
```
## Task
Generate a SQL query to answer the following question:
`How many communes associated with over 10 cantons and an area (Square km) of 1,589?`

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

CREATE TABLE "complete_list" (
  "dep" text,
  "chief_town" text,
  "arrondissement" text,
  "population_1999" text,
  "area_square_km" real,
  "pop_density" real,
  "cantons" real,
  "communes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many communes associated with over 10 cantons and an area (Square km) of 1,589?`:
```sql
                SELECT AVG("communes") FROM "complete_list" WHERE "cantons">10 AND "area_square_km"='1,589';
```
## Task
Generate a SQL query to answer the following question:
`Which team won the game on January 12?`

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

CREATE TABLE "january" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team won the game on January 12?`:
```sql
                SELECT "decision" FROM "january" WHERE "date"='january 12';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team against Geelong?`

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

CREATE TABLE "round_13" (
  "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 against Geelong?`:
```sql
                SELECT "home_team_score" FROM "round_13" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance when the VFL played MCG?`

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

CREATE TABLE "round_13" (
  "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 when the VFL played MCG?`:
```sql
                SELECT COUNT("crowd") FROM "round_13" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`Name the security forces with civilians of 67`

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

CREATE TABLE "casualties" (
  "year" text,
  "security_forces" text,
  "insurgents" text,
  "civilians" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the security forces with civilians of 67`:
```sql
                SELECT "security_forces" FROM "casualties" WHERE "civilians"='67';
```
## Task
Generate a SQL query to answer the following question:
`Name the insurgents for civilians being 49`

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

CREATE TABLE "casualties" (
  "year" text,
  "security_forces" text,
  "insurgents" text,
  "civilians" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the insurgents for civilians being 49`:
```sql
                SELECT "insurgents" FROM "casualties" WHERE "civilians"='49';
```
## Task
Generate a SQL query to answer the following question:
`Name the security forces with civilians being 67`

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

CREATE TABLE "casualties" (
  "year" text,
  "security_forces" text,
  "insurgents" text,
  "civilians" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the security forces with civilians being 67`:
```sql
                SELECT "security_forces" FROM "casualties" WHERE "civilians"='67';
```
## Task
Generate a SQL query to answer the following question:
`Name the security forces for 2009`

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

CREATE TABLE "casualties" (
  "year" text,
  "security_forces" text,
  "insurgents" text,
  "civilians" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the security forces for 2009`:
```sql
                SELECT "security_forces" FROM "casualties" WHERE "year"='2009';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the security forces for 849 total`

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

CREATE TABLE "casualties" (
  "year" text,
  "security_forces" text,
  "insurgents" text,
  "civilians" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the security forces for 849 total`:
```sql
                SELECT "security_forces" FROM "casualties" WHERE "total"='849';
```
## Task
Generate a SQL query to answer the following question:
`What tyre has a chassis of p57 p61?`

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

CREATE TABLE "teams_and_drivers" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tyre has a chassis of p57 p61?`:
```sql
                SELECT "tyre" FROM "teams_and_drivers" WHERE "chassis"='p57 p61';
```
## Task
Generate a SQL query to answer the following question:
`what is the highest laps when the grid is 1?`

### 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 highest laps when the grid is 1?`:
```sql
                SELECT MAX("laps") FROM "classification" WHERE "grid"=1;
```
## Task
Generate a SQL query to answer the following question:
`How many athletes had a Swimming Time (pts) of 2:20.93 (1232)?`

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

CREATE TABLE "results" (
  "athlete" text,
  "shooting_score_pts" text,
  "fencing_victories_pts" text,
  "swimming_time_pts" text,
  "riding_penalties_pts" text,
  "running_time_pts" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many athletes had a Swimming Time (pts) of 2:20.93 (1232)?`:
```sql
                SELECT COUNT("total") FROM "results" WHERE "swimming_time_pts"='2:20.93 (1232)';
```
## Task
Generate a SQL query to answer the following question:
`What is the riding penaltie (pts) for the athlete that has a Swimming Time (pts) of 2:18.16 (1264)?`

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

CREATE TABLE "results" (
  "athlete" text,
  "shooting_score_pts" text,
  "fencing_victories_pts" text,
  "swimming_time_pts" text,
  "riding_penalties_pts" text,
  "running_time_pts" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the riding penaltie (pts) for the athlete that has a Swimming Time (pts) of 2:18.16 (1264)?`:
```sql
                SELECT "riding_penalties_pts" FROM "results" WHERE "swimming_time_pts"='2:18.16 (1264)';
```
## Task
Generate a SQL query to answer the following question:
`Which owner has a description of Mark 1 pos and is dated 1956?`

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

CREATE TABLE "list_of_great_central_railway_locomotive" (
  "number_name" text,
  "description" text,
  "livery" text,
  "owner_s" text,
  "date" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which owner has a description of Mark 1 pos and is dated 1956?`:
```sql
                SELECT "owner_s" FROM "list_of_great_central_railway_locomotive" WHERE "date"=1956 AND "description"='mark 1 pos';
```
## Task
Generate a SQL query to answer the following question:
`Which owner has a description of Mark 1 CK and is dated 1953?`

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

CREATE TABLE "list_of_great_central_railway_locomotive" (
  "number_name" text,
  "description" text,
  "livery" text,
  "owner_s" text,
  "date" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which owner has a description of Mark 1 CK and is dated 1953?`:
```sql
                SELECT "owner_s" FROM "list_of_great_central_railway_locomotive" WHERE "date"=1953 AND "description"='mark 1 ck';
```
## Task
Generate a SQL query to answer the following question:
`Who was the athlete who had SEMI of 1:43.79?`

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

CREATE TABLE "final_classification" (
  "name_athlete" text,
  "final" text,
  "lane" real,
  "semi" text,
  "heat" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the athlete who had SEMI of 1:43.79?`:
```sql
                SELECT "name_athlete" FROM "final_classification" WHERE "semi"='1:43.79';
```
## Task
Generate a SQL query to answer the following question:
`What were the final time for the swimmer on lane 4?`

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

CREATE TABLE "final_classification" (
  "name_athlete" text,
  "final" text,
  "lane" real,
  "semi" text,
  "heat" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the final time for the swimmer on lane 4?`:
```sql
                SELECT "final" FROM "final_classification" WHERE "lane"=4;
```