cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many figures are given for total number of South Asians in 2001 for the area where they were 4.4% of population in 2011?`

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

CREATE TABLE "population" (
  "province" text,
  "south_asians_2001" real,
  "pct_2001" text,
  "south_asians_2011" real,
  "pct_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many figures are given for total number of South Asians in 2001 for the area where they were 4.4% of population in 2011?`:
```sql
                SELECT COUNT("south_asians_2001") FROM "population" WHERE "pct_2011"='4.4%';
```
## Task
Generate a SQL query to answer the following question:
`How many Indians were admitted in 2001?`

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

CREATE TABLE "immigration" (
  "year" real,
  "indians_admitted" real,
  "pakistanis_admitted" real,
  "sri_lankans_admitted" real,
  "bangladeshis_admitted" real,
  "nepalis_admitted" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Indians were admitted in 2001?`:
```sql
                SELECT "indians_admitted" FROM "immigration" WHERE "year"=2001;
```
## Task
Generate a SQL query to answer the following question:
`What is the greatest number of Pakistanis admitted to Canada during those times when the number of Nepalis admitted was 627?`

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

CREATE TABLE "immigration" (
  "year" real,
  "indians_admitted" real,
  "pakistanis_admitted" real,
  "sri_lankans_admitted" real,
  "bangladeshis_admitted" real,
  "nepalis_admitted" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest number of Pakistanis admitted to Canada during those times when the number of Nepalis admitted was 627?`:
```sql
                SELECT MAX("pakistanis_admitted") FROM "immigration" WHERE "nepalis_admitted"=627;
```
## Task
Generate a SQL query to answer the following question:
`What is the most number of Indians admitted to Canada when the number of Sri Lankans admitted was 3104?`

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

CREATE TABLE "immigration" (
  "year" real,
  "indians_admitted" real,
  "pakistanis_admitted" real,
  "sri_lankans_admitted" real,
  "bangladeshis_admitted" real,
  "nepalis_admitted" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most number of Indians admitted to Canada when the number of Sri Lankans admitted was 3104?`:
```sql
                SELECT MIN("indians_admitted") FROM "immigration" WHERE "sri_lankans_admitted"=3104;
```
## Task
Generate a SQL query to answer the following question:
`Name the number of tv seasons for season finale being may 24, 1994`

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

CREATE TABLE "seasonal_timeslots_ratings" (
  "season" real,
  "tv_season" text,
  "regular_timeslot_edt" text,
  "episode_count" real,
  "season_premiere" text,
  "season_finale" text,
  "rank" text,
  "rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of tv seasons for season finale being may 24, 1994`:
```sql
                SELECT COUNT("tv_season") FROM "seasonal_timeslots_ratings" WHERE "season_finale"='May 24, 1994';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of tv seasons for season finale of may 23, 1995`

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

CREATE TABLE "seasonal_timeslots_ratings" (
  "season" real,
  "tv_season" text,
  "regular_timeslot_edt" text,
  "episode_count" real,
  "season_premiere" text,
  "season_finale" text,
  "rank" text,
  "rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of tv seasons for season finale of may 23, 1995`:
```sql
                SELECT COUNT("tv_season") FROM "seasonal_timeslots_ratings" WHERE "season_finale"='May 23, 1995';
```
## Task
Generate a SQL query to answer the following question:
`Name the driver/passenger for 30`

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

CREATE TABLE "riders" (
  "position" real,
  "driver_passenger" text,
  "equipment" text,
  "bike_no" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the driver/passenger for 30`:
```sql
                SELECT COUNT("driver_passenger") FROM "riders" WHERE "position"=30;
```
## Task
Generate a SQL query to answer the following question:
`Name the max bike number of position for 30`

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

CREATE TABLE "riders" (
  "position" real,
  "driver_passenger" text,
  "equipment" text,
  "bike_no" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the max bike number of position for 30`:
```sql
                SELECT MAX("bike_no") FROM "riders" WHERE "position"=30;
```
## Task
Generate a SQL query to answer the following question:
`Who had the most points in game 4?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the most points in game 4?`:
```sql
                SELECT "high_points" FROM "playoffs" WHERE "game"=4;
```
## Task
Generate a SQL query to answer the following question:
`Name the number of going to for  thurlby, braceborough spa at departure being 16.50`

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

CREATE TABLE "table1_17200372_2" (
  "departure" text,
  "going_to" text,
  "calling_at" text,
  "arrival" text,
  "operator" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of going to for  thurlby, braceborough spa at departure being 16.50`:
```sql
                SELECT COUNT("going_to") FROM "table1_17200372_2" WHERE "calling_at"='Thurlby, Braceborough Spa' AND "departure"='16.50';
```
## Task
Generate a SQL query to answer the following question:
`Name the departure for spalding`

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

CREATE TABLE "table1_17200372_2" (
  "departure" text,
  "going_to" text,
  "calling_at" text,
  "arrival" text,
  "operator" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the departure for spalding`:
```sql
                SELECT "departure" FROM "table1_17200372_2" WHERE "going_to"='Spalding';
```
## Task
Generate a SQL query to answer the following question:
`who scored highest points on the game with record 27–5`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `who scored highest points on the game with record 27–5`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "record"='27–5';
```
## Task
Generate a SQL query to answer the following question:
`who did highest rebounds in the game with score w 105–88 (ot)`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `who did highest rebounds in the game with score w 105–88 (ot)`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "score"='W 105–88 (OT)';
```
## Task
Generate a SQL query to answer the following question:
`how many records were made on the game that ended with score w 121–119 (ot)`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many records were made on the game that ended with score w 121–119 (ot)`:
```sql
                SELECT COUNT("record") FROM "game_log" WHERE "score"='W 121–119 (OT)';
```
## Task
Generate a SQL query to answer the following question:
`What was the team's position when the new manager was Lucas Alcaraz?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team's position when the new manager was Lucas Alcaraz?`:
```sql
                SELECT "position_in_table" FROM "managerial_changes" WHERE "replaced_by"='Lucas Alcaraz';
```
## Task
Generate a SQL query to answer the following question:
`Who replaced outgoing manager José Ángel Ziganda?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who replaced outgoing manager José Ángel Ziganda?`:
```sql
                SELECT "replaced_by" FROM "managerial_changes" WHERE "outgoing_manager"='José Ángel Ziganda';
```
## Task
Generate a SQL query to answer the following question:
`What grid did the driver who earned 19 points start at?`

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

CREATE TABLE "classification" (
  "fin_pos" real,
  "car_no" real,
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "laps_led" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What grid did the driver who earned 19 points start at?`:
```sql
                SELECT "grid" FROM "classification" WHERE "points"='19';
```
## Task
Generate a SQL query to answer the following question:
`Scott Dixon had how many Grid positions?`

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

CREATE TABLE "classification" (
  "fin_pos" real,
  "car_no" real,
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "laps_led" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Scott Dixon had how many Grid positions?`:
```sql
                SELECT COUNT("grid") FROM "classification" WHERE "driver"='Scott Dixon';
```
## Task
Generate a SQL query to answer the following question:
`Car number 15 earned what time?`

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

CREATE TABLE "classification" (
  "fin_pos" real,
  "car_no" real,
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "laps_led" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Car number 15 earned what time?`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "car_no"=15;
```
## Task
Generate a SQL query to answer the following question:
`How many positions did the car with a final time of +10.8098 finish in?`

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

CREATE TABLE "classification" (
  "fin_pos" real,
  "car_no" real,
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "laps_led" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions did the car with a final time of +10.8098 finish in?`:
```sql
                SELECT COUNT("fin_pos") FROM "classification" WHERE "time_retired"='+10.8098';
```
## Task
Generate a SQL query to answer the following question:
`Darren Manning finished in what position?`

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

CREATE TABLE "classification" (
  "fin_pos" real,
  "car_no" real,
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "laps_led" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Darren Manning finished in what position?`:
```sql
                SELECT MIN("fin_pos") FROM "classification" WHERE "driver"='Darren Manning';
```
## Task
Generate a SQL query to answer the following question:
`What was the position for the Josef Kaufmann Racing team?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position for the Josef Kaufmann Racing team?`:
```sql
                SELECT "position" FROM "career_summary" WHERE "team"='Josef Kaufmann Racing';
```
## Task
Generate a SQL query to answer the following question:
`How many poles did the player have during the Formula BMW Pacific race?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many poles did the player have during the Formula BMW Pacific race?`:
```sql
                SELECT MAX("poles") FROM "career_summary" WHERE "series"='Formula BMW Pacific';
```
## Task
Generate a SQL query to answer the following question:
`Which season did he have 0 points and 31st position?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season did he have 0 points and 31st position?`:
```sql
                SELECT MAX("season") FROM "career_summary" WHERE "points"=0 AND "position"='31st';
```
## Task
Generate a SQL query to answer the following question:
`How many wins did the player have in the Formula BMW World Final?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins did the player have in the Formula BMW World Final?`:
```sql
                SELECT "wins" FROM "career_summary" WHERE "series"='Formula BMW World Final';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the episode aired where event 2 was Hang Tough?`

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

CREATE TABLE "episode_events" (
  "episode_number" real,
  "air_date" text,
  "event_1" text,
  "event_2" text,
  "event_3" text,
  "event_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the episode aired where event 2 was Hang Tough?`:
```sql
                SELECT "air_date" FROM "episode_events" WHERE "event_2"='Hang Tough';
```
## Task
Generate a SQL query to answer the following question:
`When event 4 was Whiplash, what was event 2?`

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

CREATE TABLE "episode_events" (
  "episode_number" real,
  "air_date" text,
  "event_1" text,
  "event_2" text,
  "event_3" text,
  "event_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `When event 4 was Whiplash, what was event 2?`:
```sql
                SELECT "event_2" FROM "episode_events" WHERE "event_4"='Whiplash';
```
## Task
Generate a SQL query to answer the following question:
`On how many different dates was event 1 Suspension Bridge?`

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

CREATE TABLE "episode_events" (
  "episode_number" real,
  "air_date" text,
  "event_1" text,
  "event_2" text,
  "event_3" text,
  "event_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `On how many different dates was event 1 Suspension Bridge?`:
```sql
                SELECT COUNT("air_date") FROM "episode_events" WHERE "event_1"='Suspension Bridge';
```
## Task
Generate a SQL query to answer the following question:
`On which episode number is event 4 The Wall and event 1 the Pendulum?`

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

CREATE TABLE "episode_events" (
  "episode_number" real,
  "air_date" text,
  "event_1" text,
  "event_2" text,
  "event_3" text,
  "event_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which episode number is event 4 The Wall and event 1 the Pendulum?`:
```sql
                SELECT COUNT("episode_number") FROM "episode_events" WHERE "event_4"='The Wall' AND "event_1"='Pendulum';
```
## Task
Generate a SQL query to answer the following question:
`What was event 2 when event 1 was Atlasphere?`

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

CREATE TABLE "episode_events" (
  "episode_number" real,
  "air_date" text,
  "event_1" text,
  "event_2" text,
  "event_3" text,
  "event_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was event 2 when event 1 was Atlasphere?`:
```sql
                SELECT "event_2" FROM "episode_events" WHERE "event_1"='Atlasphere';
```
## Task
Generate a SQL query to answer the following question:
`What is the car number driven by Darren Manning?`

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

CREATE TABLE "classification" (
  "fin_pos" real,
  "car_no" real,
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "laps_led" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the car number driven by Darren Manning?`:
```sql
                SELECT "car_no" FROM "classification" WHERE "driver"='Darren Manning';
```
## Task
Generate a SQL query to answer the following question:
`Which position earned 50 points?`

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

CREATE TABLE "classification" (
  "fin_pos" real,
  "car_no" real,
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "laps_led" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position earned 50 points?`:
```sql
                SELECT MAX("fin_pos") FROM "classification" WHERE "points"='50';
```
## Task
Generate a SQL query to answer the following question:
`How many drivers on the grid are called Vitor Meira?`

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

CREATE TABLE "classification" (
  "fin_pos" real,
  "car_no" real,
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "laps_led" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many drivers on the grid are called Vitor Meira?`:
```sql
                SELECT COUNT("grid") FROM "classification" WHERE "driver"='Vitor Meira';
```
## Task
Generate a SQL query to answer the following question:
`If the equation is 0 × 9² + 3 × 9 + 3, what is the result?`

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

CREATE TABLE "0_728_throw_3_times" (
  "1st_throw" real,
  "2nd_throw" real,
  "3rd_throw" real,
  "equation" text,
  "result" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the equation is 0 × 9² + 3 × 9 + 3, what is the result?`:
```sql
                SELECT MIN("result") FROM "0_728_throw_3_times" WHERE "equation"='0 × 9² + 3 × 9 + 3';
```
## Task
Generate a SQL query to answer the following question:
`If the equation is 6 × 9² + 6 × 9 + 6, what is the 3rd throw?`

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

CREATE TABLE "0_728_throw_3_times" (
  "1st_throw" real,
  "2nd_throw" real,
  "3rd_throw" real,
  "equation" text,
  "result" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the equation is 6 × 9² + 6 × 9 + 6, what is the 3rd throw?`:
```sql
                SELECT MAX("3rd_throw") FROM "0_728_throw_3_times" WHERE "equation"='6 × 9² + 6 × 9 + 6';
```
## Task
Generate a SQL query to answer the following question:
`If the equation is 8 × 9² + 8 × 9 + 8, what is the 2nd throw?`

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

CREATE TABLE "0_728_throw_3_times" (
  "1st_throw" real,
  "2nd_throw" real,
  "3rd_throw" real,
  "equation" text,
  "result" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the equation is 8 × 9² + 8 × 9 + 8, what is the 2nd throw?`:
```sql
                SELECT MIN("2nd_throw") FROM "0_728_throw_3_times" WHERE "equation"='8 × 9² + 8 × 9 + 8';
```
## Task
Generate a SQL query to answer the following question:
`If the equation is 1 × 9² + 4 × 9 + 0, what is the 2nd throw?`

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

CREATE TABLE "0_728_throw_3_times" (
  "1st_throw" real,
  "2nd_throw" real,
  "3rd_throw" real,
  "equation" text,
  "result" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the equation is 1 × 9² + 4 × 9 + 0, what is the 2nd throw?`:
```sql
                SELECT "2nd_throw" FROM "0_728_throw_3_times" WHERE "equation"='1 × 9² + 4 × 9 + 0';
```
## Task
Generate a SQL query to answer the following question:
`If the equation is  6 × 9² + 6 × 9 + 6, what is the 2nd throw?`

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

CREATE TABLE "0_728_throw_3_times" (
  "1st_throw" real,
  "2nd_throw" real,
  "3rd_throw" real,
  "equation" text,
  "result" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the equation is  6 × 9² + 6 × 9 + 6, what is the 2nd throw?`:
```sql
                SELECT MAX("2nd_throw") FROM "0_728_throw_3_times" WHERE "equation"='6 × 9² + 6 × 9 + 6';
```
## Task
Generate a SQL query to answer the following question:
`When they played San Lorenzo, what was the score of the second leg?`

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

CREATE TABLE "round_of_16" (
  "team_num1" text,
  "points" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `When they played San Lorenzo, what was the score of the second leg?`:
```sql
                SELECT "2nd_leg" FROM "round_of_16" WHERE "team_num1"='San Lorenzo';
```
## Task
Generate a SQL query to answer the following question:
`When they played Universidad de Chile, what was the score of the first leg?`

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

CREATE TABLE "round_of_16" (
  "team_num1" text,
  "points" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `When they played Universidad de Chile, what was the score of the first leg?`:
```sql
                SELECT COUNT("1st_leg") FROM "round_of_16" WHERE "team_num2"='Universidad de Chile';
```
## Task
Generate a SQL query to answer the following question:
`Who played San Lorenzo?`

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

CREATE TABLE "round_of_16" (
  "team_num1" text,
  "points" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played San Lorenzo?`:
```sql
                SELECT "team_num2" FROM "round_of_16" WHERE "team_num1"='San Lorenzo';
```
## Task
Generate a SQL query to answer the following question:
`Who played River Plate?`

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

CREATE TABLE "round_of_16" (
  "team_num1" text,
  "points" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played River Plate?`:
```sql
                SELECT "team_num2" FROM "round_of_16" WHERE "team_num1"='River Plate';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on the 1st leg if the team 2 is botafogo?`

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

CREATE TABLE "first_stage" (
  "team_num1" text,
  "points" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on the 1st leg if the team 2 is botafogo?`:
```sql
                SELECT COUNT("1st_leg") FROM "first_stage" WHERE "team_num2"='Botafogo';
```
## Task
Generate a SQL query to answer the following question:
`Who played against team 1 Vitória?`

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

CREATE TABLE "first_stage" (
  "team_num1" text,
  "points" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played against team 1 Vitória?`:
```sql
                SELECT "team_num2" FROM "first_stage" WHERE "team_num1"='Vitória';
```
## Task
Generate a SQL query to answer the following question:
`Who played against team 1 Liverpool? `

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

CREATE TABLE "first_stage" (
  "team_num1" text,
  "points" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played against team 1 Liverpool? `:
```sql
                SELECT "team_num2" FROM "first_stage" WHERE "team_num1"='Liverpool';
```
## Task
Generate a SQL query to answer the following question:
`What was the game's points against Team 2 Deportivo Anzoátegui?`

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

CREATE TABLE "first_stage" (
  "team_num1" text,
  "points" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the game's points against Team 2 Deportivo Anzoátegui?`:
```sql
                SELECT "points" FROM "first_stage" WHERE "team_num2"='Deportivo Anzoátegui';
```
## Task
Generate a SQL query to answer the following question:
`How many different items appear in the high points column when the location attendance was US Airways Center 18,422?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different items appear in the high points column when the location attendance was US Airways Center 18,422?`:
```sql
                SELECT COUNT("high_points") FROM "game_log" WHERE "location_attendance"='US Airways Center 18,422';
```
## Task
Generate a SQL query to answer the following question:
`What was the high assists on April 7?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the high assists on April 7?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "date"='April 7';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the game played on January 25?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the game played on January 25?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='January 25';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for the team on January 19?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the team on January 19?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='January 19';
```
## Task
Generate a SQL query to answer the following question:
`How many times did Ron Artest (24) receive the record for high points?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did Ron Artest (24) receive the record for high points?`:
```sql
                SELECT COUNT("record") FROM "game_log" WHERE "high_points"='Ron Artest (24)';
```
## Task
Generate a SQL query to answer the following question:
`At what location and what was the attendance when Rafer Alston (10) achieved high assists? `

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what location and what was the attendance when Rafer Alston (10) achieved high assists? `:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "high_assists"='Rafer Alston (10)';
```
## Task
Generate a SQL query to answer the following question:
`At what game number was the attendance at Conseco Fieldhouse 14,486?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what game number was the attendance at Conseco Fieldhouse 14,486?`:
```sql
                SELECT MAX("game") FROM "game_log" WHERE "location_attendance"='Conseco Fieldhouse 14,486';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of the game that was played on January 19?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of the game that was played on January 19?`:
```sql
                SELECT MAX("game") FROM "game_log" WHERE "date"='January 19';
```
## Task
Generate a SQL query to answer the following question:
`Name the record for verizon center 20,173`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record for verizon center 20,173`:
```sql
                SELECT "record" FROM "game_log" WHERE "location_attendance"='Verizon Center 20,173';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for score  l 89–91 (ot)`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for score  l 89–91 (ot)`:
```sql
                SELECT "date" FROM "game_log" WHERE "score"='L 89–91 (OT)';
```
## Task
Generate a SQL query to answer the following question:
`What was the team record when the team was Cleveland?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team record when the team was Cleveland?`:
```sql
                SELECT "record" FROM "game_log" WHERE "team"='Cleveland';
```
## Task
Generate a SQL query to answer the following question:
`Name the high assists for  l 93–103 (ot)`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the high assists for  l 93–103 (ot)`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "score"='L 93–103 (OT)';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of game 21?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of game 21?`:
```sql
                SELECT "date" FROM "game_log" WHERE "game"=21;
```
## Task
Generate a SQL query to answer the following question:
`What were the results for round of 32 for  Nicole Vaidišová?`

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

CREATE TABLE "table1_17289604_38" (
  "athlete" text,
  "event" text,
  "round_of_64" text,
  "round_of_32" text,
  "round_of_16" text,
  "quarterfinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the results for round of 32 for  Nicole Vaidišová?`:
```sql
                SELECT "round_of_32" FROM "table1_17289604_38" WHERE "athlete"='Nicole Vaidišová';
```
## Task
Generate a SQL query to answer the following question:
`How many number of athletes were in round of 64 was llagostera Vives ( esp ) l 6–2, 3–6, 5–7?`

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

CREATE TABLE "table1_17289604_38" (
  "athlete" text,
  "event" text,
  "round_of_64" text,
  "round_of_32" text,
  "round_of_16" text,
  "quarterfinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many number of athletes were in round of 64 was llagostera Vives ( esp ) l 6–2, 3–6, 5–7?`:
```sql
                SELECT COUNT("athlete") FROM "table1_17289604_38" WHERE "round_of_64"='Llagostera Vives ( ESP ) L 6–2, 3–6, 5–7';
```
## Task
Generate a SQL query to answer the following question:
`What was round of 16 when in round 32 it was  koryttseva ( ukr ) w 2–6, 6–1, 7–5?`

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

CREATE TABLE "table1_17289604_38" (
  "athlete" text,
  "event" text,
  "round_of_64" text,
  "round_of_32" text,
  "round_of_16" text,
  "quarterfinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was round of 16 when in round 32 it was  koryttseva ( ukr ) w 2–6, 6–1, 7–5?`:
```sql
                SELECT "round_of_16" FROM "table1_17289604_38" WHERE "round_of_32"='Koryttseva ( UKR ) W 2–6, 6–1, 7–5';
```
## Task
Generate a SQL query to answer the following question:
`What was round of 64 of the singles event when the result of round 16 was did not advance and the athlete was Iveta Benešová?`

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

CREATE TABLE "table1_17289604_38" (
  "athlete" text,
  "event" text,
  "round_of_64" text,
  "round_of_32" text,
  "round_of_16" text,
  "quarterfinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was round of 64 of the singles event when the result of round 16 was did not advance and the athlete was Iveta Benešová?`:
```sql
                SELECT "round_of_64" FROM "table1_17289604_38" WHERE "event"='Singles' AND "round_of_16"='Did not advance' AND "athlete"='Iveta Benešová';
```
## Task
Generate a SQL query to answer the following question:
`What were the quarterfinals in the round of 32 was  S williams / V williams ( usa ) l 6–4, 5–7, 1–6?`

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

CREATE TABLE "table1_17289604_38" (
  "athlete" text,
  "event" text,
  "round_of_64" text,
  "round_of_32" text,
  "round_of_16" text,
  "quarterfinals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the quarterfinals in the round of 32 was  S williams / V williams ( usa ) l 6–4, 5–7, 1–6?`:
```sql
                SELECT "quarterfinals" FROM "table1_17289604_38" WHERE "round_of_32"='S Williams / V Williams ( USA ) L 6–4, 5–7, 1–6';
```
## Task
Generate a SQL query to answer the following question:
`On what day did Dirk Nowitzki (14) have a high rebound? `

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what day did Dirk Nowitzki (14) have a high rebound? `:
```sql
                SELECT "date" FROM "game_log" WHERE "high_rebounds"='Dirk Nowitzki (14)';
```
## Task
Generate a SQL query to answer the following question:
`High points earned by Josh Howard (19) resulted in how many high rebounds?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `High points earned by Josh Howard (19) resulted in how many high rebounds?`:
```sql
                SELECT COUNT("high_rebounds") FROM "game_log" WHERE "high_points"='Josh Howard (19)';
```
## Task
Generate a SQL query to answer the following question:
`Who had the high assists while Erick Dampier (8) had the high rebounds?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the high assists while Erick Dampier (8) had the high rebounds?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "high_rebounds"='Erick Dampier (8)';
```
## Task
Generate a SQL query to answer the following question:
`Who had the high points while Dirk Nowitzki (13) had the high rebounds?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the high points while Dirk Nowitzki (13) had the high rebounds?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "high_rebounds"='Dirk Nowitzki (13)';
```
## Task
Generate a SQL query to answer the following question:
`What was the final record for the game in which Dirk Nowitzki (19) had the high points?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final record for the game in which Dirk Nowitzki (19) had the high points?`:
```sql
                SELECT "record" FROM "game_log" WHERE "high_points"='Dirk Nowitzki (19)';
```
## Task
Generate a SQL query to answer the following question:
`Which championship had the final opponents of nathalie dechy andy ram?`

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

CREATE TABLE "mixed_doubles_11_5_6" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which championship had the final opponents of nathalie dechy andy ram?`:
```sql
                SELECT "championship" FROM "mixed_doubles_11_5_6" WHERE "opponents_in_the_final"='Nathalie Dechy Andy Ram';
```
## Task
Generate a SQL query to answer the following question:
`What is the upstream speed of the network that costs 39 tl?`

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

CREATE TABLE "turkey" (
  "downstream" text,
  "upstream" text,
  "bandwidth" text,
  "price_tl" text,
  "every_1_gb" text,
  "max" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the upstream speed of the network that costs 39 tl?`:
```sql
                SELECT "upstream" FROM "turkey" WHERE "price_tl"='39 TL';
```
## Task
Generate a SQL query to answer the following question:
`How many upstream speeds are there for downstream of 20 mbit/s and bandwidth of 40 gb?`

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

CREATE TABLE "turkey" (
  "downstream" text,
  "upstream" text,
  "bandwidth" text,
  "price_tl" text,
  "every_1_gb" text,
  "max" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many upstream speeds are there for downstream of 20 mbit/s and bandwidth of 40 gb?`:
```sql
                SELECT COUNT("upstream") FROM "turkey" WHERE "downstream"='20 Mbit/s' AND "bandwidth"='40 GB';
```
## Task
Generate a SQL query to answer the following question:
`What is the upstream speed that you get for 89 tl?`

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

CREATE TABLE "turkey" (
  "downstream" text,
  "upstream" text,
  "bandwidth" text,
  "price_tl" text,
  "every_1_gb" text,
  "max" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the upstream speed that you get for 89 tl?`:
```sql
                SELECT "upstream" FROM "turkey" WHERE "price_tl"='89 TL';
```
## Task
Generate a SQL query to answer the following question:
`What is the bandwidth for downstream of 20 mbit/s for 69 tl?`

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

CREATE TABLE "turkey" (
  "downstream" text,
  "upstream" text,
  "bandwidth" text,
  "price_tl" text,
  "every_1_gb" text,
  "max" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bandwidth for downstream of 20 mbit/s for 69 tl?`:
```sql
                SELECT "bandwidth" FROM "turkey" WHERE "downstream"='20 Mbit/s' AND "price_tl"='69 TL';
```
## Task
Generate a SQL query to answer the following question:
`What was the year when West Manila has a tariff increase of 6.5?`

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

CREATE TABLE "table1_17302440_1" (
  "year" real,
  "west_manila" text,
  "east_manila" text,
  "consumer_price_index_2005_100" text,
  "west_manila_as_a_share_of_1996_real_tariff" text,
  "east_manila_as_a_share_of_1996_real_tariff" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the year when West Manila has a tariff increase of 6.5?`:
```sql
                SELECT "year" FROM "table1_17302440_1" WHERE "west_manila"='6.5';
```