cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the average number of laps with 16 grids?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of laps with 16 grids?`:
```sql
                SELECT AVG("laps") FROM "race" WHERE "grid"=16;
```
## Task
Generate a SQL query to answer the following question:
`What is the Kiplinger's Top 100 value of the university that was established in 1851?`

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

CREATE TABLE "university_location_date_established" (
  "university" text,
  "location" text,
  "established" real,
  "endowment_as_of_2008" text,
  "campus_area_acres" real,
  "kiplinger_s_top_100_values" text,
  "enrollment_as_of_2008" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Kiplinger's Top 100 value of the university that was established in 1851?`:
```sql
                SELECT "kiplinger_s_top_100_values" FROM "university_location_date_established" WHERE "established"=1851;
```
## Task
Generate a SQL query to answer the following question:
`What was the endowment in 2008 of the college that was established in 1961?`

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

CREATE TABLE "university_location_date_established" (
  "university" text,
  "location" text,
  "established" real,
  "endowment_as_of_2008" text,
  "campus_area_acres" real,
  "kiplinger_s_top_100_values" text,
  "enrollment_as_of_2008" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the endowment in 2008 of the college that was established in 1961?`:
```sql
                SELECT "endowment_as_of_2008" FROM "university_location_date_established" WHERE "established"=1961;
```
## Task
Generate a SQL query to answer the following question:
`On what day was the attendance that had a Tie value of 40?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what day was the attendance that had a Tie value of 40?`:
```sql
                SELECT "attendance" FROM "first_round_proper" WHERE "tie_no"='40';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team for the away game that Canvey Island played?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team for the away game that Canvey Island played?`:
```sql
                SELECT "home_team" FROM "first_round_proper" WHERE "away_team"='canvey island';
```
## Task
Generate a SQL query to answer the following question:
`On what day was there a Home game for Gillingham?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what day was there a Home game for Gillingham?`:
```sql
                SELECT "attendance" FROM "first_round_proper" WHERE "home_team"='gillingham';
```
## Task
Generate a SQL query to answer the following question:
`Which Pick has an Overall larger than 308, and a Position of rb?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pick has an Overall larger than 308, and a Position of rb?`:
```sql
                SELECT MAX("pick") FROM "washington_redskins_draft_history" WHERE "overall">308 AND "position"='rb';
```
## Task
Generate a SQL query to answer the following question:
`How much Overall has a Position of wr, and a College of alberta?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Overall has a Position of wr, and a College of alberta?`:
```sql
                SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "position"='wr' AND "college"='alberta';
```
## Task
Generate a SQL query to answer the following question:
`What is indiana college's average pick?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is indiana college's average pick?`:
```sql
                SELECT AVG("pick") FROM "washington_redskins_draft_history" WHERE "college"='indiana';
```
## Task
Generate a SQL query to answer the following question:
`Which College has an Overall of 308?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which College has an Overall of 308?`:
```sql
                SELECT "college" FROM "washington_redskins_draft_history" WHERE "overall"=308;
```
## Task
Generate a SQL query to answer the following question:
`What was the surface for the opponent Marcos Baghdatis?`

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

CREATE TABLE "singles_20_10_10" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface for the opponent Marcos Baghdatis?`:
```sql
                SELECT "surface" FROM "singles_20_10_10" WHERE "opponent"='marcos baghdatis';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE 8TH THAT HAS A 7TH OF AUDIO BULLYS?`

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

CREATE TABLE "2003_2009" (
  "poll_year" text,
  "winner" text,
  "second" text,
  "third" text,
  "fourth" text,
  "fifth" text,
  "sixth" text,
  "seventh" text,
  "eighth" text,
  "ninth" text,
  "tenth" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE 8TH THAT HAS A 7TH OF AUDIO BULLYS?`:
```sql
                SELECT "eighth" FROM "2003_2009" WHERE "seventh"='audio bullys';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE POLL YEAR WITH A THIRD OF THE TING TINGS?`

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

CREATE TABLE "2003_2009" (
  "poll_year" text,
  "winner" text,
  "second" text,
  "third" text,
  "fourth" text,
  "fifth" text,
  "sixth" text,
  "seventh" text,
  "eighth" text,
  "ninth" text,
  "tenth" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE POLL YEAR WITH A THIRD OF THE TING TINGS?`:
```sql
                SELECT "poll_year" FROM "2003_2009" WHERE "third"='the ting tings';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE SIXTH WITH A SECOND OF WHITE LIES?`

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

CREATE TABLE "2003_2009" (
  "poll_year" text,
  "winner" text,
  "second" text,
  "third" text,
  "fourth" text,
  "fifth" text,
  "sixth" text,
  "seventh" text,
  "eighth" text,
  "ninth" text,
  "tenth" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE SIXTH WITH A SECOND OF WHITE LIES?`:
```sql
                SELECT "sixth" FROM "2003_2009" WHERE "second"='white lies';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE WINNER WITH A FIFTH OF JOSS STONE?`

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

CREATE TABLE "2003_2009" (
  "poll_year" text,
  "winner" text,
  "second" text,
  "third" text,
  "fourth" text,
  "fifth" text,
  "sixth" text,
  "seventh" text,
  "eighth" text,
  "ninth" text,
  "tenth" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE WINNER WITH A FIFTH OF JOSS STONE?`:
```sql
                SELECT "winner" FROM "2003_2009" WHERE "fifth"='joss stone';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE SECOND WITH A TENTH OF DAN BLACK?`

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

CREATE TABLE "2003_2009" (
  "poll_year" text,
  "winner" text,
  "second" text,
  "third" text,
  "fourth" text,
  "fifth" text,
  "sixth" text,
  "seventh" text,
  "eighth" text,
  "ninth" text,
  "tenth" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE SECOND WITH A TENTH OF DAN BLACK?`:
```sql
                SELECT "second" FROM "2003_2009" WHERE "tenth"='dan black';
```
## Task
Generate a SQL query to answer the following question:
`What average game has January 30 as the date?`

### 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,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What average game has January 30 as the date?`:
```sql
                SELECT AVG("game") FROM "game_log" WHERE "date"='january 30';
```
## Task
Generate a SQL query to answer the following question:
`What score has january 19 as the date?`

### 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,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has january 19 as the date?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='january 19';
```
## Task
Generate a SQL query to answer the following question:
`What is the loaction attendance that has a game greater than 35, with January 30 as the date?`

### 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,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the loaction attendance that has a game greater than 35, with January 30 as the date?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "game">35 AND "date"='january 30';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest game that has January 5 as the date?`

### 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,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest game that has January 5 as the date?`:
```sql
                SELECT MAX("game") FROM "game_log" WHERE "date"='january 5';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rebounds that has conseco fieldhouse 11,964 as the location attendance?`

### 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,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rebounds that has conseco fieldhouse 11,964 as the location attendance?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "location_attendance"='conseco fieldhouse 11,964';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest lane value for a mark of 2:02.27 NR, with heats under 2?`

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

CREATE TABLE "semifinals" (
  "heat" real,
  "lane" real,
  "name" text,
  "country" text,
  "mark" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest lane value for a mark of 2:02.27 NR, with heats under 2?`:
```sql
                SELECT MAX("lane") FROM "semifinals" WHERE "mark"='2:02.27 nr' AND "heat"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the mark for the runner from Mozambique?`

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

CREATE TABLE "semifinals" (
  "heat" real,
  "lane" real,
  "name" text,
  "country" text,
  "mark" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mark for the runner from Mozambique?`:
```sql
                SELECT "mark" FROM "semifinals" WHERE "country"='mozambique';
```
## Task
Generate a SQL query to answer the following question:
`Who was in lane 6 with a mark of 2:05.58 SB?`

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

CREATE TABLE "semifinals" (
  "heat" real,
  "lane" real,
  "name" text,
  "country" text,
  "mark" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was in lane 6 with a mark of 2:05.58 SB?`:
```sql
                SELECT "name" FROM "semifinals" WHERE "lane"=6 AND "mark"='2:05.58 sb';
```
## Task
Generate a SQL query to answer the following question:
`What is the non-truncating vowel final stem for the example of k'ats-ma?`

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

CREATE TABLE "nouns" (
  "consonant_final_stem" text,
  "example_k_ats_man" text,
  "vowel_final_stem_truncating" text,
  "example_mama_father" text,
  "vowel_final_stem_non_truncating" text,
  "example_sakartvelo_georgia" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the non-truncating vowel final stem for the example of k'ats-ma?`:
```sql
                SELECT "vowel_final_stem_non_truncating" FROM "nouns" WHERE "example_k_ats_man"='k''ats-ma';
```
## Task
Generate a SQL query to answer the following question:
`What is the truncating vowel final stem that has an example of mama-s?`

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

CREATE TABLE "nouns" (
  "consonant_final_stem" text,
  "example_k_ats_man" text,
  "vowel_final_stem_truncating" text,
  "example_mama_father" text,
  "vowel_final_stem_non_truncating" text,
  "example_sakartvelo_georgia" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the truncating vowel final stem that has an example of mama-s?`:
```sql
                SELECT "vowel_final_stem_truncating" FROM "nouns" WHERE "example_mama_father"='mama-s';
```
## Task
Generate a SQL query to answer the following question:
`What is the example for "man" that has a truncating vowel final stem of -ø and a consonant final stem of -o?`

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

CREATE TABLE "nouns" (
  "consonant_final_stem" text,
  "example_k_ats_man" text,
  "vowel_final_stem_truncating" text,
  "example_mama_father" text,
  "vowel_final_stem_non_truncating" text,
  "example_sakartvelo_georgia" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the example for "man" that has a truncating vowel final stem of -ø and a consonant final stem of -o?`:
```sql
                SELECT "example_k_ats_man" FROM "nouns" WHERE "vowel_final_stem_truncating"='-ø' AND "consonant_final_stem"='-o';
```
## Task
Generate a SQL query to answer the following question:
`What is the non-truncating vowel final stem that has an example of k'ats-s?`

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

CREATE TABLE "nouns" (
  "consonant_final_stem" text,
  "example_k_ats_man" text,
  "vowel_final_stem_truncating" text,
  "example_mama_father" text,
  "vowel_final_stem_non_truncating" text,
  "example_sakartvelo_georgia" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the non-truncating vowel final stem that has an example of k'ats-s?`:
```sql
                SELECT "vowel_final_stem_non_truncating" FROM "nouns" WHERE "example_k_ats_man"='k''ats-s';
```
## Task
Generate a SQL query to answer the following question:
`What is the example for "man" that has an example for "father" of mam-is?`

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

CREATE TABLE "nouns" (
  "consonant_final_stem" text,
  "example_k_ats_man" text,
  "vowel_final_stem_truncating" text,
  "example_mama_father" text,
  "vowel_final_stem_non_truncating" text,
  "example_sakartvelo_georgia" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the example for "man" that has an example for "father" of mam-is?`:
```sql
                SELECT "example_k_ats_man" FROM "nouns" WHERE "example_mama_father"='mam-is';
```
## Task
Generate a SQL query to answer the following question:
`What is the example for "father" that has a consonant final stem of -is?`

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

CREATE TABLE "nouns" (
  "consonant_final_stem" text,
  "example_k_ats_man" text,
  "vowel_final_stem_truncating" text,
  "example_mama_father" text,
  "vowel_final_stem_non_truncating" text,
  "example_sakartvelo_georgia" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the example for "father" that has a consonant final stem of -is?`:
```sql
                SELECT "example_mama_father" FROM "nouns" WHERE "consonant_final_stem"='-is';
```
## Task
Generate a SQL query to answer the following question:
`What round was Ken Irvin drafted?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was Ken Irvin drafted?`:
```sql
                SELECT MAX("round") FROM "nfl_draft" WHERE "player"='ken irvin';
```
## Task
Generate a SQL query to answer the following question:
`In what round was a player from Michigan selected?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what round was a player from Michigan selected?`:
```sql
                SELECT MAX("round") FROM "nfl_draft" WHERE "school_club_team"='michigan';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent before week 8 when the result was l 28-17?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent before week 8 when the result was l 28-17?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"<8 AND "result"='l 28-17';
```
## Task
Generate a SQL query to answer the following question:
`In which week was the game played on October 12, 1975 and the crowd was larger than 44,043?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In which week was the game played on October 12, 1975 and the crowd was larger than 44,043?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "date"='october 12, 1975' AND "attendance">'44,043';
```
## Task
Generate a SQL query to answer the following question:
`What was Berlin when fk pirmasens was Südwest and westfalia herne was west?`

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

CREATE TABLE "champions_of_pre_bundesliga_oberligen" (
  "year" real,
  "nord" text,
  "west" text,
  "s_dwest" text,
  "berlin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Berlin when fk pirmasens was Südwest and westfalia herne was west?`:
```sql
                SELECT "berlin" FROM "champions_of_pre_bundesliga_oberligen" WHERE "s_dwest"='fk pirmasens' AND "west"='westfalia herne';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year borussia dortmund was west and bfc viktoria 1889 was Berlin?`

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

CREATE TABLE "champions_of_pre_bundesliga_oberligen" (
  "year" real,
  "nord" text,
  "west" text,
  "s_dwest" text,
  "berlin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year borussia dortmund was west and bfc viktoria 1889 was Berlin?`:
```sql
                SELECT MIN("year") FROM "champions_of_pre_bundesliga_oberligen" WHERE "west"='borussia dortmund' AND "berlin"='bfc viktoria 1889';
```
## Task
Generate a SQL query to answer the following question:
`What is the Nord in 1952, when tennis borussia berlin was Berlin?`

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

CREATE TABLE "champions_of_pre_bundesliga_oberligen" (
  "year" real,
  "nord" text,
  "west" text,
  "s_dwest" text,
  "berlin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Nord in 1952, when tennis borussia berlin was Berlin?`:
```sql
                SELECT "nord" FROM "champions_of_pre_bundesliga_oberligen" WHERE "berlin"='tennis borussia berlin' AND "year"=1952;
```
## Task
Generate a SQL query to answer the following question:
`Where did Japan place?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Japan place?`:
```sql
                SELECT "place" FROM "final_leaderboard" WHERE "country"='japan';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team when the attendance was 206?`

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

CREATE TABLE "second_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team when the attendance was 206?`:
```sql
                SELECT "away_team" FROM "second_round" WHERE "attendance"='206';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team when the Tie no was 34?`

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

CREATE TABLE "second_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team when the Tie no was 34?`:
```sql
                SELECT "away_team" FROM "second_round" WHERE "tie_no"='34';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team when the attendance was 76?`

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

CREATE TABLE "second_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team when the attendance was 76?`:
```sql
                SELECT "away_team" FROM "second_round" WHERE "attendance"='76';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team when the Tie no was 7?`

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

CREATE TABLE "second_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team when the Tie no was 7?`:
```sql
                SELECT "home_team" FROM "second_round" WHERE "tie_no"='7';
```
## Task
Generate a SQL query to answer the following question:
`What was the Tie no when the away team was east thurrock united?`

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

CREATE TABLE "second_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Tie no when the away team was east thurrock united?`:
```sql
                SELECT "tie_no" FROM "second_round" WHERE "away_team"='east thurrock united';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE LOWEST TURNOUT FOR AN ELECTORATE LARGER THAN 47,822 AND SPOILT OF 2,333?`

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

CREATE TABLE "plebiscite" (
  "constituency" text,
  "electorate" real,
  "votes" real,
  "turnout" real,
  "spoilt" real,
  "percent_yes" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE LOWEST TURNOUT FOR AN ELECTORATE LARGER THAN 47,822 AND SPOILT OF 2,333?`:
```sql
                SELECT MIN("turnout") FROM "plebiscite" WHERE "electorate">'47,822' AND "spoilt"='2,333';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE AVERAGE VOTE FOR DUBLIN SOUTH, AND SPOILT SMALLER THAN 3,387?`

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

CREATE TABLE "plebiscite" (
  "constituency" text,
  "electorate" real,
  "votes" real,
  "turnout" real,
  "spoilt" real,
  "percent_yes" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE AVERAGE VOTE FOR DUBLIN SOUTH, AND SPOILT SMALLER THAN 3,387?`:
```sql
                SELECT AVG("votes") FROM "plebiscite" WHERE "constituency"='dublin south' AND "spoilt"<'3,387';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS AN AVERAGE ELECTORATE WITH VOTES OF 28,475 AND SPOILT SMALLER THAN 5,779?`

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

CREATE TABLE "plebiscite" (
  "constituency" text,
  "electorate" real,
  "votes" real,
  "turnout" real,
  "spoilt" real,
  "percent_yes" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS AN AVERAGE ELECTORATE WITH VOTES OF 28,475 AND SPOILT SMALLER THAN 5,779?`:
```sql
                SELECT AVG("electorate") FROM "plebiscite" WHERE "votes"='28,475' AND "spoilt"<'5,779';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE LOWEST ELECTORATE WITH 31,511 VOTES, AND PERCENT YES SMALLER THAN 57.2?`

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

CREATE TABLE "plebiscite" (
  "constituency" text,
  "electorate" real,
  "votes" real,
  "turnout" real,
  "spoilt" real,
  "percent_yes" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE LOWEST ELECTORATE WITH 31,511 VOTES, AND PERCENT YES SMALLER THAN 57.2?`:
```sql
                SELECT MIN("electorate") FROM "plebiscite" WHERE "votes"='31,511' AND "percent_yes"<57.2;
```
## Task
Generate a SQL query to answer the following question:
`Where was the game played on January 23, 2008?`

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

CREATE TABLE "pre_season_friendlies" (
  "match" real,
  "date" text,
  "tournament" text,
  "location" text,
  "opponent_team" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played on January 23, 2008?`:
```sql
                SELECT "location" FROM "pre_season_friendlies" WHERE "date"='january 23, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Where was the Singapore Charity Shield tournament played?`

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

CREATE TABLE "pre_season_friendlies" (
  "match" real,
  "date" text,
  "tournament" text,
  "location" text,
  "opponent_team" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the Singapore Charity Shield tournament played?`:
```sql
                SELECT "location" FROM "pre_season_friendlies" WHERE "tournament"='singapore charity shield';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game located on January 23, 2008?`

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

CREATE TABLE "pre_season_friendlies" (
  "match" real,
  "date" text,
  "tournament" text,
  "location" text,
  "opponent_team" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game located on January 23, 2008?`:
```sql
                SELECT "location" FROM "pre_season_friendlies" WHERE "date"='january 23, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Where is the location of the friendly match larger than 1 where the Super Reds were the opponent?`

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

CREATE TABLE "pre_season_friendlies" (
  "match" real,
  "date" text,
  "tournament" text,
  "location" text,
  "opponent_team" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the location of the friendly match larger than 1 where the Super Reds were the opponent?`:
```sql
                SELECT "location" FROM "pre_season_friendlies" WHERE "match">1 AND "tournament"='friendly' AND "opponent_team"='super reds';
```
## Task
Generate a SQL query to answer the following question:
`When the team is @ Milwaukee, what is the name of the location where the game is played?`

### 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,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the team is @ Milwaukee, what is the name of the location where the game is played?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "team"='@ milwaukee';
```
## Task
Generate a SQL query to answer the following question:
`For the game with team of @ Chicago, what was the final score?`

### 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,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the game with team of @ Chicago, what was the final score?`:
```sql
                SELECT "score" FROM "game_log" WHERE "team"='@ chicago';
```
## Task
Generate a SQL query to answer the following question:
`How long was Volume:Issue 12:4-6 at the top?`

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

CREATE TABLE "see_also" (
  "volume_issue" text,
  "issue_date_s" text,
  "weeks_on_top" real,
  "song" text,
  "artist" text
);
### SQL
Given the database schema, here is the SQL query that answers `How long was Volume:Issue 12:4-6 at the top?`:
```sql
                SELECT COUNT("weeks_on_top") FROM "see_also" WHERE "volume_issue"='12:4-6';
```
## Task
Generate a SQL query to answer the following question:
`What rank did Best Friends receive?`

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

CREATE TABLE "highest_grossing_films_u_s" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank did Best Friends receive?`:
```sql
                SELECT "rank" FROM "highest_grossing_films_u_s" WHERE "title"='best friends';
```
## Task
Generate a SQL query to answer the following question:
`How many points are for the Fall Bay RFC club?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "bonus_points" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points are for the Fall Bay RFC club?`:
```sql
                SELECT "points_for" FROM "league_table" WHERE "club"='fall bay rfc';
```
## Task
Generate a SQL query to answer the following question:
`What was drawn for 6 bonus points and is against 410 points?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "bonus_points" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was drawn for 6 bonus points and is against 410 points?`:
```sql
                SELECT "drawn" FROM "league_table" WHERE "bonus_points"='6' AND "points_against"='410';
```
## Task
Generate a SQL query to answer the following question:
`What is the club had 431 points against them?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "bonus_points" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the club had 431 points against them?`:
```sql
                SELECT "club" FROM "league_table" WHERE "points_against"='431';
```
## Task
Generate a SQL query to answer the following question:
`What are the points against with a points difference?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "bonus_points" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the points against with a points difference?`:
```sql
                SELECT "points_against" FROM "league_table" WHERE "points_difference"='points difference';
```
## Task
Generate a SQL query to answer the following question:
`What are the played points difference?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "bonus_points" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the played points difference?`:
```sql
                SELECT "played" FROM "league_table" WHERE "points_difference"='points difference';
```
## Task
Generate a SQL query to answer the following question:
`When the Home Team was Sydney, what did the Away team score?`

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

CREATE TABLE "round_of_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Home Team was Sydney, what did the Away team score?`:
```sql
                SELECT "away_team_score" FROM "round_of_16" WHERE "home_team"='sydney';
```
## Task
Generate a SQL query to answer the following question:
`What was the Home team Carlton's Ground?`

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

CREATE TABLE "round_of_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Home team Carlton's Ground?`:
```sql
                SELECT "ground" FROM "round_of_16" WHERE "home_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`When Essendon scored 8.14 (62), what was the Home team score?`

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

CREATE TABLE "round_of_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Essendon scored 8.14 (62), what was the Home team score?`:
```sql
                SELECT "home_team_score" FROM "round_of_16" WHERE "away_team_score"='8.14 (62)' AND "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`Which player scored 71?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player scored 71?`:
```sql
                SELECT "player" FROM "first_round" WHERE "score"=71;
```
## Task
Generate a SQL query to answer the following question:
`What is the circuit on 19 Apr with Craig Lowndes as the winner?`

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

CREATE TABLE "race_calendar" (
  "date" text,
  "series" text,
  "circuit" text,
  "city_state" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the circuit on 19 Apr with Craig Lowndes as the winner?`:
```sql
                SELECT "circuit" FROM "race_calendar" WHERE "winner"='craig lowndes' AND "date"='19 apr';
```
## Task
Generate a SQL query to answer the following question:
`What circuit has volvo cars australia as the team?`

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

CREATE TABLE "race_calendar" (
  "date" text,
  "series" text,
  "circuit" text,
  "city_state" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What circuit has volvo cars australia as the team?`:
```sql
                SELECT "circuit" FROM "race_calendar" WHERE "team"='volvo cars australia';
```
## Task
Generate a SQL query to answer the following question:
`What series was Dick Johnson Racing the team?`

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

CREATE TABLE "race_calendar" (
  "date" text,
  "series" text,
  "circuit" text,
  "city_state" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What series was Dick Johnson Racing the team?`:
```sql
                SELECT "series" FROM "race_calendar" WHERE "team"='dick johnson racing';
```
## Task
Generate a SQL query to answer the following question:
`What is the city/state of the circuit where Russell Ingall Larry Perkins was the winner?`

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

CREATE TABLE "race_calendar" (
  "date" text,
  "series" text,
  "circuit" text,
  "city_state" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the city/state of the circuit where Russell Ingall Larry Perkins was the winner?`:
```sql
                SELECT "city_state" FROM "race_calendar" WHERE "winner"='russell ingall larry perkins';
```
## Task
Generate a SQL query to answer the following question:
`What date was the away team, team Gillingham?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the away team, team Gillingham?`:
```sql
                SELECT "date" FROM "first_round_proper" WHERE "away_team"='gillingham';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for a no. 21 tie?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for a no. 21 tie?`:
```sql
                SELECT "score" FROM "first_round_proper" WHERE "tie_no"='21';
```
## Task
Generate a SQL query to answer the following question:
`What was the date for the away team, team Southport?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date for the away team, team Southport?`:
```sql
                SELECT "date" FROM "first_round_proper" WHERE "away_team"='southport';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the away team, southport?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the away team, southport?`:
```sql
                SELECT "score" FROM "first_round_proper" WHERE "away_team"='southport';
```
## Task
Generate a SQL query to answer the following question:
`What was the result when the attendance was 47,971?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result when the attendance was 47,971?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance"='47,971';
```
## Task
Generate a SQL query to answer the following question:
`What was the result when the attendance was 46,456?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result when the attendance was 46,456?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance"='46,456';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on september 27, 1998?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on september 27, 1998?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='september 27, 1998';
```
## Task
Generate a SQL query to answer the following question:
`Which Venue has a Score of 0:0, a Season larger than 2010, and a Team 1 of t&t hanoi?`

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

CREATE TABLE "results" (
  "season" real,
  "team_1" text,
  "score" text,
  "team_2" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Venue has a Score of 0:0, a Season larger than 2010, and a Team 1 of t&t hanoi?`:
```sql
                SELECT "venue" FROM "results" WHERE "score"='0:0' AND "season">2010 AND "team_1"='t&t hanoi';
```
## Task
Generate a SQL query to answer the following question:
`What's the highest league of the Nova Scotia Clippers with a total season of less than 4?`

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

CREATE TABLE "list_of_csl_teams" (
  "team" text,
  "city" text,
  "total_seasons" real,
  "seasons" text,
  "highest_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest league of the Nova Scotia Clippers with a total season of less than 4?`:
```sql
                SELECT "highest_league" FROM "list_of_csl_teams" WHERE "total_seasons"<4 AND "team"='nova scotia clippers';
```
## Task
Generate a SQL query to answer the following question:
`What is the season that has fewer than 5 total seasons and is in Ottawa, Ontario?`

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

CREATE TABLE "list_of_csl_teams" (
  "team" text,
  "city" text,
  "total_seasons" real,
  "seasons" text,
  "highest_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the season that has fewer than 5 total seasons and is in Ottawa, Ontario?`:
```sql
                SELECT "seasons" FROM "list_of_csl_teams" WHERE "total_seasons"<5 AND "city"='ottawa, ontario';
```