cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the British Lee-Enfield (data for late model) when the Japanese Type 38 Rifle is 5?`

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

CREATE TABLE "comparison_with_contemporary_rifles" (
  "rifle" text,
  "danish_krag_j_rgensen_1889" text,
  "us_krag_j_rgensen_m1892" text,
  "norwegian_krag_j_rgensen_m1894" text,
  "japanese_type_38_rifle" text,
  "german_gewehr_98" text,
  "british_lee_enfield_data_for_late_model" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the British Lee-Enfield (data for late model) when the Japanese Type 38 Rifle is 5?`:
```sql
                SELECT "british_lee_enfield_data_for_late_model" FROM "comparison_with_contemporary_rifles" WHERE "japanese_type_38_rifle"='5';
```
## Task
Generate a SQL query to answer the following question:
`What is the Rifle when the German Gewehr 98 is 74cm?`

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

CREATE TABLE "comparison_with_contemporary_rifles" (
  "rifle" text,
  "danish_krag_j_rgensen_1889" text,
  "us_krag_j_rgensen_m1892" text,
  "norwegian_krag_j_rgensen_m1894" text,
  "japanese_type_38_rifle" text,
  "german_gewehr_98" text,
  "british_lee_enfield_data_for_late_model" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rifle when the German Gewehr 98 is 74cm?`:
```sql
                SELECT "rifle" FROM "comparison_with_contemporary_rifles" WHERE "german_gewehr_98"='74cm';
```
## Task
Generate a SQL query to answer the following question:
`What is the US Krag-Jørgensen M1892 when the Norwegian Krag-Jørgensen M1894 is 126.8cm?`

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

CREATE TABLE "comparison_with_contemporary_rifles" (
  "rifle" text,
  "danish_krag_j_rgensen_1889" text,
  "us_krag_j_rgensen_m1892" text,
  "norwegian_krag_j_rgensen_m1894" text,
  "japanese_type_38_rifle" text,
  "german_gewehr_98" text,
  "british_lee_enfield_data_for_late_model" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the US Krag-Jørgensen M1892 when the Norwegian Krag-Jørgensen M1894 is 126.8cm?`:
```sql
                SELECT "us_krag_j_rgensen_m1892" FROM "comparison_with_contemporary_rifles" WHERE "norwegian_krag_j_rgensen_m1894"='126.8cm';
```
## Task
Generate a SQL query to answer the following question:
`What team has a national league in 2001?`

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

CREATE TABLE "winners" (
  "year" real,
  "player" text,
  "team" text,
  "league" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team has a national league in 2001?`:
```sql
                SELECT "team" FROM "winners" WHERE "league"='national' AND "year"=2001;
```
## Task
Generate a SQL query to answer the following question:
`What is the league of the third baseman player before 1973?`

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

CREATE TABLE "winners" (
  "year" real,
  "player" text,
  "team" text,
  "league" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the league of the third baseman player before 1973?`:
```sql
                SELECT "league" FROM "winners" WHERE "year"<1973 AND "position"='third baseman';
```
## Task
Generate a SQL query to answer the following question:
`What is Original Title, when Film Title Used In Nomination is "Monga"?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Original Title, when Film Title Used In Nomination is "Monga"?`:
```sql
                SELECT "original_title" FROM "submissions" WHERE "film_title_used_in_nomination"='monga';
```
## Task
Generate a SQL query to answer the following question:
`What is Result, when Original Title is "Tiānmǎ Cháfáng (天馬茶房)"?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Result, when Original Title is "Tiānmǎ Cháfáng (天馬茶房)"?`:
```sql
                SELECT "result" FROM "submissions" WHERE "original_title"='tiānmǎ cháfáng (天馬茶房)';
```
## Task
Generate a SQL query to answer the following question:
`What is Film Title Used In Nomination, when Original Title is "Báng-Kah (艋舺)"`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Film Title Used In Nomination, when Original Title is "Báng-Kah (艋舺)"`:
```sql
                SELECT "film_title_used_in_nomination" FROM "submissions" WHERE "original_title"='báng-kah (艋舺)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Original Title, when Director is "Ting Shan-Si", and when Film Title Used In Nomination is "The 800 Heroes"?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Original Title, when Director is "Ting Shan-Si", and when Film Title Used In Nomination is "The 800 Heroes"?`:
```sql
                SELECT "original_title" FROM "submissions" WHERE "director"='ting shan-si' AND "film_title_used_in_nomination"='the 800 heroes';
```
## Task
Generate a SQL query to answer the following question:
`What is Year (Ceremony), when Director is "Wang Siu-Di"?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Year (Ceremony), when Director is "Wang Siu-Di"?`:
```sql
                SELECT "year_ceremony" FROM "submissions" WHERE "director"='wang siu-di';
```
## Task
Generate a SQL query to answer the following question:
`What is Result, when Film Title Used In Nomination is "Kuei-Mei, A Woman"?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Result, when Film Title Used In Nomination is "Kuei-Mei, A Woman"?`:
```sql
                SELECT "result" FROM "submissions" WHERE "film_title_used_in_nomination"='kuei-mei, a woman';
```
## Task
Generate a SQL query to answer the following question:
`What was the issued serial for yellow on blue design issued in 1955?`

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

CREATE TABLE "1954_to_1972" (
  "issued" real,
  "type" text,
  "design" text,
  "serial_format" text,
  "serials_issued" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the issued serial for yellow on blue design issued in 1955?`:
```sql
                SELECT "serials_issued" FROM "1954_to_1972" WHERE "design"='yellow on blue' AND "issued"=1955;
```
## Task
Generate a SQL query to answer the following question:
`What is the serial format for white on blue with a serial issued of ss-00-00 to zz-99-99?`

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

CREATE TABLE "1954_to_1972" (
  "issued" real,
  "type" text,
  "design" text,
  "serial_format" text,
  "serials_issued" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the serial format for white on blue with a serial issued of ss-00-00 to zz-99-99?`:
```sql
                SELECT "serial_format" FROM "1954_to_1972" WHERE "design"='white on blue' AND "serials_issued"='ss-00-00 to zz-99-99';
```
## Task
Generate a SQL query to answer the following question:
`What is the issued serial given in 1966?`

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

CREATE TABLE "1954_to_1972" (
  "issued" real,
  "type" text,
  "design" text,
  "serial_format" text,
  "serials_issued" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the issued serial given in 1966?`:
```sql
                SELECT "serials_issued" FROM "1954_to_1972" WHERE "issued"=1966;
```
## Task
Generate a SQL query to answer the following question:
`What serial format was issued in 1972?`

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

CREATE TABLE "1954_to_1972" (
  "issued" real,
  "type" text,
  "design" text,
  "serial_format" text,
  "serials_issued" text
);
### SQL
Given the database schema, here is the SQL query that answers `What serial format was issued in 1972?`:
```sql
                SELECT "serial_format" FROM "1954_to_1972" WHERE "issued"=1972;
```
## Task
Generate a SQL query to answer the following question:
`What type was issued in 1964?`

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

CREATE TABLE "1954_to_1972" (
  "issued" real,
  "type" text,
  "design" text,
  "serial_format" text,
  "serials_issued" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type was issued in 1964?`:
```sql
                SELECT "type" FROM "1954_to_1972" WHERE "issued"=1964;
```
## Task
Generate a SQL query to answer the following question:
`At which tournament does Milan play against Hungary's league selection?`

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

CREATE TABLE "pre_season_tournaments_and_friendlies" (
  "date" text,
  "tournament" text,
  "location" text,
  "opponent_team" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `At which tournament does Milan play against Hungary's league selection?`:
```sql
                SELECT "tournament" FROM "pre_season_tournaments_and_friendlies" WHERE "opponent_team"='hungary''s league selection';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score on 1 August 2008?`

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

CREATE TABLE "pre_season_tournaments_and_friendlies" (
  "date" text,
  "tournament" text,
  "location" text,
  "opponent_team" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score on 1 August 2008?`:
```sql
                SELECT "score" FROM "pre_season_tournaments_and_friendlies" WHERE "date"='1 august 2008';
```
## Task
Generate a SQL query to answer the following question:
`Where did Milan play against Napoli?`

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

CREATE TABLE "pre_season_tournaments_and_friendlies" (
  "date" text,
  "tournament" text,
  "location" text,
  "opponent_team" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Milan play against Napoli?`:
```sql
                SELECT "location" FROM "pre_season_tournaments_and_friendlies" WHERE "opponent_team"='napoli';
```
## Task
Generate a SQL query to answer the following question:
`WHAT WEEK HAS A TV TIME OF BYE?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT WEEK HAS A TV TIME OF BYE?`:
```sql
                SELECT "week" FROM "schedule" WHERE "tv_time"='bye';
```
## Task
Generate a SQL query to answer the following question:
`WHAT WAS THE ATTENDANCE FOR WEEK 15?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT WAS THE ATTENDANCE FOR WEEK 15?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week"=15;
```
## Task
Generate a SQL query to answer the following question:
`WHAT WAS THE RESULT FOR NOVEMBER 29, 2001?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT WAS THE RESULT FOR NOVEMBER 29, 2001?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='november 29, 2001';
```
## Task
Generate a SQL query to answer the following question:
`In what year was the bridge in Clarkdale built?`

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

CREATE TABLE "references" (
  "name" text,
  "built" text,
  "listed" text,
  "location" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was the bridge in Clarkdale built?`:
```sql
                SELECT "built" FROM "references" WHERE "location"='clarkdale';
```
## Task
Generate a SQL query to answer the following question:
`In what year was the Gila Bend Overpass built?`

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

CREATE TABLE "references" (
  "name" text,
  "built" text,
  "listed" text,
  "location" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was the Gila Bend Overpass built?`:
```sql
                SELECT "built" FROM "references" WHERE "name"='gila bend overpass';
```
## Task
Generate a SQL query to answer the following question:
`In what county is the Canyon Padre Bridge?`

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

CREATE TABLE "references" (
  "name" text,
  "built" text,
  "listed" text,
  "location" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what county is the Canyon Padre Bridge?`:
```sql
                SELECT "county" FROM "references" WHERE "name"='canyon padre bridge';
```
## Task
Generate a SQL query to answer the following question:
`Who won the ABA Championship in 1971?`

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

CREATE TABLE "results_by_teams" (
  "teams" text,
  "finals_appearances" real,
  "championships" real,
  "runners_up" real,
  "years_won" text,
  "years_runners_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the ABA Championship in 1971?`:
```sql
                SELECT MIN("championships") FROM "results_by_teams" WHERE "years_won"='1971';
```
## Task
Generate a SQL query to answer the following question:
`What was the average amount of losses for teams with played less than 14?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average amount of losses for teams with played less than 14?`:
```sql
                SELECT AVG("lost") FROM "first_round" WHERE "played"<14;
```
## Task
Generate a SQL query to answer the following question:
`What was the total number of games played by se freising when their points were larger than 13?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number of games played by se freising when their points were larger than 13?`:
```sql
                SELECT COUNT("played") FROM "first_round" WHERE "name"='se freising' AND "points">13;
```
## Task
Generate a SQL query to answer the following question:
`What was the average losses for team with points larger than 3 and played larger thna 14?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average losses for team with points larger than 3 and played larger thna 14?`:
```sql
                SELECT AVG("lost") FROM "first_round" WHERE "points">3 AND "played">14;
```
## Task
Generate a SQL query to answer the following question:
`How many losses did ev bruckberg have when the drawn was more than 1?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses did ev bruckberg have when the drawn was more than 1?`:
```sql
                SELECT SUM("lost") FROM "first_round" WHERE "name"='ev bruckberg' AND "drawn">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the poll source when Jeff Sessions is at 58% and the date administered is July 31, 2008?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_vivian_davis_figures" text,
  "republican_jeff_sessions" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the poll source when Jeff Sessions is at 58% and the date administered is July 31, 2008?`:
```sql
                SELECT "poll_source" FROM "opinion_polling_for_the_united_states_se" WHERE "republican_jeff_sessions"='58%' AND "dates_administered"='july 31, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What was the date administered from a source of Rasmussen Reports and a lead margin over 32?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_vivian_davis_figures" text,
  "republican_jeff_sessions" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date administered from a source of Rasmussen Reports and a lead margin over 32?`:
```sql
                SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_se" WHERE "poll_source"='rasmussen reports' AND "lead_margin">32;
```
## Task
Generate a SQL query to answer the following question:
`What is the date administered when Vivian Davis Figures was at 37%?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_vivian_davis_figures" text,
  "republican_jeff_sessions" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date administered when Vivian Davis Figures was at 37%?`:
```sql
                SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_se" WHERE "democrat_vivian_davis_figures"='37%';
```
## Task
Generate a SQL query to answer the following question:
`What is the date administered when Vivian Davis Figures was at 36%?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_vivian_davis_figures" text,
  "republican_jeff_sessions" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date administered when Vivian Davis Figures was at 36%?`:
```sql
                SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_se" WHERE "democrat_vivian_davis_figures"='36%';
```
## Task
Generate a SQL query to answer the following question:
`What is the poll source for Vivian Davis Figures at 29% and a lead margin greater than 27?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_vivian_davis_figures" text,
  "republican_jeff_sessions" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the poll source for Vivian Davis Figures at 29% and a lead margin greater than 27?`:
```sql
                SELECT "poll_source" FROM "opinion_polling_for_the_united_states_se" WHERE "lead_margin">27 AND "democrat_vivian_davis_figures"='29%';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of the Chicago Black Hawks Home game on March 28?`

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

CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of the Chicago Black Hawks Home game on March 28?`:
```sql
                SELECT "score" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "home"='chicago black hawks' AND "date"='march 28';
```
## Task
Generate a SQL query to answer the following question:
`What is the Visitor of the game on April 2?`

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

CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Visitor of the game on April 2?`:
```sql
                SELECT "visitor" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "date"='april 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team on April 4?`

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

CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team on April 4?`:
```sql
                SELECT "home" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "date"='april 4';
```
## Task
Generate a SQL query to answer the following question:
`What is the Visitor on March 31?`

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

CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Visitor on March 31?`:
```sql
                SELECT "visitor" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "date"='march 31';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team on April 2?`

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

CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team on April 2?`:
```sql
                SELECT "home" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "date"='april 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the game with a Record of 2-3?`

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

CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the game with a Record of 2-3?`:
```sql
                SELECT "date" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "record"='2-3';
```
## Task
Generate a SQL query to answer the following question:
`What year did Freddie Frith win the 350cc and Enrico Lorenzetti win the 500cc?`

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

CREATE TABLE "by_year" (
  "year" text,
  "designated_grand_prix" text,
  "track" text,
  "250_cc" text,
  "350_cc" text,
  "500_cc" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did Freddie Frith win the 350cc and Enrico Lorenzetti win the 500cc?`:
```sql
                SELECT "year" FROM "by_year" WHERE "350_cc"='freddie frith' AND "500_cc"='enrico lorenzetti';
```
## Task
Generate a SQL query to answer the following question:
`What track was used in 1926?`

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

CREATE TABLE "by_year" (
  "year" text,
  "designated_grand_prix" text,
  "track" text,
  "250_cc" text,
  "350_cc" text,
  "500_cc" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What track was used in 1926?`:
```sql
                SELECT "track" FROM "by_year" WHERE "year"='1926';
```
## Task
Generate a SQL query to answer the following question:
`Who won the 250cc in 1927?`

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

CREATE TABLE "by_year" (
  "year" text,
  "designated_grand_prix" text,
  "track" text,
  "250_cc" text,
  "350_cc" text,
  "500_cc" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the 250cc in 1927?`:
```sql
                SELECT "250_cc" FROM "by_year" WHERE "year"='1927';
```
## Task
Generate a SQL query to answer the following question:
`What grand prix was held at Granollers?`

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

CREATE TABLE "by_year" (
  "year" text,
  "designated_grand_prix" text,
  "track" text,
  "250_cc" text,
  "350_cc" text,
  "500_cc" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What grand prix was held at Granollers?`:
```sql
                SELECT "designated_grand_prix" FROM "by_year" WHERE "track"='granollers';
```
## Task
Generate a SQL query to answer the following question:
`Who won the 350cc at Sachsenring?`

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

CREATE TABLE "by_year" (
  "year" text,
  "designated_grand_prix" text,
  "track" text,
  "250_cc" text,
  "350_cc" text,
  "500_cc" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the 350cc at Sachsenring?`:
```sql
                SELECT "350_cc" FROM "by_year" WHERE "track"='sachsenring';
```
## Task
Generate a SQL query to answer the following question:
`Which fleet numbers has quanitity of 13?`

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

CREATE TABLE "class_l_2_8_2" (
  "class" text,
  "wheel_arrangement" text,
  "fleet_number_s" text,
  "manufacturer" text,
  "year_made" text,
  "quantity_made" text,
  "quantity_preserved" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which fleet numbers has quanitity of 13?`:
```sql
                SELECT "fleet_number_s" FROM "class_l_2_8_2" WHERE "quantity_made"='13';
```
## Task
Generate a SQL query to answer the following question:
`Which wheel arrangement made in year 1900?`

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

CREATE TABLE "class_l_2_8_2" (
  "class" text,
  "wheel_arrangement" text,
  "fleet_number_s" text,
  "manufacturer" text,
  "year_made" text,
  "quantity_made" text,
  "quantity_preserved" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which wheel arrangement made in year 1900?`:
```sql
                SELECT "wheel_arrangement" FROM "class_l_2_8_2" WHERE "year_made"='1900';
```
## Task
Generate a SQL query to answer the following question:
`Which fleet numbers has quantity of 1?`

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

CREATE TABLE "class_l_2_8_2" (
  "class" text,
  "wheel_arrangement" text,
  "fleet_number_s" text,
  "manufacturer" text,
  "year_made" text,
  "quantity_made" text,
  "quantity_preserved" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which fleet numbers has quantity of 1?`:
```sql
                SELECT "fleet_number_s" FROM "class_l_2_8_2" WHERE "quantity_made"='1';
```
## Task
Generate a SQL query to answer the following question:
`what is the score when the partner is florencia labat, the surface is clay, the opponents is laura golarsa ann grossman?`

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

CREATE TABLE "doubles_11_6_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score when the partner is florencia labat, the surface is clay, the opponents is laura golarsa ann grossman?`:
```sql
                SELECT "score" FROM "doubles_11_6_5" WHERE "partner"='florencia labat' AND "surface"='clay' AND "opponents"='laura golarsa ann grossman';
```
## Task
Generate a SQL query to answer the following question:
`who is the opponents when the surface is clay and the date is 12 july 1992?`

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

CREATE TABLE "doubles_11_6_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the opponents when the surface is clay and the date is 12 july 1992?`:
```sql
                SELECT "opponents" FROM "doubles_11_6_5" WHERE "surface"='clay' AND "date"='12 july 1992';
```
## Task
Generate a SQL query to answer the following question:
`what is the tournament when the outcome is winner and the opponents is kerry-anne guse corina morariu?`

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

CREATE TABLE "doubles_11_6_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the tournament when the outcome is winner and the opponents is kerry-anne guse corina morariu?`:
```sql
                SELECT "tournament" FROM "doubles_11_6_5" WHERE "outcome"='winner' AND "opponents"='kerry-anne guse corina morariu';
```
## Task
Generate a SQL query to answer the following question:
`what is the score when the partner is alexandra fusai?`

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

CREATE TABLE "doubles_11_6_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score when the partner is alexandra fusai?`:
```sql
                SELECT "score" FROM "doubles_11_6_5" WHERE "partner"='alexandra fusai';
```
## Task
Generate a SQL query to answer the following question:
`what is the surface when the opponents are louise field nathalie herreman?`

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

CREATE TABLE "doubles_11_6_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the surface when the opponents are louise field nathalie herreman?`:
```sql
                SELECT "surface" FROM "doubles_11_6_5" WHERE "opponents"='louise field nathalie herreman';
```
## Task
Generate a SQL query to answer the following question:
`what is the score when the surface is clay and the tournament is san marino?`

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

CREATE TABLE "doubles_11_6_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score when the surface is clay and the tournament is san marino?`:
```sql
                SELECT "score" FROM "doubles_11_6_5" WHERE "surface"='clay' AND "tournament"='san marino';
```
## Task
Generate a SQL query to answer the following question:
`If the manufacturer is Yamaha, and the laps driven were under 32, what's the average of all grid sizes with that criteria?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the manufacturer is Yamaha, and the laps driven were under 32, what's the average of all grid sizes with that criteria?`:
```sql
                SELECT AVG("grid") FROM "moto_gp_classification" WHERE "laps"<32 AND "manufacturer"='yamaha';
```
## Task
Generate a SQL query to answer the following question:
`What's the smallest amount of laps that suzuki ran with a grid value of 8?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest amount of laps that suzuki ran with a grid value of 8?`:
```sql
                SELECT MIN("laps") FROM "moto_gp_classification" WHERE "manufacturer"='suzuki' AND "grid"=8;
```
## Task
Generate a SQL query to answer the following question:
`Who were the opponents when the score of the game was 101-105 and the H/A/N was H?`

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

CREATE TABLE "march" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents when the score of the game was 101-105 and the H/A/N was H?`:
```sql
                SELECT "opponent" FROM "march" WHERE "h_a_n"='h' AND "score"='101-105';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game against the Baltimore Bullets when the H/A/N was H?`

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

CREATE TABLE "march" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game against the Baltimore Bullets when the H/A/N was H?`:
```sql
                SELECT "date" FROM "march" WHERE "opponent"='baltimore bullets' AND "h_a_n"='h';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game against the baltimore bullets on March 14?`

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

CREATE TABLE "march" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game against the baltimore bullets on March 14?`:
```sql
                SELECT "score" FROM "march" WHERE "opponent"='baltimore bullets' AND "date"='march 14';
```
## Task
Generate a SQL query to answer the following question:
`Who were the opponents when the score was 122-135 and the H/A/N was H?`

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

CREATE TABLE "march" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents when the score was 122-135 and the H/A/N was H?`:
```sql
                SELECT "opponent" FROM "march" WHERE "h_a_n"='h' AND "score"='122-135';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game where the record was 22-55?`

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

CREATE TABLE "march" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game where the record was 22-55?`:
```sql
                SELECT "score" FROM "march" WHERE "record"='22-55';
```
## Task
Generate a SQL query to answer the following question:
`What is the average games that were drawn with ERSC Amberg as name and less than 14 points?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average games that were drawn with ERSC Amberg as name and less than 14 points?`:
```sql
                SELECT AVG("drawn") FROM "first_round" WHERE "name"='ersc amberg' AND "points"<14;
```
## Task
Generate a SQL query to answer the following question:
`What is the total position with a drawn of 0 and greater than 22 points and a greater than 14 played?`

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

CREATE TABLE "first_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total position with a drawn of 0 and greater than 22 points and a greater than 14 played?`:
```sql
                SELECT COUNT("position") FROM "first_round" WHERE "drawn"=0 AND "points">22 AND "played">14;
```
## Task
Generate a SQL query to answer the following question:
`Which Issue date(s) has a Weeks at number one of 5, and a Volume:Issue of 61:17-21?`

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

CREATE TABLE "notes" (
  "volume_issue" text,
  "issue_date_s" text,
  "weeks_at_number_one" real,
  "song" text,
  "artist_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Issue date(s) has a Weeks at number one of 5, and a Volume:Issue of 61:17-21?`:
```sql
                SELECT "issue_date_s" FROM "notes" WHERE "weeks_at_number_one"=5 AND "volume_issue"='61:17-21';
```
## Task
Generate a SQL query to answer the following question:
`Which Song has a Weeks at number one larger than 2, and an Issue date(s) of 17 april - 8 may?`

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

CREATE TABLE "notes" (
  "volume_issue" text,
  "issue_date_s" text,
  "weeks_at_number_one" real,
  "song" text,
  "artist_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Song has a Weeks at number one larger than 2, and an Issue date(s) of 17 april - 8 may?`:
```sql
                SELECT "song" FROM "notes" WHERE "weeks_at_number_one">2 AND "issue_date_s"='17 april - 8 may';
```
## Task
Generate a SQL query to answer the following question:
`Which Weeks at number one has a Volume:Issue of 61:22-23?`

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

CREATE TABLE "notes" (
  "volume_issue" text,
  "issue_date_s" text,
  "weeks_at_number_one" real,
  "song" text,
  "artist_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Weeks at number one has a Volume:Issue of 61:22-23?`:
```sql
                SELECT MAX("weeks_at_number_one") FROM "notes" WHERE "volume_issue"='61:22-23';
```
## Task
Generate a SQL query to answer the following question:
`Which Song has an Issue date(s) of 29 may - 26 june?`

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

CREATE TABLE "notes" (
  "volume_issue" text,
  "issue_date_s" text,
  "weeks_at_number_one" real,
  "song" text,
  "artist_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Song has an Issue date(s) of 29 may - 26 june?`:
```sql
                SELECT "song" FROM "notes" WHERE "issue_date_s"='29 may - 26 june';
```
## Task
Generate a SQL query to answer the following question:
`what is the report when the home team is new zealand breakers?`

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

CREATE TABLE "round_1" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the report when the home team is new zealand breakers?`:
```sql
                SELECT "report" FROM "round_1" WHERE "home_team"='new zealand breakers';
```
## Task
Generate a SQL query to answer the following question:
`what is the score when the home team is cairns taipans?`

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

CREATE TABLE "round_1" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score when the home team is cairns taipans?`:
```sql
                SELECT "score" FROM "round_1" WHERE "home_team"='cairns taipans';
```
## Task
Generate a SQL query to answer the following question:
`Who is the away team when the venue is cairns convention centre?`

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

CREATE TABLE "round_1" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the away team when the venue is cairns convention centre?`:
```sql
                SELECT "away_team" FROM "round_1" WHERE "venue"='cairns convention centre';
```
## Task
Generate a SQL query to answer the following question:
`who is the away team when the home team is sydney spirit?`

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

CREATE TABLE "round_1" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the away team when the home team is sydney spirit?`:
```sql
                SELECT "away_team" FROM "round_1" WHERE "home_team"='sydney spirit';
```
## Task
Generate a SQL query to answer the following question:
`what is the box score when the home team is melbourne tigers?`

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

CREATE TABLE "round_1" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the box score when the home team is melbourne tigers?`:
```sql
                SELECT "box_score" FROM "round_1" WHERE "home_team"='melbourne tigers';
```
## Task
Generate a SQL query to answer the following question:
`who is the away team on 21 september?`

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

CREATE TABLE "round_1" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the away team on 21 september?`:
```sql
                SELECT "away_team" FROM "round_1" WHERE "date"='21 september';
```
## Task
Generate a SQL query to answer the following question:
`When Ernie Els placed t2, what was his To par?`

### 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 `When Ernie Els placed t2, what was his To par?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "place"='t2' AND "player"='ernie els';
```
## Task
Generate a SQL query to answer the following question:
`Where did Jay Haas place?`

### 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 `Where did Jay Haas place?`:
```sql
                SELECT "place" FROM "third_round" WHERE "player"='jay haas';
```
## Task
Generate a SQL query to answer the following question:
`Where did Jim Furyk place?`

### 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 `Where did Jim Furyk place?`:
```sql
                SELECT "place" FROM "third_round" WHERE "player"='jim furyk';
```
## Task
Generate a SQL query to answer the following question:
`What was Jim Furyk's score?`

### 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 `What was Jim Furyk's score?`:
```sql
                SELECT "score" FROM "third_round" WHERE "player"='jim furyk';
```