cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the last season? `

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

CREATE TABLE "season_5" (
  "season" real,
  "episode" real,
  "episode_summary" text,
  "premier_date" text,
  "external_link" text,
  "coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the last season? `:
```sql
                SELECT MAX("season") FROM "season_5";
```
## Task
Generate a SQL query to answer the following question:
`What date did the episode, with John O'Connell as the coach, premier? `

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

CREATE TABLE "season_5" (
  "season" real,
  "episode" real,
  "episode_summary" text,
  "premier_date" text,
  "external_link" text,
  "coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode, with John O'Connell as the coach, premier? `:
```sql
                SELECT "premier_date" FROM "season_5" WHERE "coach"='John O''Connell';
```
## Task
Generate a SQL query to answer the following question:
`Name the result for total attendance-regular season`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result for total attendance-regular season`:
```sql
                SELECT "result_games" FROM "canadian_football_league_attendance" WHERE "type_of_record"='Total Attendance-Regular season';
```
## Task
Generate a SQL query to answer the following question:
`Name the result/games for 52521`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result/games for 52521`:
```sql
                SELECT "result_games" FROM "canadian_football_league_attendance" WHERE "attendance"=52521;
```
## Task
Generate a SQL query to answer the following question:
`Name the result/games for 54530`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result/games for 54530`:
```sql
                SELECT "result_games" FROM "canadian_football_league_attendance" WHERE "attendance"=54530;
```
## Task
Generate a SQL query to answer the following question:
`Name the stadium for regular season game`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the stadium for regular season game`:
```sql
                SELECT "stadium" FROM "canadian_football_league_attendance" WHERE "type_of_record"='Regular season game';
```
## Task
Generate a SQL query to answer the following question:
`Name the result/games for 54741`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result/games for 54741`:
```sql
                SELECT "result_games" FROM "canadian_football_league_attendance" WHERE "attendance"=54741;
```
## Task
Generate a SQL query to answer the following question:
`state team #2 in the match of first leg score 0-1`

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

CREATE TABLE "first_round" (
  "team_num1" text,
  "agg_score" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `state team #2 in the match of first leg score 0-1`:
```sql
                SELECT "team_num2" FROM "first_round" WHERE "1st_leg"='0-1';
```
## Task
Generate a SQL query to answer the following question:
`give the 1st leg score against ilisiakos`

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

CREATE TABLE "first_round" (
  "team_num1" text,
  "agg_score" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `give the 1st leg score against ilisiakos`:
```sql
                SELECT "1st_leg" FROM "first_round" WHERE "team_num2"='Ilisiakos';
```
## Task
Generate a SQL query to answer the following question:
`which team #1 played again chalkida`

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

CREATE TABLE "first_round" (
  "team_num1" text,
  "agg_score" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `which team #1 played again chalkida`:
```sql
                SELECT "team_num1" FROM "first_round" WHERE "team_num2"='Chalkida';
```
## Task
Generate a SQL query to answer the following question:
`which team#2 played against poseidon neoi porroi`

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

CREATE TABLE "first_round" (
  "team_num1" text,
  "agg_score" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `which team#2 played against poseidon neoi porroi`:
```sql
                SELECT "team_num2" FROM "first_round" WHERE "team_num1"='Poseidon Neoi Porroi';
```
## Task
Generate a SQL query to answer the following question:
`When was the pre-season game record achieved?`

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

CREATE TABLE "table1_21436373_10" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the pre-season game record achieved?`:
```sql
                SELECT "date_year" FROM "table1_21436373_10" WHERE "type_of_record"='Pre-season game';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximal number of people that attended any of these games?`

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

CREATE TABLE "table1_21436373_10" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximal number of people that attended any of these games?`:
```sql
                SELECT MAX("attendance") FROM "table1_21436373_10";
```
## Task
Generate a SQL query to answer the following question:
`what is the attendance in 2011 records`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the attendance in 2011 records`:
```sql
                SELECT "attendance" FROM "canadian_football_league_attendance" WHERE "date_year"='2011';
```
## Task
Generate a SQL query to answer the following question:
`what type of record was made where result/games is 10 games (29,606 avg.)`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `what type of record was made where result/games is 10 games (29,606 avg.)`:
```sql
                SELECT "type_of_record" FROM "canadian_football_league_attendance" WHERE "result_games"='10 games (29,606 avg.)';
```
## Task
Generate a SQL query to answer the following question:
`where was the total attendance-regular season record made`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `where was the total attendance-regular season record made`:
```sql
                SELECT "stadium" FROM "canadian_football_league_attendance" WHERE "type_of_record"='Total Attendance-Regular season';
```
## Task
Generate a SQL query to answer the following question:
`where was sun 09/12/93 record made`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `where was sun 09/12/93 record made`:
```sql
                SELECT "stadium" FROM "canadian_football_league_attendance" WHERE "date_year"='Sun 09/12/93';
```
## Task
Generate a SQL query to answer the following question:
`how many records had result/games: 10 games (29,606 avg.)`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many records had result/games: 10 games (29,606 avg.)`:
```sql
                SELECT COUNT("type_of_record") FROM "canadian_football_league_attendance" WHERE "result_games"='10 games (29,606 avg.)';
```
## Task
Generate a SQL query to answer the following question:
`what is the highest attendance for a total attendance-regular season record`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest attendance for a total attendance-regular season record`:
```sql
                SELECT MAX("attendance") FROM "canadian_football_league_attendance" WHERE "type_of_record"='Total Attendance-Regular season';
```
## Task
Generate a SQL query to answer the following question:
`When 2005 is the date/year how many measurements of attendance are there?`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 2005 is the date/year how many measurements of attendance are there?`:
```sql
                SELECT COUNT("attendance") FROM "canadian_football_league_attendance" WHERE "date_year"='2005';
```
## Task
Generate a SQL query to answer the following question:
`When 27585 is the attendance what are the results of the games?`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 27585 is the attendance what are the results of the games?`:
```sql
                SELECT "result_games" FROM "canadian_football_league_attendance" WHERE "attendance"=27585;
```
## Task
Generate a SQL query to answer the following question:
`When  9 games (28,002 avg.) is the results of the games what is the date/year?`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `When  9 games (28,002 avg.) is the results of the games what is the date/year?`:
```sql
                SELECT "date_year" FROM "canadian_football_league_attendance" WHERE "result_games"='9 games (28,002 avg.)';
```
## Task
Generate a SQL query to answer the following question:
`When 255627 is the attendance what is the stadium?`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 255627 is the attendance what is the stadium?`:
```sql
                SELECT "stadium" FROM "canadian_football_league_attendance" WHERE "attendance"=255627;
```
## Task
Generate a SQL query to answer the following question:
`What record was set on Tue 11/02/75?`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `What record was set on Tue 11/02/75?`:
```sql
                SELECT "type_of_record" FROM "canadian_football_league_attendance" WHERE "date_year"='Tue 11/02/75';
```
## Task
Generate a SQL query to answer the following question:
`What record was set when the result/game was equal to 9 games (28,595 avg.)`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `What record was set when the result/game was equal to 9 games (28,595 avg.)`:
```sql
                SELECT "type_of_record" FROM "canadian_football_league_attendance" WHERE "result_games"='9 games (28,595 avg.)';
```
## Task
Generate a SQL query to answer the following question:
`What record was set when the result/game was montreal 20 @ ottawa 10?`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `What record was set when the result/game was montreal 20 @ ottawa 10?`:
```sql
                SELECT "type_of_record" FROM "canadian_football_league_attendance" WHERE "result_games"='Montreal 20 @ Ottawa 10';
```
## Task
Generate a SQL query to answer the following question:
`Which stadium had the result/game montreal 20 @ ottawa 10?`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stadium had the result/game montreal 20 @ ottawa 10?`:
```sql
                SELECT "stadium" FROM "canadian_football_league_attendance" WHERE "result_games"='Montreal 20 @ Ottawa 10';
```
## Task
Generate a SQL query to answer the following question:
`For what year is the type of record 'total attendance-regular season?`

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

CREATE TABLE "table1_21436373_5" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `For what year is the type of record 'total attendance-regular season?`:
```sql
                SELECT "date_year" FROM "table1_21436373_5" WHERE "type_of_record"='Total Attendance-Regular season';
```
## Task
Generate a SQL query to answer the following question:
`What type of record is the result of the game Montreal 31 @ Calgary 32?`

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

CREATE TABLE "table1_21436373_5" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of record is the result of the game Montreal 31 @ Calgary 32?`:
```sql
                SELECT "type_of_record" FROM "table1_21436373_5" WHERE "result_games"='Montreal 31 @ Calgary 32';
```
## Task
Generate a SQL query to answer the following question:
`On what date/s has attendance been 45010?`

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

CREATE TABLE "table1_21436373_5" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date/s has attendance been 45010?`:
```sql
                SELECT "date_year" FROM "table1_21436373_5" WHERE "attendance"=45010;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of attendance with the pre-season game as the type of record?`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of attendance with the pre-season game as the type of record?`:
```sql
                SELECT COUNT("attendance") FROM "canadian_football_league_attendance" WHERE "type_of_record"='Pre-season game';
```
## Task
Generate a SQL query to answer the following question:
`Which type of record has result/games of 9 games (57,144 avg.)`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which type of record has result/games of 9 games (57,144 avg.)`:
```sql
                SELECT "type_of_record" FROM "canadian_football_league_attendance" WHERE "result_games"='9 games (57,144 avg.)';
```
## Task
Generate a SQL query to answer the following question:
`What is the result/games of Sun 11/28/10 as the date/year?`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result/games of Sun 11/28/10 as the date/year?`:
```sql
                SELECT "result_games" FROM "canadian_football_league_attendance" WHERE "date_year"='Sun 11/28/10';
```
## Task
Generate a SQL query to answer the following question:
`Which stadium has the date/year of Fri 06/25/82?`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stadium has the date/year of Fri 06/25/82?`:
```sql
                SELECT "stadium" FROM "canadian_football_league_attendance" WHERE "date_year"='Fri 06/25/82';
```
## Task
Generate a SQL query to answer the following question:
`Which type of record has result/games of b.c. 16 @ edmonton 22?`

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

CREATE TABLE "canadian_football_league_attendance" (
  "type_of_record" text,
  "attendance" real,
  "date_year" text,
  "stadium" text,
  "result_games" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which type of record has result/games of b.c. 16 @ edmonton 22?`:
```sql
                SELECT "type_of_record" FROM "canadian_football_league_attendance" WHERE "result_games"='B.C. 16 @ Edmonton 22';
```
## Task
Generate a SQL query to answer the following question:
`What was the populati in 2000 for Panlicsian? `

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

CREATE TABLE "barangays" (
  "barangay" text,
  "population_2000" real,
  "population_2007" real,
  "population_2010" real,
  "barangay_fiesta" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the populati in 2000 for Panlicsian? `:
```sql
                SELECT MIN("population_2000") FROM "barangays" WHERE "barangay"='Panlicsian';
```
## Task
Generate a SQL query to answer the following question:
`What was the population in 2010 for Minane`

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

CREATE TABLE "barangays" (
  "barangay" text,
  "population_2000" real,
  "population_2007" real,
  "population_2010" real,
  "barangay_fiesta" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the population in 2010 for Minane`:
```sql
                SELECT MAX("population_2010") FROM "barangays" WHERE "barangay"='Minane';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2007 population for Corazon de Jesus? `

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

CREATE TABLE "barangays" (
  "barangay" text,
  "population_2000" real,
  "population_2007" real,
  "population_2010" real,
  "barangay_fiesta" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007 population for Corazon de Jesus? `:
```sql
                SELECT "population_2007" FROM "barangays" WHERE "barangay"='Corazon De Jesus';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2010 population when the 2000 population is 5720? `

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

CREATE TABLE "barangays" (
  "barangay" text,
  "population_2000" real,
  "population_2007" real,
  "population_2010" real,
  "barangay_fiesta" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2010 population when the 2000 population is 5720? `:
```sql
                SELECT MAX("population_2010") FROM "barangays" WHERE "population_2000"=5720;
```
## Task
Generate a SQL query to answer the following question:
`Name the romaji by your side ~hikari's theme~ (popup.version)`

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

CREATE TABLE "pocket_monsters_diamond_pearl_series" (
  "num" real,
  "japanese_title" text,
  "r_maji" text,
  "japanese_translation" text,
  "vocalist" text,
  "episodes_used" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the romaji by your side ~hikari's theme~ (popup.version)`:
```sql
                SELECT "r_maji" FROM "pocket_monsters_diamond_pearl_series" WHERE "japanese_translation"='By Your Side ~Hikari''s Theme~ (PopUp.Version)';
```
## Task
Generate a SQL query to answer the following question:
`Name the vocalist for kaze no messēji (pokapoka-version)`

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

CREATE TABLE "pocket_monsters_diamond_pearl_series" (
  "num" real,
  "japanese_title" text,
  "r_maji" text,
  "japanese_translation" text,
  "vocalist" text,
  "episodes_used" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the vocalist for kaze no messēji (pokapoka-version)`:
```sql
                SELECT "vocalist" FROM "pocket_monsters_diamond_pearl_series" WHERE "r_maji"='Kaze no Messēji (PokaPoka-Version)';
```
## Task
Generate a SQL query to answer the following question:
`Name the least number for  君のそばで～ヒカリのテーマ～(popup.version)`

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

CREATE TABLE "pocket_monsters_diamond_pearl_series" (
  "num" real,
  "japanese_title" text,
  "r_maji" text,
  "japanese_translation" text,
  "vocalist" text,
  "episodes_used" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least number for  君のそばで～ヒカリのテーマ～(popup.version)`:
```sql
                SELECT MIN("num") FROM "pocket_monsters_diamond_pearl_series" WHERE "japanese_title"='君のそばで～ヒカリのテーマ～(PopUp.Version)';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of vocalists for  which one ~ is it?`

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

CREATE TABLE "pocket_monsters_diamond_pearl_series" (
  "num" real,
  "japanese_title" text,
  "r_maji" text,
  "japanese_translation" text,
  "vocalist" text,
  "episodes_used" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of vocalists for  which one ~ is it?`:
```sql
                SELECT COUNT("vocalist") FROM "pocket_monsters_diamond_pearl_series" WHERE "japanese_translation"='Which One ~ Is It?';
```
## Task
Generate a SQL query to answer the following question:
`Name the to par for 20 feb 2005`

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

CREATE TABLE "alpg_tour_6" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the to par for 20 feb 2005`:
```sql
                SELECT "to_par" FROM "alpg_tour_6" WHERE "date"='20 Feb 2005';
```
## Task
Generate a SQL query to answer the following question:
`Name the number for margin of victory being 3 strokes`

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

CREATE TABLE "alpg_tour_6" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number for margin of victory being 3 strokes`:
```sql
                SELECT COUNT("no") FROM "alpg_tour_6" WHERE "margin_of_victory"='3 strokes';
```
## Task
Generate a SQL query to answer the following question:
`Name the winning score for 8 feb 2009`

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

CREATE TABLE "alpg_tour_6" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winning score for 8 feb 2009`:
```sql
                SELECT COUNT("winning_score") FROM "alpg_tour_6" WHERE "date"='8 Feb 2009';
```
## Task
Generate a SQL query to answer the following question:
`Who published the title in the pet-raising simulator genre?`

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

CREATE TABLE "table1_21458142_1" (
  "title" text,
  "total_copies_sold" text,
  "sales_breakdown" text,
  "genre" text,
  "release_date" text,
  "developer" text,
  "publisher" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who published the title in the pet-raising simulator genre?`:
```sql
                SELECT "publisher" FROM "table1_21458142_1" WHERE "genre"='Pet-raising simulator';
```
## Task
Generate a SQL query to answer the following question:
`What's the sales breakdown for Nintendo's Mario Kart DS?`

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

CREATE TABLE "table1_21458142_1" (
  "title" text,
  "total_copies_sold" text,
  "sales_breakdown" text,
  "genre" text,
  "release_date" text,
  "developer" text,
  "publisher" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sales breakdown for Nintendo's Mario Kart DS?`:
```sql
                SELECT "sales_breakdown" FROM "table1_21458142_1" WHERE "publisher"='Nintendo' AND "title"='Mario Kart DS';
```
## Task
Generate a SQL query to answer the following question:
`How many copies were sold of the game released on october 23, 2008?`

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

CREATE TABLE "table1_21458142_1" (
  "title" text,
  "total_copies_sold" text,
  "sales_breakdown" text,
  "genre" text,
  "release_date" text,
  "developer" text,
  "publisher" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many copies were sold of the game released on october 23, 2008?`:
```sql
                SELECT "total_copies_sold" FROM "table1_21458142_1" WHERE "release_date"='October 23, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What's the sales breakdown of the Nintendo game released on May 15, 2006?`

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

CREATE TABLE "table1_21458142_1" (
  "title" text,
  "total_copies_sold" text,
  "sales_breakdown" text,
  "genre" text,
  "release_date" text,
  "developer" text,
  "publisher" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sales breakdown of the Nintendo game released on May 15, 2006?`:
```sql
                SELECT "sales_breakdown" FROM "table1_21458142_1" WHERE "publisher"='Nintendo' AND "release_date"='May 15, 2006';
```
## Task
Generate a SQL query to answer the following question:
`Name the most races`

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

CREATE TABLE "round_robin" (
  "team_name" text,
  "races" real,
  "won" real,
  "rr1_pts" real,
  "rr2_pts" real,
  "total_pts" text,
  "ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most races`:
```sql
                SELECT MAX("races") FROM "round_robin";
```
## Task
Generate a SQL query to answer the following question:
`Name the most rr 1 pts`

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

CREATE TABLE "round_robin" (
  "team_name" text,
  "races" real,
  "won" real,
  "rr1_pts" real,
  "rr2_pts" real,
  "total_pts" text,
  "ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most rr 1 pts`:
```sql
                SELECT MAX("rr1_pts") FROM "round_robin";
```
## Task
Generate a SQL query to answer the following question:
`Name the number of total pts for gbr challenge`

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

CREATE TABLE "round_robin" (
  "team_name" text,
  "races" real,
  "won" real,
  "rr1_pts" real,
  "rr2_pts" real,
  "total_pts" text,
  "ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of total pts for gbr challenge`:
```sql
                SELECT COUNT("total_pts") FROM "round_robin" WHERE "team_name"='GBR Challenge';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of second place finishes when the city & nation was Chicago, USA?`

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

CREATE TABLE "rank_by_number_of_wins" (
  "city_nation" text,
  "first_place" real,
  "second_place" real,
  "third_place" real,
  "total_top_3_placements" real,
  "first_place_winning_year_s_if_applicable" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of second place finishes when the city & nation was Chicago, USA?`:
```sql
                SELECT COUNT("second_place") FROM "rank_by_number_of_wins" WHERE "city_nation"='Chicago, USA';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of third place finishes when the city & nation was Vancouver, Canada?`

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

CREATE TABLE "rank_by_number_of_wins" (
  "city_nation" text,
  "first_place" real,
  "second_place" real,
  "third_place" real,
  "total_top_3_placements" real,
  "first_place_winning_year_s_if_applicable" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of third place finishes when the city & nation was Vancouver, Canada?`:
```sql
                SELECT MIN("third_place") FROM "rank_by_number_of_wins" WHERE "city_nation"='Vancouver, Canada';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest third place finish when first place winning year(s) (if applicable) was n/a?`

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

CREATE TABLE "rank_by_number_of_wins" (
  "city_nation" text,
  "first_place" real,
  "second_place" real,
  "third_place" real,
  "total_top_3_placements" real,
  "first_place_winning_year_s_if_applicable" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest third place finish when first place winning year(s) (if applicable) was n/a?`:
```sql
                SELECT MAX("third_place") FROM "rank_by_number_of_wins" WHERE "first_place_winning_year_s_if_applicable"='N/A';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest third place finish?`

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

CREATE TABLE "rank_by_number_of_wins" (
  "city_nation" text,
  "first_place" real,
  "second_place" real,
  "third_place" real,
  "total_top_3_placements" real,
  "first_place_winning_year_s_if_applicable" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest third place finish?`:
```sql
                SELECT MIN("third_place") FROM "rank_by_number_of_wins";
```
## Task
Generate a SQL query to answer the following question:
`What change caused a change of staff in March 9, 1865?`

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

CREATE TABLE "table1_2147588_3" (
  "state_class" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What change caused a change of staff in March 9, 1865?`:
```sql
                SELECT "reason_for_change" FROM "table1_2147588_3" WHERE "date_of_successors_formal_installation"='March 9, 1865';
```
## Task
Generate a SQL query to answer the following question:
`Who was the successor for the new seat?`

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

CREATE TABLE "table1_2147588_3" (
  "state_class" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the successor for the new seat?`:
```sql
                SELECT "successor" FROM "table1_2147588_3" WHERE "vacator"='New seat';
```
## Task
Generate a SQL query to answer the following question:
`What was the reason for change in staff in formal installations on March 15, 1865?`

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

CREATE TABLE "table1_2147588_3" (
  "state_class" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the reason for change in staff in formal installations on March 15, 1865?`:
```sql
                SELECT "reason_for_change" FROM "table1_2147588_3" WHERE "date_of_successors_formal_installation"='March 15, 1865';
```
## Task
Generate a SQL query to answer the following question:
`When nathaniel g. taylor (u) is the successor what is the vacator?`

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

CREATE TABLE "table1_2147588_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `When nathaniel g. taylor (u) is the successor what is the vacator?`:
```sql
                SELECT "vacator" FROM "table1_2147588_4" WHERE "successor"='Nathaniel G. Taylor (U)';
```
## Task
Generate a SQL query to answer the following question:
`When william b. campbell (u) is the successor what is the district?`

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

CREATE TABLE "table1_2147588_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `When william b. campbell (u) is the successor what is the district?`:
```sql
                SELECT "district" FROM "table1_2147588_4" WHERE "successor"='William B. Campbell (U)';
```
## Task
Generate a SQL query to answer the following question:
`When james brooks (d) is the vacator what is the date the successor was seated?`

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

CREATE TABLE "table1_2147588_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `When james brooks (d) is the vacator what is the date the successor was seated?`:
```sql
                SELECT "date_successor_seated" FROM "table1_2147588_4" WHERE "vacator"='James Brooks (D)';
```
## Task
Generate a SQL query to answer the following question:
`When john w. leftwich (uu) is the successor what is the date the successor was seated?`

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

CREATE TABLE "table1_2147588_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `When john w. leftwich (uu) is the successor what is the date the successor was seated?`:
```sql
                SELECT "date_successor_seated" FROM "table1_2147588_4" WHERE "successor"='John W. Leftwich (UU)';
```
## Task
Generate a SQL query to answer the following question:
`When new york 8th is teh district who is the successor?`

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

CREATE TABLE "table1_2147588_4" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `When new york 8th is teh district who is the successor?`:
```sql
                SELECT "successor" FROM "table1_2147588_4" WHERE "district"='New York 8th';
```
## Task
Generate a SQL query to answer the following question:
`When 20 is the rr4 points what is the lowest rr3 points?`

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

CREATE TABLE "round_robin" (
  "team_name" text,
  "races" real,
  "won" real,
  "rr1_pts" real,
  "rr2_pts" real,
  "rr3_pts" real,
  "rr4_pts" text,
  "total_pts" real,
  "ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 20 is the rr4 points what is the lowest rr3 points?`:
```sql
                SELECT MIN("rr3_pts") FROM "round_robin" WHERE "rr4_pts"='20';
```
## Task
Generate a SQL query to answer the following question:
`When 70 is the total points what is the rr4 points?`

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

CREATE TABLE "round_robin" (
  "team_name" text,
  "races" real,
  "won" real,
  "rr1_pts" real,
  "rr2_pts" real,
  "rr3_pts" real,
  "rr4_pts" text,
  "total_pts" real,
  "ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 70 is the total points what is the rr4 points?`:
```sql
                SELECT "rr4_pts" FROM "round_robin" WHERE "total_pts"=70;
```
## Task
Generate a SQL query to answer the following question:
`When 3 is the rr1 points what is won score?`

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

CREATE TABLE "round_robin" (
  "team_name" text,
  "races" real,
  "won" real,
  "rr1_pts" real,
  "rr2_pts" real,
  "rr3_pts" real,
  "rr4_pts" text,
  "total_pts" real,
  "ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 3 is the rr1 points what is won score?`:
```sql
                SELECT "won" FROM "round_robin" WHERE "rr1_pts"=3;
```
## Task
Generate a SQL query to answer the following question:
`When spanish challenge is the team name what are the rr1 points?`

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

CREATE TABLE "round_robin" (
  "team_name" text,
  "races" real,
  "won" real,
  "rr1_pts" real,
  "rr2_pts" real,
  "rr3_pts" real,
  "rr4_pts" text,
  "total_pts" real,
  "ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `When spanish challenge is the team name what are the rr1 points?`:
```sql
                SELECT "rr1_pts" FROM "round_robin" WHERE "team_name"='Spanish Challenge';
```
## Task
Generate a SQL query to answer the following question:
`Name the innings for 5088 runs scored`

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

CREATE TABLE "references" (
  "name" text,
  "career" text,
  "matches" real,
  "innings" real,
  "not_out" real,
  "runs_scored" real,
  "high_score" text,
  "50s" real,
  "100s" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the innings for 5088 runs scored`:
```sql
                SELECT COUNT("innings") FROM "references" WHERE "runs_scored"=5088;
```
## Task
Generate a SQL query to answer the following question:
`Name the matches for mark taylor category:articles with hcards`

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

CREATE TABLE "references" (
  "name" text,
  "career" text,
  "matches" real,
  "innings" real,
  "not_out" real,
  "runs_scored" real,
  "high_score" text,
  "50s" real,
  "100s" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the matches for mark taylor category:articles with hcards`:
```sql
                SELECT MAX("matches") FROM "references" WHERE "name"='Mark Taylor Category:Articles with hCards';
```
## Task
Generate a SQL query to answer the following question:
`Name the most runs scored`

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

CREATE TABLE "references" (
  "name" text,
  "career" text,
  "matches" real,
  "innings" real,
  "not_out" real,
  "runs_scored" real,
  "high_score" text,
  "50s" real,
  "100s" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most runs scored`:
```sql
                SELECT MAX("runs_scored") FROM "references";
```
## Task
Generate a SQL query to answer the following question:
`Name the least matches for not out being 44`

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

CREATE TABLE "references" (
  "name" text,
  "career" text,
  "matches" real,
  "innings" real,
  "not_out" real,
  "runs_scored" real,
  "high_score" text,
  "50s" real,
  "100s" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least matches for not out being 44`:
```sql
                SELECT MIN("matches") FROM "references" WHERE "not_out"=44;
```
## Task
Generate a SQL query to answer the following question:
`What nation was Pageos 1 from?`

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

CREATE TABLE "table1_2150068_1" (
  "satellite" text,
  "launch_date_utc" text,
  "decay" text,
  "mass_kg" text,
  "diameter_m" text,
  "nssdc_id" text,
  "nation" text,
  "usage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nation was Pageos 1 from?`:
```sql
                SELECT "nation" FROM "table1_2150068_1" WHERE "satellite"='PAGEOS 1';
```
## Task
Generate a SQL query to answer the following question:
`What was the launch date for the sattelite with ado that was 4 kg and 3 meters in diameter?`

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

CREATE TABLE "table1_2150068_1" (
  "satellite" text,
  "launch_date_utc" text,
  "decay" text,
  "mass_kg" text,
  "diameter_m" text,
  "nssdc_id" text,
  "nation" text,
  "usage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the launch date for the sattelite with ado that was 4 kg and 3 meters in diameter?`:
```sql
                SELECT "launch_date_utc" FROM "table1_2150068_1" WHERE "usage"='ado' AND "mass_kg"='4' AND "diameter_m"='3';
```
## Task
Generate a SQL query to answer the following question:
`What was the decay for the sattelite that was 180 kg?`

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

CREATE TABLE "table1_2150068_1" (
  "satellite" text,
  "launch_date_utc" text,
  "decay" text,
  "mass_kg" text,
  "diameter_m" text,
  "nssdc_id" text,
  "nation" text,
  "usage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the decay for the sattelite that was 180 kg?`:
```sql
                SELECT "decay" FROM "table1_2150068_1" WHERE "mass_kg"='180';
```
## Task
Generate a SQL query to answer the following question:
`What is the nssdc id for Echo 1?`

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

CREATE TABLE "table1_2150068_1" (
  "satellite" text,
  "launch_date_utc" text,
  "decay" text,
  "mass_kg" text,
  "diameter_m" text,
  "nssdc_id" text,
  "nation" text,
  "usage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nssdc id for Echo 1?`:
```sql
                SELECT "nssdc_id" FROM "table1_2150068_1" WHERE "satellite"='Echo 1';
```