cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what was the away team with st kilda as the away team?`

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

CREATE TABLE "round_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the away team with st kilda as the away team?`:
```sql
                SELECT "away_team_score" FROM "round_2" WHERE "away_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`How many yards for the player with 20 solo tackles and under 0 TDs?`

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

CREATE TABLE "defense" (
  "player" text,
  "tackles" real,
  "solo" real,
  "assisted" real,
  "sack" real,
  "yards" real,
  "td_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many yards for the player with 20 solo tackles and under 0 TDs?`:
```sql
                SELECT SUM("yards") FROM "defense" WHERE "solo"=20 AND "td_s"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many yards for the player with 1 solo tackle and over 0 sacks?`

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

CREATE TABLE "defense" (
  "player" text,
  "tackles" real,
  "solo" real,
  "assisted" real,
  "sack" real,
  "yards" real,
  "td_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many yards for the player with 1 solo tackle and over 0 sacks?`:
```sql
                SELECT MAX("yards") FROM "defense" WHERE "solo"=1 AND "sack">0;
```
## Task
Generate a SQL query to answer the following question:
`What does a hand of Theoretical return have as a 3 credit?`

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

CREATE TABLE "see_also" (
  "hand" text,
  "1_credit" text,
  "2_credits" text,
  "3_credits" text,
  "4_credits" text,
  "5_credits" text
);
### SQL
Given the database schema, here is the SQL query that answers `What does a hand of Theoretical return have as a 3 credit?`:
```sql
                SELECT "3_credits" FROM "see_also" WHERE "hand"='theoretical return';
```
## Task
Generate a SQL query to answer the following question:
`Which hand results in a 2 credits of 16?`

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

CREATE TABLE "see_also" (
  "hand" text,
  "1_credit" text,
  "2_credits" text,
  "3_credits" text,
  "4_credits" text,
  "5_credits" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which hand results in a 2 credits of 16?`:
```sql
                SELECT "hand" FROM "see_also" WHERE "2_credits"='16';
```
## Task
Generate a SQL query to answer the following question:
`What does full house have as a 5 credits?`

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

CREATE TABLE "see_also" (
  "hand" text,
  "1_credit" text,
  "2_credits" text,
  "3_credits" text,
  "4_credits" text,
  "5_credits" text
);
### SQL
Given the database schema, here is the SQL query that answers `What does full house have as a 5 credits?`:
```sql
                SELECT "5_credits" FROM "see_also" WHERE "hand"='full house';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2 credits of a hand that has a 3 credits of 180?`

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

CREATE TABLE "see_also" (
  "hand" text,
  "1_credit" text,
  "2_credits" text,
  "3_credits" text,
  "4_credits" text,
  "5_credits" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2 credits of a hand that has a 3 credits of 180?`:
```sql
                SELECT "2_credits" FROM "see_also" WHERE "3_credits"='180';
```
## Task
Generate a SQL query to answer the following question:
`What would be the 4 credits result of a straight?`

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

CREATE TABLE "see_also" (
  "hand" text,
  "1_credit" text,
  "2_credits" text,
  "3_credits" text,
  "4_credits" text,
  "5_credits" text
);
### SQL
Given the database schema, here is the SQL query that answers `What would be the 4 credits result of a straight?`:
```sql
                SELECT "4_credits" FROM "see_also" WHERE "hand"='straight';
```
## Task
Generate a SQL query to answer the following question:
`What team did the away team play against when they scored 11.9 (75)?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team did the away team play against when they scored 11.9 (75)?`:
```sql
                SELECT "home_team" FROM "round_12" WHERE "away_team_score"='11.9 (75)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team at the game that had a score of 2 – 2?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team at the game that had a score of 2 – 2?`:
```sql
                SELECT "home" FROM "game_log" WHERE "score"='2 – 2';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game when Colorado was the visiting team and Chicago was the home team?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game when Colorado was the visiting team and Chicago was the home team?`:
```sql
                SELECT "date" FROM "game_log" WHERE "visitor"='colorado' AND "home"='chicago';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game when the Avalanche had a record of 8–3–1?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game when the Avalanche had a record of 8–3–1?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='8–3–1';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponents of the 5th Wicket Partnership?`

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

CREATE TABLE "partnership_records" (
  "wicket_partnership" text,
  "runs" text,
  "batsmen" text,
  "opponents" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponents of the 5th Wicket Partnership?`:
```sql
                SELECT "opponents" FROM "partnership_records" WHERE "wicket_partnership"='5th';
```
## Task
Generate a SQL query to answer the following question:
`In which season was there a competition in the Champions League?`

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

CREATE TABLE "fc_alania_in_europe" (
  "season" text,
  "competition" text,
  "round" text,
  "club" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which season was there a competition in the Champions League?`:
```sql
                SELECT "season" FROM "fc_alania_in_europe" WHERE "competition"='champions league';
```
## Task
Generate a SQL query to answer the following question:
`What scores did the RSC Anderlecht club have?`

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

CREATE TABLE "fc_alania_in_europe" (
  "season" text,
  "competition" text,
  "round" text,
  "club" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What scores did the RSC Anderlecht club have?`:
```sql
                SELECT "score" FROM "fc_alania_in_europe" WHERE "club"='rsc anderlecht';
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank of the movie with an opening week net gross more than 81,77,00,000 after 2012?`

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

CREATE TABLE "biggest_opening_week_nett_gross_first_7_" (
  "rank" real,
  "movie" text,
  "year" real,
  "studio_s" text,
  "opening_week_nett_gross" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank of the movie with an opening week net gross more than 81,77,00,000 after 2012?`:
```sql
                SELECT AVG("rank") FROM "biggest_opening_week_nett_gross_first_7_" WHERE "opening_week_nett_gross">'81,77,00,000' AND "year">2012;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest opening week net gross of the movie ranked higher than 5 from Reliance Entertainment?`

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

CREATE TABLE "biggest_opening_week_nett_gross_first_7_" (
  "rank" real,
  "movie" text,
  "year" real,
  "studio_s" text,
  "opening_week_nett_gross" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest opening week net gross of the movie ranked higher than 5 from Reliance Entertainment?`:
```sql
                SELECT MAX("opening_week_nett_gross") FROM "biggest_opening_week_nett_gross_first_7_" WHERE "rank"<5 AND "studio_s"='reliance entertainment';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank of Jab Tak Hai Jaan, which has an opening week net gross less than 99,00,00,000 and was after 2012?`

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

CREATE TABLE "biggest_opening_week_nett_gross_first_7_" (
  "rank" real,
  "movie" text,
  "year" real,
  "studio_s" text,
  "opening_week_nett_gross" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank of Jab Tak Hai Jaan, which has an opening week net gross less than 99,00,00,000 and was after 2012?`:
```sql
                SELECT MAX("rank") FROM "biggest_opening_week_nett_gross_first_7_" WHERE "opening_week_nett_gross"<'99,00,00,000' AND "movie"='jab tak hai jaan' AND "year">2012;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank of the movie with an opening week net gross less than 80,87,00,000 before 2011?`

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

CREATE TABLE "biggest_opening_week_nett_gross_first_7_" (
  "rank" real,
  "movie" text,
  "year" real,
  "studio_s" text,
  "opening_week_nett_gross" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank of the movie with an opening week net gross less than 80,87,00,000 before 2011?`:
```sql
                SELECT MAX("rank") FROM "biggest_opening_week_nett_gross_first_7_" WHERE "year"<2011 AND "opening_week_nett_gross"<'80,87,00,000';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the total number of Grid for Bob Evans and Laps less than 68`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the total number of Grid for Bob Evans and Laps less than 68`:
```sql
                SELECT COUNT("grid") FROM "classification" WHERE "driver"='bob evans' AND "laps"<68;
```
## Task
Generate a SQL query to answer the following question:
`Tell me constructor for Laps less than 17 and Grid more than 11 for alan jones`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me constructor for Laps less than 17 and Grid more than 11 for alan jones`:
```sql
                SELECT "constructor" FROM "classification" WHERE "laps"<17 AND "grid">11 AND "driver"='alan jones';
```
## Task
Generate a SQL query to answer the following question:
`I want the sum of Laps with Grid less than 11 for jean-pierre jarier`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `I want the sum of Laps with Grid less than 11 for jean-pierre jarier`:
```sql
                SELECT SUM("laps") FROM "classification" WHERE "grid"<11 AND "driver"='jean-pierre jarier';
```
## Task
Generate a SQL query to answer the following question:
`I want the constructor for brakes and grid less than 14`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `I want the constructor for brakes and grid less than 14`:
```sql
                SELECT "constructor" FROM "classification" WHERE "time_retired"='brakes' AND "grid"<14;
```
## Task
Generate a SQL query to answer the following question:
`How may episodes did season 1 have?`

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

CREATE TABLE "episodes" (
  "season_no" real,
  "season_start" text,
  "season_end" text,
  "episodes" real,
  "host" text
);
### SQL
Given the database schema, here is the SQL query that answers `How may episodes did season 1 have?`:
```sql
                SELECT COUNT("episodes") FROM "episodes" WHERE "season_no"=1;
```
## Task
Generate a SQL query to answer the following question:
`Which chassis did Aguri Suzuki drive with an entrant of Larrousse F1?`

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

CREATE TABLE "drivers_and_constructors" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which chassis did Aguri Suzuki drive with an entrant of Larrousse F1?`:
```sql
                SELECT "chassis" FROM "drivers_and_constructors" WHERE "entrant"='larrousse f1' AND "driver"='aguri suzuki';
```
## Task
Generate a SQL query to answer the following question:
`What was the entrant in round 16 were Ferrari was the constructor?`

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

CREATE TABLE "drivers_and_constructors" (
  "entrant" text,
  "constructor" text,
  "chassis" text,
  "engine" text,
  "tyre" text,
  "driver" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the entrant in round 16 were Ferrari was the constructor?`:
```sql
                SELECT "entrant" FROM "drivers_and_constructors" WHERE "rounds"='16' AND "constructor"='ferrari';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the country with ICAO of zgha`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "region" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the country with ICAO of zgha`:
```sql
                SELECT "country" FROM "destinations" WHERE "icao"='zgha';
```
## Task
Generate a SQL query to answer the following question:
`I want the ICAO for city of xi'an`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "region" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the ICAO for city of xi'an`:
```sql
                SELECT "icao" FROM "destinations" WHERE "city"='xi''an';
```
## Task
Generate a SQL query to answer the following question:
`I want the IATA for ICAO of zgkl`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "region" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the IATA for ICAO of zgkl`:
```sql
                SELECT "iata" FROM "destinations" WHERE "icao"='zgkl';
```
## Task
Generate a SQL query to answer the following question:
`I want the region for ICAO of vmmc`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "region" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the region for ICAO of vmmc`:
```sql
                SELECT "region" FROM "destinations" WHERE "icao"='vmmc';
```
## Task
Generate a SQL query to answer the following question:
`What is the high grid number for a Time/Retired of + 3 laps, and a Laps smaller than 57?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the high grid number for a Time/Retired of + 3 laps, and a Laps smaller than 57?`:
```sql
                SELECT MAX("grid") FROM "classification" WHERE "time_retired"='+ 3 laps' AND "laps"<57;
```
## Task
Generate a SQL query to answer the following question:
`Who built the car that has a Time/Retired of 1:36:38.887?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who built the car that has a Time/Retired of 1:36:38.887?`:
```sql
                SELECT "constructor" FROM "classification" WHERE "time_retired"='1:36:38.887';
```
## Task
Generate a SQL query to answer the following question:
`Who was the leading scorer on 9 January 2008?`

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

CREATE TABLE "january" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the leading scorer on 9 January 2008?`:
```sql
                SELECT "leading_scorer" FROM "january" WHERE "date"='9 january 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the number played for the Barcelona B club, with wins under 11?`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number played for the Barcelona B club, with wins under 11?`:
```sql
                SELECT SUM("played") FROM "final_table" WHERE "club"='barcelona b' AND "wins"<11;
```
## Task
Generate a SQL query to answer the following question:
`What was the biggest draws, for wins under 4, and points of 20-18?`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the biggest draws, for wins under 4, and points of 20-18?`:
```sql
                SELECT MAX("draws") FROM "final_table" WHERE "points"='20-18' AND "wins"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the average of goals against, where overall goals are more than 35 and the goal difference is 20?`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average of goals against, where overall goals are more than 35 and the goal difference is 20?`:
```sql
                SELECT AVG("goals_against") FROM "final_table" WHERE "goals_for">35 AND "goal_difference"=20;
```
## Task
Generate a SQL query to answer the following question:
`What is the Crowd number for the Away team of Richmond?`

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

CREATE TABLE "round_6" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Crowd number for the Away team of Richmond?`:
```sql
                SELECT SUM("crowd") FROM "round_6" WHERE "away_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team score for the Venue named Glenferrie Oval?`

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

CREATE TABLE "round_6" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team score for the Venue named Glenferrie Oval?`:
```sql
                SELECT "home_team_score" FROM "round_6" WHERE "venue"='glenferrie oval';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest Crowd number for the Venue named Princes Park?`

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

CREATE TABLE "round_6" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest Crowd number for the Venue named Princes Park?`:
```sql
                SELECT MIN("crowd") FROM "round_6" WHERE "venue"='princes park';
```
## Task
Generate a SQL query to answer the following question:
`Which Home team has an Away team score of 6.9 (45)?`

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

CREATE TABLE "round_6" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home team has an Away team score of 6.9 (45)?`:
```sql
                SELECT "home_team" FROM "round_6" WHERE "away_team_score"='6.9 (45)';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the notes with method of points and event of adcc 2001 absolute with result of loss`

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

CREATE TABLE "submission_grappling_record" (
  "result" text,
  "opponent" text,
  "method" text,
  "event" text,
  "date" real,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the notes with method of points and event of adcc 2001 absolute with result of loss`:
```sql
                SELECT "notes" FROM "submission_grappling_record" WHERE "method"='points' AND "event"='adcc 2001 absolute' AND "result"='loss';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the lowest date for result of win and method of points with notes of opening round`

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

CREATE TABLE "submission_grappling_record" (
  "result" text,
  "opponent" text,
  "method" text,
  "event" text,
  "date" real,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the lowest date for result of win and method of points with notes of opening round`:
```sql
                SELECT MIN("date") FROM "submission_grappling_record" WHERE "result"='win' AND "method"='points' AND "notes"='opening round';
```
## Task
Generate a SQL query to answer the following question:
`Name the result with notes of quarter-finals and event of adcc 2001 absolute`

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

CREATE TABLE "submission_grappling_record" (
  "result" text,
  "opponent" text,
  "method" text,
  "event" text,
  "date" real,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result with notes of quarter-finals and event of adcc 2001 absolute`:
```sql
                SELECT "result" FROM "submission_grappling_record" WHERE "notes"='quarter-finals' AND "event"='adcc 2001 absolute';
```
## Task
Generate a SQL query to answer the following question:
`I want the event for method of points with notes of opening round`

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

CREATE TABLE "submission_grappling_record" (
  "result" text,
  "opponent" text,
  "method" text,
  "event" text,
  "date" real,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the event for method of points with notes of opening round`:
```sql
                SELECT "event" FROM "submission_grappling_record" WHERE "method"='points' AND "notes"='opening round';
```
## Task
Generate a SQL query to answer the following question:
`How many win total which has the rank smaller than 3 and events smaller than 22`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many win total which has the rank smaller than 3 and events smaller than 22`:
```sql
                SELECT COUNT("wins") FROM "leaders" WHERE "events"<22 AND "rank"<3;
```
## Task
Generate a SQL query to answer the following question:
`What denomination is mt lawley?`

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

CREATE TABLE "current_member_schools" (
  "school" text,
  "location" text,
  "enrolment" real,
  "founded" real,
  "denomination" text,
  "day_boarding" text,
  "school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What denomination is mt lawley?`:
```sql
                SELECT "denomination" FROM "current_member_schools" WHERE "location"='mt lawley';
```
## Task
Generate a SQL query to answer the following question:
`Is mt lawley day or boarding?`

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

CREATE TABLE "current_member_schools" (
  "school" text,
  "location" text,
  "enrolment" real,
  "founded" real,
  "denomination" text,
  "day_boarding" text,
  "school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `Is mt lawley day or boarding?`:
```sql
                SELECT "day_boarding" FROM "current_member_schools" WHERE "location"='mt lawley';
```
## Task
Generate a SQL query to answer the following question:
`What is the average year founded for schools in claremont?`

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

CREATE TABLE "current_member_schools" (
  "school" text,
  "location" text,
  "enrolment" real,
  "founded" real,
  "denomination" text,
  "day_boarding" text,
  "school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year founded for schools in claremont?`:
```sql
                SELECT AVG("founded") FROM "current_member_schools" WHERE "location"='claremont';
```
## Task
Generate a SQL query to answer the following question:
`When north melbourne was the home team who was the Away team?`

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

CREATE TABLE "round_13" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When north melbourne was the home team who was the Away team?`:
```sql
                SELECT "away_team" FROM "round_13" WHERE "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Which home team scored 19.18 (132)?`

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

CREATE TABLE "round_13" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team scored 19.18 (132)?`:
```sql
                SELECT "home_team" FROM "round_13" WHERE "home_team_score"='19.18 (132)';
```
## Task
Generate a SQL query to answer the following question:
`When collingwood played as the home team who was the away team?`

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

CREATE TABLE "round_13" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When collingwood played as the home team who was the away team?`:
```sql
                SELECT "away_team" FROM "round_13" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`When the Away team was south melbourne what was the home team?`

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

CREATE TABLE "round_13" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Away team was south melbourne what was the home team?`:
```sql
                SELECT "home_team" FROM "round_13" WHERE "away_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest attendance for a stadium that has an average smaller than 307?`

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

CREATE TABLE "stadia_and_attendances" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "highest" real,
  "lowest" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest attendance for a stadium that has an average smaller than 307?`:
```sql
                SELECT AVG("lowest") FROM "stadia_and_attendances" WHERE "average"<307;
```
## Task
Generate a SQL query to answer the following question:
`When the home team scored 17.13 (115), where was the venue?`

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

CREATE TABLE "round_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the home team scored 17.13 (115), where was the venue?`:
```sql
                SELECT "venue" FROM "round_7" WHERE "home_team_score"='17.13 (115)';
```
## Task
Generate a SQL query to answer the following question:
`When the home team was South Melbourne, 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_7" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the home team was South Melbourne, what did the away team score?`:
```sql
                SELECT "away_team_score" FROM "round_7" WHERE "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank of a country with less than 13 bronze medals, a total of 11 medals, and more than 4 gold?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank of a country with less than 13 bronze medals, a total of 11 medals, and more than 4 gold?`:
```sql
                SELECT AVG("rank") FROM "medal_count" WHERE "bronze"<13 AND "total"=11 AND "gold">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest bronze a team with 9 silvers, a total larger than 13, and more than 13 gold medals has?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest bronze a team with 9 silvers, a total larger than 13, and more than 13 gold medals has?`:
```sql
                SELECT MIN("bronze") FROM "medal_count" WHERE "silver"=9 AND "total">13 AND "gold">13;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of silvers a team with more than 95 total medals has?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of silvers a team with more than 95 total medals has?`:
```sql
                SELECT MAX("silver") FROM "medal_count" WHERE "total">95;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest total medals a team with less than 15 gold, less than 5 bronze, and a rank larger than 10 has?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest total medals a team with less than 15 gold, less than 5 bronze, and a rank larger than 10 has?`:
```sql
                SELECT MAX("total") FROM "medal_count" WHERE "gold"<15 AND "bronze"<5 AND "rank">10;
```
## Task
Generate a SQL query to answer the following question:
`Who is the home team who plays at Glenferrie Oval?`

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

CREATE TABLE "round_13" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the home team who plays at Glenferrie Oval?`:
```sql
                SELECT "home_team" FROM "round_13" WHERE "venue"='glenferrie oval';
```
## Task
Generate a SQL query to answer the following question:
`What did the away team Carlton score?`

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

CREATE TABLE "round_13" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did the away team Carlton score?`:
```sql
                SELECT "away_team_score" FROM "round_13" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`In the game where the home team scored 19.21 (135), who was the away team?`

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

CREATE TABLE "round_13" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the game where the home team scored 19.21 (135), who was the away team?`:
```sql
                SELECT "away_team" FROM "round_13" WHERE "home_team_score"='19.21 (135)';
```
## Task
Generate a SQL query to answer the following question:
`Which away team scored 13.13 (91)?`

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

CREATE TABLE "round_13" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which away team scored 13.13 (91)?`:
```sql
                SELECT "away_team" FROM "round_13" WHERE "away_team_score"='13.13 (91)';
```
## Task
Generate a SQL query to answer the following question:
`What position did Lee Gilmour play while having more than 4 Tries and 20 points?`

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

CREATE TABLE "2003_squad_statistics" (
  "player" text,
  "position" text,
  "tries" real,
  "goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What position did Lee Gilmour play while having more than 4 Tries and 20 points?`:
```sql
                SELECT "position" FROM "2003_squad_statistics" WHERE "tries">4 AND "points"=20 AND "player"='lee gilmour';
```
## Task
Generate a SQL query to answer the following question:
`Who was the host that garnered ratings of 9.4/27?`

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

CREATE TABLE "cbs_era_1979_2000" (
  "year" real,
  "network" text,
  "lap_by_lap" text,
  "color_commentator_s" text,
  "pit_reporters" text,
  "host" text,
  "ratings" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the host that garnered ratings of 9.4/27?`:
```sql
                SELECT "host" FROM "cbs_era_1979_2000" WHERE "ratings"='9.4/27';
```
## Task
Generate a SQL query to answer the following question:
`Who was the lap-by-lap broadcaster before 1994 who garnered ratings of 8.0/21?`

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

CREATE TABLE "cbs_era_1979_2000" (
  "year" real,
  "network" text,
  "lap_by_lap" text,
  "color_commentator_s" text,
  "pit_reporters" text,
  "host" text,
  "ratings" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the lap-by-lap broadcaster before 1994 who garnered ratings of 8.0/21?`:
```sql
                SELECT "lap_by_lap" FROM "cbs_era_1979_2000" WHERE "year"<1994 AND "ratings"='8.0/21';
```
## Task
Generate a SQL query to answer the following question:
`Who was the host that garnered ratings of 9.6/26?`

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

CREATE TABLE "cbs_era_1979_2000" (
  "year" real,
  "network" text,
  "lap_by_lap" text,
  "color_commentator_s" text,
  "pit_reporters" text,
  "host" text,
  "ratings" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the host that garnered ratings of 9.6/26?`:
```sql
                SELECT "host" FROM "cbs_era_1979_2000" WHERE "ratings"='9.6/26';
```
## Task
Generate a SQL query to answer the following question:
`What were the ratings for host Chris Economaki who had 12.3 million viewers?`

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

CREATE TABLE "cbs_era_1979_2000" (
  "year" real,
  "network" text,
  "lap_by_lap" text,
  "color_commentator_s" text,
  "pit_reporters" text,
  "host" text,
  "ratings" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the ratings for host Chris Economaki who had 12.3 million viewers?`:
```sql
                SELECT "ratings" FROM "cbs_era_1979_2000" WHERE "host"='chris economaki' AND "viewers"='12.3 million';
```
## Task
Generate a SQL query to answer the following question:
`Who was the network who had Ken Squier as a host and 13.9 million viewers?`

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

CREATE TABLE "cbs_era_1979_2000" (
  "year" real,
  "network" text,
  "lap_by_lap" text,
  "color_commentator_s" text,
  "pit_reporters" text,
  "host" text,
  "ratings" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the network who had Ken Squier as a host and 13.9 million viewers?`:
```sql
                SELECT "network" FROM "cbs_era_1979_2000" WHERE "host"='ken squier' AND "viewers"='13.9 million';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest Attendance for Games played on the Date of February 5?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest Attendance for Games played on the Date of February 5?`:
```sql
                SELECT MIN("attendance") FROM "february" WHERE "date"='february 5';
```
## Task
Generate a SQL query to answer the following question:
`What was the total Attendance for Games while Chicago was the visiting Team?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total Attendance for Games while Chicago was the visiting Team?`:
```sql
                SELECT SUM("attendance") FROM "february" WHERE "visitor"='chicago';
```
## Task
Generate a SQL query to answer the following question:
`What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11?`:
```sql
                SELECT "pole_position" FROM "grands_prix" WHERE "fastest_lap"='rubens barrichello' AND "round">11;
```
## Task
Generate a SQL query to answer the following question:
`Which Grand Prix did David Coulthard win with Michael Schumacher in the pole position before round 9?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grand Prix did David Coulthard win with Michael Schumacher in the pole position before round 9?`:
```sql
                SELECT "grand_prix" FROM "grands_prix" WHERE "winning_driver"='david coulthard' AND "pole_position"='michael schumacher' AND "round"<9;
```
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap when David Coulthard had pole position and Michael Schumacher as a winning driver.`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap when David Coulthard had pole position and Michael Schumacher as a winning driver.`:
```sql
                SELECT "fastest_lap" FROM "grands_prix" WHERE "pole_position"='david coulthard' AND "winning_driver"='michael schumacher';
```
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap at the Australian Grand Prix?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap at the Australian Grand Prix?`:
```sql
                SELECT "fastest_lap" FROM "grands_prix" WHERE "grand_prix"='australian grand prix';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the team 2 for team 1 being la nuova piovese (veneto a)`

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

CREATE TABLE "second_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the team 2 for team 1 being la nuova piovese (veneto a)`:
```sql
                SELECT "team_2" FROM "second_round" WHERE "team_1"='la nuova piovese (veneto a)';
```