cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Date that has the Team of golden state?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Date that has the Team of golden state?`:
```sql
                SELECT "date" FROM "game_log" WHERE "team"='golden state';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the High assists that has the Date of november 25?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the High assists that has the Date of november 25?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "date"='november 25';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Team that has the High rebounds of antawn jamison (10), and the Date of november 5?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Team that has the High rebounds of antawn jamison (10), and the Date of november 5?`:
```sql
                SELECT "team" FROM "game_log" WHERE "high_rebounds"='antawn jamison (10)' AND "date"='november 5';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the High rebounds that has the Date of november 5?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the High rebounds that has the Date of november 5?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "date"='november 5';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE TEAM WITH astc round 1?`

### 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 TEAM WITH astc round 1?`:
```sql
                SELECT "team" FROM "race_calendar" WHERE "series"='astc round 1';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE WINNER WITH ATCC ROUND 6?`

### 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 WINNER WITH ATCC ROUND 6?`:
```sql
                SELECT "winner" FROM "race_calendar" WHERE "series"='atcc round 6';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of points the 49ers scored when the record was 1-5 and there were more than 29,563 fans attending?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "49ers_points" real,
  "opponents" real,
  "record" text,
  "streak" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of points the 49ers scored when the record was 1-5 and there were more than 29,563 fans attending?`:
```sql
                SELECT MIN("49ers_points") FROM "schedule" WHERE "attendance">'29,563' AND "record"='1-5';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest attendance for the game where the record was 0-5 and the opponents scored more than 20 points?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "49ers_points" real,
  "opponents" real,
  "record" text,
  "streak" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest attendance for the game where the record was 0-5 and the opponents scored more than 20 points?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "record"='0-5' AND "opponents">20;
```
## Task
Generate a SQL query to answer the following question:
`What is the street address of Notre Dame Basilica?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "num_of_years_as_tallest" text,
  "height_m_ft" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the street address of Notre Dame Basilica?`:
```sql
                SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='notre dame basilica';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the building that was the tallest for 28 years?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "num_of_years_as_tallest" text,
  "height_m_ft" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the building that was the tallest for 28 years?`:
```sql
                SELECT "name" FROM "timeline_of_tallest_buildings" WHERE "num_of_years_as_tallest"='28 years';
```
## Task
Generate a SQL query to answer the following question:
`What is the Region, when the Catalog is SM 2965-05?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Region, when the Catalog is SM 2965-05?`:
```sql
                SELECT "region" FROM "release_history" WHERE "catalog"='sm 2965-05';
```
## Task
Generate a SQL query to answer the following question:
`What is the Region, when the Catalog is 25AP 301?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Region, when the Catalog is 25AP 301?`:
```sql
                SELECT "region" FROM "release_history" WHERE "catalog"='25ap 301';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Catalog is EPC 81436?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Catalog is EPC 81436?`:
```sql
                SELECT "date" FROM "release_history" WHERE "catalog"='epc 81436';
```
## Task
Generate a SQL query to answer the following question:
`What is Label, when Format is Double CD?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Label, when Format is Double CD?`:
```sql
                SELECT "label" FROM "release_history" WHERE "format"='double cd';
```
## Task
Generate a SQL query to answer the following question:
`What is Label, when Region is Japan?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Label, when Region is Japan?`:
```sql
                SELECT "label" FROM "release_history" WHERE "region"='japan';
```
## Task
Generate a SQL query to answer the following question:
`What is Format, when Region is United States?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Format, when Region is United States?`:
```sql
                SELECT "format" FROM "release_history" WHERE "region"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of appointment for the manager of lecce when the previous manager's contract expired?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of appointment for the manager of lecce when the previous manager's contract expired?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "manner_of_departure"='contract expired' AND "team"='lecce';
```
## Task
Generate a SQL query to answer the following question:
`What was the manner of departure for the outgoing manager, davide ballardini?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the manner of departure for the outgoing manager, davide ballardini?`:
```sql
                SELECT "manner_of_departure" FROM "managerial_changes" WHERE "outgoing_manager"='davide ballardini';
```
## Task
Generate a SQL query to answer the following question:
`What was the manner of departure for the outgoing manager, giuseppe iachini?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the manner of departure for the outgoing manager, giuseppe iachini?`:
```sql
                SELECT "manner_of_departure" FROM "managerial_changes" WHERE "outgoing_manager"='giuseppe iachini';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of appointment for the outgoing manager edoardo reja?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of appointment for the outgoing manager edoardo reja?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='edoardo reja';
```
## Task
Generate a SQL query to answer the following question:
`At what event did he fight matt eckerle?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what event did he fight matt eckerle?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='matt eckerle';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Round that lasted 1:44?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Round that lasted 1:44?`:
```sql
                SELECT MAX("round") FROM "mixed_martial_arts_record" WHERE "time"='1:44';
```
## Task
Generate a SQL query to answer the following question:
`What is the number for the interview in Illinois when the preliminary is less than 8.558?`

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

CREATE TABLE "final_competition_score" (
  "country" text,
  "preliminary" real,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number for the interview in Illinois when the preliminary is less than 8.558?`:
```sql
                SELECT SUM("interview") FROM "final_competition_score" WHERE "country"='illinois' AND "preliminary"<8.558;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the country with less than 9.033 for swimsuit, 8.611 for interview and preliminary is less than 8.87?`

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

CREATE TABLE "final_competition_score" (
  "country" text,
  "preliminary" real,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the country with less than 9.033 for swimsuit, 8.611 for interview and preliminary is less than 8.87?`:
```sql
                SELECT "country" FROM "final_competition_score" WHERE "swimsuit"<9.033 AND "interview"=8.611 AND "preliminary"<8.87;
```
## Task
Generate a SQL query to answer the following question:
`What is the evening gown number when the average is more than 8.984 in Louisiana and the preliminary is more than 8.597?`

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

CREATE TABLE "final_competition_score" (
  "country" text,
  "preliminary" real,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the evening gown number when the average is more than 8.984 in Louisiana and the preliminary is more than 8.597?`:
```sql
                SELECT COUNT("evening_gown") FROM "final_competition_score" WHERE "average">8.984 AND "country"='louisiana' AND "preliminary">8.597;
```
## Task
Generate a SQL query to answer the following question:
`What is the interview number in Louisiana, and the swimsuit number is more than 9.1?`

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

CREATE TABLE "final_competition_score" (
  "country" text,
  "preliminary" real,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the interview number in Louisiana, and the swimsuit number is more than 9.1?`:
```sql
                SELECT COUNT("interview") FROM "final_competition_score" WHERE "country"='louisiana' AND "swimsuit">9.1;
```
## Task
Generate a SQL query to answer the following question:
`What is the swimsuit number when the preliminary is 8.721, and the average is more than 8.781?`

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

CREATE TABLE "final_competition_score" (
  "country" text,
  "preliminary" real,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the swimsuit number when the preliminary is 8.721, and the average is more than 8.781?`:
```sql
                SELECT COUNT("swimsuit") FROM "final_competition_score" WHERE "preliminary"=8.721 AND "average">8.781;
```
## Task
Generate a SQL query to answer the following question:
`Where was the game played on 30 May 2004?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played on 30 May 2004?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "date"='30 may 2004';
```
## Task
Generate a SQL query to answer the following question:
`Who was Silva's Partner in the Amarante Tournament played on a Hard Surface?`

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

CREATE TABLE "doubles_18" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Silva's Partner in the Amarante Tournament played on a Hard Surface?`:
```sql
                SELECT "partner" FROM "doubles_18" WHERE "surface"='hard' AND "tournament"='amarante';
```
## Task
Generate a SQL query to answer the following question:
`Who was Silva's Partner in the match with a Score of 6–3, 7–6 (7–3)?`

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

CREATE TABLE "doubles_18" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Silva's Partner in the match with a Score of 6–3, 7–6 (7–3)?`:
```sql
                SELECT "partner" FROM "doubles_18" WHERE "score"='6–3, 7–6 (7–3)';
```
## Task
Generate a SQL query to answer the following question:
`On what Date was the match with partner Kira Nagy?`

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

CREATE TABLE "doubles_18" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date was the match with partner Kira Nagy?`:
```sql
                SELECT "date" FROM "doubles_18" WHERE "partner"='kira nagy';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the Vigo Tournament?`

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

CREATE TABLE "doubles_18" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the Vigo Tournament?`:
```sql
                SELECT "date" FROM "doubles_18" WHERE "tournament"='vigo';
```
## Task
Generate a SQL query to answer the following question:
`What Tournament did Silva Partner with Nicole Thijssen with Opponent in the final Nina Bratchikova & Frederica Piedade?`

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

CREATE TABLE "doubles_18" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Tournament did Silva Partner with Nicole Thijssen with Opponent in the final Nina Bratchikova & Frederica Piedade?`:
```sql
                SELECT "tournament" FROM "doubles_18" WHERE "partner"='nicole thijssen' AND "opponent_in_the_final"='nina bratchikova & frederica piedade';
```
## Task
Generate a SQL query to answer the following question:
`What is Name, when State is "Jin"?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when State is "Jin"?`:
```sql
                SELECT "name" FROM "vassal_states" WHERE "state"='jin';
```
## Task
Generate a SQL query to answer the following question:
`What is Name, when Royal House is "Ji", and when State is "Cai"?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Royal House is "Ji", and when State is "Cai"?`:
```sql
                SELECT "name" FROM "vassal_states" WHERE "royal_house"='ji' AND "state"='cai';
```
## Task
Generate a SQL query to answer the following question:
`What is State, when From is "830 BC"?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is State, when From is "830 BC"?`:
```sql
                SELECT "state" FROM "vassal_states" WHERE "from"='830 bc';
```
## Task
Generate a SQL query to answer the following question:
`Which Ratio has a Similar ISO A size of a3?`

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

CREATE TABLE "ansi_paper_sizes" (
  "name" text,
  "in_in" text,
  "mm_mm" text,
  "ratio" real,
  "similar_iso_a_size" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Ratio has a Similar ISO A size of a3?`:
```sql
                SELECT AVG("ratio") FROM "ansi_paper_sizes" WHERE "similar_iso_a_size"='a3';
```
## Task
Generate a SQL query to answer the following question:
`Which mm × mm has an in × in of 11 × 17?`

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

CREATE TABLE "ansi_paper_sizes" (
  "name" text,
  "in_in" text,
  "mm_mm" text,
  "ratio" real,
  "similar_iso_a_size" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which mm × mm has an in × in of 11 × 17?`:
```sql
                SELECT "mm_mm" FROM "ansi_paper_sizes" WHERE "in_in"='11 × 17';
```
## Task
Generate a SQL query to answer the following question:
`Which Ratio has a Name of ansi e?`

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

CREATE TABLE "ansi_paper_sizes" (
  "name" text,
  "in_in" text,
  "mm_mm" text,
  "ratio" real,
  "similar_iso_a_size" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Ratio has a Name of ansi e?`:
```sql
                SELECT MIN("ratio") FROM "ansi_paper_sizes" WHERE "name"='ansi e';
```
## Task
Generate a SQL query to answer the following question:
`Which Ratio has an in × in of 17 × 22?`

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

CREATE TABLE "ansi_paper_sizes" (
  "name" text,
  "in_in" text,
  "mm_mm" text,
  "ratio" real,
  "similar_iso_a_size" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Ratio has an in × in of 17 × 22?`:
```sql
                SELECT "ratio" FROM "ansi_paper_sizes" WHERE "in_in"='17 × 22';
```
## Task
Generate a SQL query to answer the following question:
`What is the Distance of the 1945 Vuelta a Espana with 4A Stage?`

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

CREATE TABLE "stage_results" (
  "stage" text,
  "date" text,
  "course" text,
  "distance" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Distance of the 1945 Vuelta a Espana with 4A Stage?`:
```sql
                SELECT "distance" FROM "stage_results" WHERE "stage"='4a';
```
## Task
Generate a SQL query to answer the following question:
`What earned has 5 for the rank?`

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

CREATE TABLE "leading_career_money_winners" (
  "rank" real,
  "player" text,
  "country" text,
  "earned" text,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What earned has 5 for the rank?`:
```sql
                SELECT "earned" FROM "leading_career_money_winners" WHERE "rank"=5;
```
## Task
Generate a SQL query to answer the following question:
`What is the average earnings ($) that has meg mallon as the player, with a rank less than 9?`

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

CREATE TABLE "leading_career_money_winners" (
  "rank" real,
  "player" text,
  "country" text,
  "earned" text,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average earnings ($) that has meg mallon as the player, with a rank less than 9?`:
```sql
                SELECT AVG("earnings") FROM "leading_career_money_winners" WHERE "player"='meg mallon' AND "rank"<9;
```
## Task
Generate a SQL query to answer the following question:
`What's the fed tax that has a total tax greater than 33.2, a minimum sales tax less than 41.01 and in Vancouver, BC?`

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

CREATE TABLE "gasoline_taxes_in_canada" (
  "government" text,
  "federal_excise_tax_cad_l" real,
  "total_excise_tax_cad_l" real,
  "minimum_tax_incl_sales_taxes_cad_l" real,
  "min_tax_cad_us_gal" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the fed tax that has a total tax greater than 33.2, a minimum sales tax less than 41.01 and in Vancouver, BC?`:
```sql
                SELECT AVG("federal_excise_tax_cad_l") FROM "gasoline_taxes_in_canada" WHERE "total_excise_tax_cad_l">33.2 AND "government"='vancouver, bc' AND "minimum_tax_incl_sales_taxes_cad_l"<41.01;
```
## Task
Generate a SQL query to answer the following question:
`What is the least minimum sales tax when the min tax is 105.7 and fed tax is more than 10?`

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

CREATE TABLE "gasoline_taxes_in_canada" (
  "government" text,
  "federal_excise_tax_cad_l" real,
  "total_excise_tax_cad_l" real,
  "minimum_tax_incl_sales_taxes_cad_l" real,
  "min_tax_cad_us_gal" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least minimum sales tax when the min tax is 105.7 and fed tax is more than 10?`:
```sql
                SELECT MIN("minimum_tax_incl_sales_taxes_cad_l") FROM "gasoline_taxes_in_canada" WHERE "min_tax_cad_us_gal"=105.7 AND "federal_excise_tax_cad_l">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the 1991 when 1992 and 1990 are 1R?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1984" text,
  "1985" text,
  "1986" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "career_sr" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1991 when 1992 and 1990 are 1R?`:
```sql
                SELECT "1991" FROM "singles_performance_timeline" WHERE "1992"='1r' AND "1990"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1991 when 1990 is ATP Masters Series?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1984" text,
  "1985" text,
  "1986" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "career_sr" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1991 when 1990 is ATP Masters Series?`:
```sql
                SELECT "1991" FROM "singles_performance_timeline" WHERE "1990"='atp masters series';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1995 when the 1991 is Grand Slams?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1984" text,
  "1985" text,
  "1986" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "career_sr" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1995 when the 1991 is Grand Slams?`:
```sql
                SELECT "1995" FROM "singles_performance_timeline" WHERE "1991"='grand slams';
```
## Task
Generate a SQL query to answer the following question:
`What is the career SR when 1985 is Grand Slams?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1984" text,
  "1985" text,
  "1986" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "career_sr" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the career SR when 1985 is Grand Slams?`:
```sql
                SELECT "career_sr" FROM "singles_performance_timeline" WHERE "1985"='grand slams';
```
## Task
Generate a SQL query to answer the following question:
`Which Name has a Date of 11 june 1940?`

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

CREATE TABLE "ships_attacked" (
  "date" text,
  "u_boat" text,
  "name" text,
  "nationality" text,
  "tonnage_grt" real,
  "fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has a Date of 11 june 1940?`:
```sql
                SELECT "name" FROM "ships_attacked" WHERE "date"='11 june 1940';
```
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a Fate of sunk (mine), and a Tonnage (GRT) smaller than 2,266?`

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

CREATE TABLE "ships_attacked" (
  "date" text,
  "u_boat" text,
  "name" text,
  "nationality" text,
  "tonnage_grt" real,
  "fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nationality has a Fate of sunk (mine), and a Tonnage (GRT) smaller than 2,266?`:
```sql
                SELECT "nationality" FROM "ships_attacked" WHERE "fate"='sunk (mine)' AND "tonnage_grt"<'2,266';
```
## Task
Generate a SQL query to answer the following question:
`Which Tonnage (GRT) is the highest one that has a Date of 16 june 1940?`

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

CREATE TABLE "ships_attacked" (
  "date" text,
  "u_boat" text,
  "name" text,
  "nationality" text,
  "tonnage_grt" real,
  "fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tonnage (GRT) is the highest one that has a Date of 16 june 1940?`:
```sql
                SELECT MAX("tonnage_grt") FROM "ships_attacked" WHERE "date"='16 june 1940';
```
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a Name of assyrian?`

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

CREATE TABLE "ships_attacked" (
  "date" text,
  "u_boat" text,
  "name" text,
  "nationality" text,
  "tonnage_grt" real,
  "fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nationality has a Name of assyrian?`:
```sql
                SELECT "nationality" FROM "ships_attacked" WHERE "name"='assyrian';
```
## Task
Generate a SQL query to answer the following question:
`What is the time for the bike (40km) when the swim (1.5km) is 19:56?`

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

CREATE TABLE "triathlon" (
  "athlete" text,
  "event" text,
  "swim_1_5km" text,
  "trans_1" text,
  "bike_40km" text,
  "trans_2" text,
  "run_10km" text,
  "total_time" text,
  "rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time for the bike (40km) when the swim (1.5km) is 19:56?`:
```sql
                SELECT "bike_40km" FROM "triathlon" WHERE "swim_1_5km"='19:56';
```
## Task
Generate a SQL query to answer the following question:
`With a swim (1.5km) of 18:55 and a run (10km) of 32:37, what is the trans 2?`

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

CREATE TABLE "triathlon" (
  "athlete" text,
  "event" text,
  "swim_1_5km" text,
  "trans_1" text,
  "bike_40km" text,
  "trans_2" text,
  "run_10km" text,
  "total_time" text,
  "rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `With a swim (1.5km) of 18:55 and a run (10km) of 32:37, what is the trans 2?`:
```sql
                SELECT "trans_2" FROM "triathlon" WHERE "swim_1_5km"='18:55' AND "run_10km"='32:37';
```
## Task
Generate a SQL query to answer the following question:
`Daniela Ryf who competes in the women's even had what swim (1.5km)?`

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

CREATE TABLE "triathlon" (
  "athlete" text,
  "event" text,
  "swim_1_5km" text,
  "trans_1" text,
  "bike_40km" text,
  "trans_2" text,
  "run_10km" text,
  "total_time" text,
  "rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `Daniela Ryf who competes in the women's even had what swim (1.5km)?`:
```sql
                SELECT "swim_1_5km" FROM "triathlon" WHERE "event"='women''s' AND "athlete"='daniela ryf';
```
## Task
Generate a SQL query to answer the following question:
`For the triathlon with a bike (40km) of 58:20 what is the total time?`

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

CREATE TABLE "triathlon" (
  "athlete" text,
  "event" text,
  "swim_1_5km" text,
  "trans_1" text,
  "bike_40km" text,
  "trans_2" text,
  "run_10km" text,
  "total_time" text,
  "rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the triathlon with a bike (40km) of 58:20 what is the total time?`:
```sql
                SELECT "total_time" FROM "triathlon" WHERE "bike_40km"='58:20';
```
## Task
Generate a SQL query to answer the following question:
`How long did the trans 1 take when 2:00:40.20 is the total time?`

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

CREATE TABLE "triathlon" (
  "athlete" text,
  "event" text,
  "swim_1_5km" text,
  "trans_1" text,
  "bike_40km" text,
  "trans_2" text,
  "run_10km" text,
  "total_time" text,
  "rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `How long did the trans 1 take when 2:00:40.20 is the total time?`:
```sql
                SELECT "trans_1" FROM "triathlon" WHERE "total_time"='2:00:40.20';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Record that has the Team of minnesota?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Record that has the Team of minnesota?`:
```sql
                SELECT "record" FROM "game_log" WHERE "team"='minnesota';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Score that has the Team of memphis?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Score that has the Team of memphis?`:
```sql
                SELECT "score" FROM "game_log" WHERE "team"='memphis';
```
## Task
Generate a SQL query to answer the following question:
`With a date of Aldershot and Aldershot as the away team what was the score of the game?`

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

CREATE TABLE "fourth_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 `With a date of Aldershot and Aldershot as the away team what was the score of the game?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "away_team"='aldershot' AND "date"='aldershot';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the game when West Ham United was the away team?`

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

CREATE TABLE "fourth_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 game when West Ham United was the away team?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "away_team"='west ham united';
```
## Task
Generate a SQL query to answer the following question:
`With Sheffield United as the away team and the date, what home team has a tie no of 15?`

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

CREATE TABLE "fourth_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 `With Sheffield United as the away team and the date, what home team has a tie no of 15?`:
```sql
                SELECT "home_team" FROM "fourth_round_proper" WHERE "tie_no"='15' AND "away_team"='sheffield united' AND "date"='sheffield united';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team when Sheffield United was the away team and the date was also Sheffield United?`

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

CREATE TABLE "fourth_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 `Who was the home team when Sheffield United was the away team and the date was also Sheffield United?`:
```sql
                SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='sheffield united' AND "date"='sheffield united';
```
## Task
Generate a SQL query to answer the following question:
`What tie no has Watford as the date?`

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

CREATE TABLE "fourth_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 tie no has Watford as the date?`:
```sql
                SELECT "tie_no" FROM "fourth_round_proper" WHERE "date"='watford';
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a Place of t9, and a Score of 71-71-72=214, and a Player of ernie els?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Place of t9, and a Score of 71-71-72=214, and a Player of ernie els?`:
```sql
                SELECT "country" FROM "third_round" WHERE "place"='t9' AND "score"='71-71-72=214' AND "player"='ernie els';
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a To par of –13?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a To par of –13?`:
```sql
                SELECT "country" FROM "third_round" WHERE "to_par"='–13';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a Score of 72-69-73=214?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Score of 72-69-73=214?`:
```sql
                SELECT "player" FROM "third_round" WHERE "score"='72-69-73=214';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a To par of –4, and a Player of duffy waldorf?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a To par of –4, and a Player of duffy waldorf?`:
```sql
                SELECT "score" FROM "third_round" WHERE "to_par"='–4' AND "player"='duffy waldorf';
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a Score of 79-68-74=212?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Score of 79-68-74=212?`:
```sql
                SELECT "country" FROM "third_round" WHERE "score"='79-68-74=212';
```
## Task
Generate a SQL query to answer the following question:
`Which To par has a Country of united states, and a Player of duffy waldorf?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which To par has a Country of united states, and a Player of duffy waldorf?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "country"='united states' AND "player"='duffy waldorf';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent In Final, when Surface is Hard, when Location is Wellington, New Zealand, and when Date is 6 February 2000?`

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

CREATE TABLE "singles_finals_10_7_3" (
  "outcome" text,
  "date" text,
  "location" text,
  "surface" text,
  "opponent_in_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent In Final, when Surface is Hard, when Location is Wellington, New Zealand, and when Date is 6 February 2000?`:
```sql
                SELECT "opponent_in_final" FROM "singles_finals_10_7_3" WHERE "surface"='hard' AND "location"='wellington, new zealand' AND "date"='6 february 2000';
```
## Task
Generate a SQL query to answer the following question:
`What is Surface, when Date is 2 May 1999?`

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

CREATE TABLE "singles_finals_10_7_3" (
  "outcome" text,
  "date" text,
  "location" text,
  "surface" text,
  "opponent_in_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Surface, when Date is 2 May 1999?`:
```sql
                SELECT "surface" FROM "singles_finals_10_7_3" WHERE "date"='2 may 1999';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg when team #1 is Rubin Kazan?`

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

CREATE TABLE "belarusian_clubs_in_euporean_cups" (
  "round" text,
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg when team #1 is Rubin Kazan?`:
```sql
                SELECT "2nd_leg" FROM "belarusian_clubs_in_euporean_cups" WHERE "team_num1"='rubin kazan';
```
## Task
Generate a SQL query to answer the following question:
`What is the agg when team #2 is 2006 UEFA Intertoto Cup?`

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

CREATE TABLE "belarusian_clubs_in_euporean_cups" (
  "round" text,
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the agg when team #2 is 2006 UEFA Intertoto Cup?`:
```sql
                SELECT "agg" FROM "belarusian_clubs_in_euporean_cups" WHERE "team_num2"='2006 uefa intertoto cup';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest market value in billions of the company with profits of 20.96 billions and 166.99 billions in assets?`

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

CREATE TABLE "2004_list" (
  "rank" real,
  "company" text,
  "headquarters" text,
  "industry" text,
  "sales_billion" real,
  "profits_billion" real,
  "assets_billion" real,
  "market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest market value in billions of the company with profits of 20.96 billions and 166.99 billions in assets?`:
```sql
                SELECT MAX("market_value_billion") FROM "2004_list" WHERE "profits_billion"=20.96 AND "assets_billion">166.99;
```