cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many years had a 100 m hurdles event at the world championships in Osaka, Japan?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years had a 100 m hurdles event at the world championships in Osaka, Japan?`:
```sql
                SELECT SUM("year") FROM "achievements" WHERE "event"='100 m hurdles' AND "competition"='world championships' AND "venue"='osaka, japan';
```
## Task
Generate a SQL query to answer the following question:
`What was the position of the event held in Valencia, Spain?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position of the event held in Valencia, Spain?`:
```sql
                SELECT "position" FROM "achievements" WHERE "venue"='valencia, spain';
```
## Task
Generate a SQL query to answer the following question:
`What was the earliest year that an event held in Berlin, Germany had a 100 m hurdles event?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest year that an event held in Berlin, Germany had a 100 m hurdles event?`:
```sql
                SELECT MIN("year") FROM "achievements" WHERE "venue"='berlin, germany' AND "event"='100 m hurdles';
```
## Task
Generate a SQL query to answer the following question:
`What even was held in Valencia, Spain?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What even was held in Valencia, Spain?`:
```sql
                SELECT "event" FROM "achievements" WHERE "venue"='valencia, spain';
```
## Task
Generate a SQL query to answer the following question:
`What is the time of the tim trophy competition where juventus was the opponent?`

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

CREATE TABLE "pre_season_and_friendlies" (
  "date" text,
  "time" text,
  "competition" text,
  "opponent" text,
  "ground" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time of the tim trophy competition where juventus was the opponent?`:
```sql
                SELECT "time" FROM "pre_season_and_friendlies" WHERE "competition"='tim trophy' AND "opponent"='juventus';
```
## Task
Generate a SQL query to answer the following question:
`What is the competition on 15 August 2008?`

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

CREATE TABLE "pre_season_and_friendlies" (
  "date" text,
  "time" text,
  "competition" text,
  "opponent" text,
  "ground" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the competition on 15 August 2008?`:
```sql
                SELECT "competition" FROM "pre_season_and_friendlies" WHERE "date"='15 august 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the friendly match competition on 24 July 2008?`

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

CREATE TABLE "pre_season_and_friendlies" (
  "date" text,
  "time" text,
  "competition" text,
  "opponent" text,
  "ground" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the friendly match competition on 24 July 2008?`:
```sql
                SELECT "score" FROM "pre_season_and_friendlies" WHERE "competition"='friendly match' AND "date"='24 july 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the ground of the tim trophy competition, which had a time of 23:00 cet?`

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

CREATE TABLE "pre_season_and_friendlies" (
  "date" text,
  "time" text,
  "competition" text,
  "opponent" text,
  "ground" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ground of the tim trophy competition, which had a time of 23:00 cet?`:
```sql
                SELECT "ground" FROM "pre_season_and_friendlies" WHERE "competition"='tim trophy' AND "time"='23:00 cet';
```
## Task
Generate a SQL query to answer the following question:
`What competition is at 23:00 cet?`

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

CREATE TABLE "pre_season_and_friendlies" (
  "date" text,
  "time" text,
  "competition" text,
  "opponent" text,
  "ground" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition is at 23:00 cet?`:
```sql
                SELECT "competition" FROM "pre_season_and_friendlies" WHERE "time"='23:00 cet';
```
## Task
Generate a SQL query to answer the following question:
`What is the outcome on March 20, 1994?`

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

CREATE TABLE "singles_14_12_2" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the outcome on March 20, 1994?`:
```sql
                SELECT "outcome" FROM "singles_14_12_2" WHERE "date"='march 20, 1994';
```
## Task
Generate a SQL query to answer the following question:
`What tournament had a hard surface on February 25, 1996?`

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

CREATE TABLE "singles_14_12_2" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament had a hard surface on February 25, 1996?`:
```sql
                SELECT "tournament" FROM "singles_14_12_2" WHERE "surface"='hard' AND "date"='february 25, 1996';
```
## Task
Generate a SQL query to answer the following question:
`What is the score in the final with a hard surface and is against Hiromi Nagano?`

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

CREATE TABLE "singles_14_12_2" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score in the final with a hard surface and is against Hiromi Nagano?`:
```sql
                SELECT "score_in_the_final" FROM "singles_14_12_2" WHERE "surface"='hard' AND "opponent_in_the_final"='hiromi nagano';
```
## Task
Generate a SQL query to answer the following question:
`What is the total outcome for the clay surface on April 21, 1996?`

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

CREATE TABLE "singles_14_12_2" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total outcome for the clay surface on April 21, 1996?`:
```sql
                SELECT "outcome" FROM "singles_14_12_2" WHERE "surface"='clay' AND "date"='april 21, 1996';
```
## Task
Generate a SQL query to answer the following question:
`What aircraft is located at S of Avion?`

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

CREATE TABLE "aerial_victories" (
  "date" text,
  "unit" real,
  "aircraft" text,
  "opponent" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What aircraft is located at S of Avion?`:
```sql
                SELECT "aircraft" FROM "aerial_victories" WHERE "location"='s of avion';
```
## Task
Generate a SQL query to answer the following question:
`What is the Unit for the Aircraft F.e.2b, located in Logeast?`

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

CREATE TABLE "aerial_victories" (
  "date" text,
  "unit" real,
  "aircraft" text,
  "opponent" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Unit for the Aircraft F.e.2b, located in Logeast?`:
```sql
                SELECT SUM("unit") FROM "aerial_victories" WHERE "aircraft"='f.e.2b' AND "location"='logeast';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the place that has a census ranking of 1,229 of 5,008?`

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

CREATE TABLE "westmorland_county_new_brunswick" (
  "official_name" text,
  "status" text,
  "area_km_2" real,
  "population" real,
  "census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the place that has a census ranking of 1,229 of 5,008?`:
```sql
                SELECT "official_name" FROM "westmorland_county_new_brunswick" WHERE "census_ranking"='1,229 of 5,008';
```
## Task
Generate a SQL query to answer the following question:
`How large, in square kilometers, is Sackville?`

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

CREATE TABLE "westmorland_county_new_brunswick" (
  "official_name" text,
  "status" text,
  "area_km_2" real,
  "population" real,
  "census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `How large, in square kilometers, is Sackville?`:
```sql
                SELECT "area_km_2" FROM "westmorland_county_new_brunswick" WHERE "official_name"='sackville';
```
## Task
Generate a SQL query to answer the following question:
`What is the name(s) of the place(s) with a population of less than 1,429?`

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

CREATE TABLE "westmorland_county_new_brunswick" (
  "official_name" text,
  "status" text,
  "area_km_2" real,
  "population" real,
  "census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name(s) of the place(s) with a population of less than 1,429?`:
```sql
                SELECT "official_name" FROM "westmorland_county_new_brunswick" WHERE "population"<'1,429';
```
## Task
Generate a SQL query to answer the following question:
`What score has 33 as the points?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text,
  "arena" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What score has 33 as the points?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "points"=33;
```
## Task
Generate a SQL query to answer the following question:
`What date has joe louis arena as the arena?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text,
  "arena" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date has joe louis arena as the arena?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "arena"='joe louis arena';
```
## Task
Generate a SQL query to answer the following question:
`What competition was played on 2 June 1992?`

### 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 `What competition was played on 2 June 1992?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "date"='2 june 1992';
```
## Task
Generate a SQL query to answer the following question:
`What date was a friendly match played that ended in a 3-0 score?`

### 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 `What date was a friendly match played that ended in a 3-0 score?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "result"='3-0' AND "competition"='friendly match';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the match played on 5 September 2001?`

### 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 `What was the score of the match played on 5 September 2001?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='5 september 2001';
```
## Task
Generate a SQL query to answer the following question:
`In what stadium was the friendly match on 2 June 1992 played in?`

### 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 `In what stadium was the friendly match on 2 June 1992 played in?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "competition"='friendly match' AND "date"='2 june 1992';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the 1998 FIFA World Cup qualification competition?`

### 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 `What was the score of the 1998 FIFA World Cup qualification competition?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "competition"='1998 fifa world cup qualification';
```
## Task
Generate a SQL query to answer the following question:
`Name the Date has a Competition of welsh rugby union challenge trophy and a Result of 34-34? Question 1`

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

CREATE TABLE "club_representative_appearances" (
  "date" text,
  "nationality_opponent" text,
  "ground" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Date has a Competition of welsh rugby union challenge trophy and a Result of 34-34? Question 1`:
```sql
                SELECT "date" FROM "club_representative_appearances" WHERE "competition"='welsh rugby union challenge trophy' AND "result"='34-34';
```
## Task
Generate a SQL query to answer the following question:
`Name the Result of new zealand Nationality / Opponent?`

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

CREATE TABLE "club_representative_appearances" (
  "date" text,
  "nationality_opponent" text,
  "ground" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Result of new zealand Nationality / Opponent?`:
```sql
                SELECT "result" FROM "club_representative_appearances" WHERE "nationality_opponent"='new zealand';
```
## Task
Generate a SQL query to answer the following question:
`Name Nationality / Opponent on 10 january 1998?`

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

CREATE TABLE "club_representative_appearances" (
  "date" text,
  "nationality_opponent" text,
  "ground" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name Nationality / Opponent on 10 january 1998?`:
```sql
                SELECT "nationality_opponent" FROM "club_representative_appearances" WHERE "date"='10 january 1998';
```
## Task
Generate a SQL query to answer the following question:
`Name The Ground on 18 january 1998?`

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

CREATE TABLE "club_representative_appearances" (
  "date" text,
  "nationality_opponent" text,
  "ground" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name The Ground on 18 january 1998?`:
```sql
                SELECT "ground" FROM "club_representative_appearances" WHERE "date"='18 january 1998';
```
## Task
Generate a SQL query to answer the following question:
`Name the Nationality / Opponent of the Competition of welsh rugby union challenge trophy and a Result of 38-29?`

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

CREATE TABLE "club_representative_appearances" (
  "date" text,
  "nationality_opponent" text,
  "ground" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Nationality / Opponent of the Competition of welsh rugby union challenge trophy and a Result of 38-29?`:
```sql
                SELECT "nationality_opponent" FROM "club_representative_appearances" WHERE "competition"='welsh rugby union challenge trophy' AND "result"='38-29';
```
## Task
Generate a SQL query to answer the following question:
`Name the Nationality / Opponent of rosario?`

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

CREATE TABLE "club_representative_appearances" (
  "date" text,
  "nationality_opponent" text,
  "ground" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Nationality / Opponent of rosario?`:
```sql
                SELECT "competition" FROM "club_representative_appearances" WHERE "nationality_opponent"='rosario';
```
## Task
Generate a SQL query to answer the following question:
`What team 1 has a team 2 of universidad nacional?`

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

CREATE TABLE "matches" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team 1 has a team 2 of universidad nacional?`:
```sql
                SELECT "team_1" FROM "matches" WHERE "team_2"='universidad nacional';
```
## Task
Generate a SQL query to answer the following question:
`What team 2 has a team 1 of harbour view?`

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

CREATE TABLE "matches" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team 2 has a team 1 of harbour view?`:
```sql
                SELECT "team_2" FROM "matches" WHERE "team_1"='harbour view';
```
## Task
Generate a SQL query to answer the following question:
`What's the 2nd leg for team 2 san francisco?`

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

CREATE TABLE "matches" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2nd leg for team 2 san francisco?`:
```sql
                SELECT "2nd_leg" FROM "matches" WHERE "team_2"='san francisco';
```
## Task
Generate a SQL query to answer the following question:
`What's the 1st leg of team 1 alajuelense?`

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

CREATE TABLE "matches" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 1st leg of team 1 alajuelense?`:
```sql
                SELECT "1st_leg" FROM "matches" WHERE "team_1"='alajuelense';
```
## Task
Generate a SQL query to answer the following question:
`What was the format for catalog 660-51-015?`

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

CREATE TABLE "release_history" (
  "region" text,
  "year" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the format for catalog 660-51-015?`:
```sql
                SELECT "format" FROM "release_history" WHERE "catalog"='660-51-015';
```
## Task
Generate a SQL query to answer the following question:
`Which region had the year May 1974?`

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

CREATE TABLE "release_history" (
  "region" text,
  "year" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which region had the year May 1974?`:
```sql
                SELECT "region" FROM "release_history" WHERE "year"='may 1974';
```
## Task
Generate a SQL query to answer the following question:
`Which region had a year March 10, 1998?`

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

CREATE TABLE "release_history" (
  "region" text,
  "year" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which region had a year March 10, 1998?`:
```sql
                SELECT "region" FROM "release_history" WHERE "year"='march 10, 1998';
```
## Task
Generate a SQL query to answer the following question:
`What is the first party for Lord John Hay earlier than 1857?`

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

CREATE TABLE "m_ps_1707_1868" (
  "year" real,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first party for Lord John Hay earlier than 1857?`:
```sql
                SELECT "first_party" FROM "m_ps_1707_1868" WHERE "year"<1857 AND "first_member"='lord john hay';
```
## Task
Generate a SQL query to answer the following question:
`Who is the second member more recently than 1790 when John Williams is the first member?`

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

CREATE TABLE "m_ps_1707_1868" (
  "year" real,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the second member more recently than 1790 when John Williams is the first member?`:
```sql
                SELECT "second_member" FROM "m_ps_1707_1868" WHERE "year">1790 AND "first_member"='john williams';
```
## Task
Generate a SQL query to answer the following question:
`Who is the second member ewarlier than 1804 when Tory Henry Isherwood is the first member?`

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

CREATE TABLE "m_ps_1707_1868" (
  "year" real,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the second member ewarlier than 1804 when Tory Henry Isherwood is the first member?`:
```sql
                SELECT "second_member" FROM "m_ps_1707_1868" WHERE "first_party"='tory' AND "year"<1804 AND "first_member"='henry isherwood';
```
## Task
Generate a SQL query to answer the following question:
`Who is the second member when RT Hon. Edward Stanley is the first member?`

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

CREATE TABLE "m_ps_1707_1868" (
  "year" real,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the second member when RT Hon. Edward Stanley is the first member?`:
```sql
                SELECT "second_member" FROM "m_ps_1707_1868" WHERE "first_member"='rt hon. edward stanley';
```
## Task
Generate a SQL query to answer the following question:
`What is the second party where the first party is Tory and the year is 1820?`

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

CREATE TABLE "m_ps_1707_1868" (
  "year" real,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the second party where the first party is Tory and the year is 1820?`:
```sql
                SELECT "second_party" FROM "m_ps_1707_1868" WHERE "first_party"='tory' AND "year"=1820;
```
## Task
Generate a SQL query to answer the following question:
`Who is the player who won in 1993?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player who won in 1993?`:
```sql
                SELECT "player" FROM "made_the_cut" WHERE "year_s_won"='1993';
```
## Task
Generate a SQL query to answer the following question:
`What years did the player with a t71 finish win?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years did the player with a t71 finish win?`:
```sql
                SELECT "year_s_won" FROM "made_the_cut" WHERE "finish"='t71';
```
## Task
Generate a SQL query to answer the following question:
`What year did player payne stewart win?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did player payne stewart win?`:
```sql
                SELECT "year_s_won" FROM "made_the_cut" WHERE "player"='payne stewart';
```
## Task
Generate a SQL query to answer the following question:
`What year did the player with a t3 finish win?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the player with a t3 finish win?`:
```sql
                SELECT "year_s_won" FROM "made_the_cut" WHERE "finish"='t3';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest total of the player with a t41 finish?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest total of the player with a t41 finish?`:
```sql
                SELECT MIN("total") FROM "made_the_cut" WHERE "finish"='t41';
```
## Task
Generate a SQL query to answer the following question:
`In what Battle was Bulgarian Commander of Gavril Radomir?`

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

CREATE TABLE "medieval_bulgarian_army" (
  "battle" text,
  "date" text,
  "bulgarian_commander" text,
  "byzantine_commander" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Battle was Bulgarian Commander of Gavril Radomir?`:
```sql
                SELECT "battle" FROM "medieval_bulgarian_army" WHERE "bulgarian_commander"='gavril radomir';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the Bulgarian Victory at the Battle of Arcadiopolis?`

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

CREATE TABLE "medieval_bulgarian_army" (
  "battle" text,
  "date" text,
  "bulgarian_commander" text,
  "byzantine_commander" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the Bulgarian Victory at the Battle of Arcadiopolis?`:
```sql
                SELECT "date" FROM "medieval_bulgarian_army" WHERE "result"='bulgarian victory' AND "battle"='battle of arcadiopolis';
```
## Task
Generate a SQL query to answer the following question:
`What is the Bulgarian Commander in Autumn 1040 at the Battle of Thessalonica?`

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

CREATE TABLE "medieval_bulgarian_army" (
  "battle" text,
  "date" text,
  "bulgarian_commander" text,
  "byzantine_commander" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Bulgarian Commander in Autumn 1040 at the Battle of Thessalonica?`:
```sql
                SELECT "bulgarian_commander" FROM "medieval_bulgarian_army" WHERE "battle"='battle of thessalonica' AND "date"='autumn 1040';
```
## Task
Generate a SQL query to answer the following question:
`What is the Byzantine Commander with a Bulgarian Victory at the Siege of Lovech?`

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

CREATE TABLE "medieval_bulgarian_army" (
  "battle" text,
  "date" text,
  "bulgarian_commander" text,
  "byzantine_commander" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Byzantine Commander with a Bulgarian Victory at the Siege of Lovech?`:
```sql
                SELECT "byzantine_commander" FROM "medieval_bulgarian_army" WHERE "result"='bulgarian victory' AND "battle"='siege of lovech';
```
## Task
Generate a SQL query to answer the following question:
`What is the Result of the Battle of Marcellae in 756?`

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

CREATE TABLE "medieval_bulgarian_army" (
  "battle" text,
  "date" text,
  "bulgarian_commander" text,
  "byzantine_commander" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result of the Battle of Marcellae in 756?`:
```sql
                SELECT "result" FROM "medieval_bulgarian_army" WHERE "battle"='battle of marcellae' AND "date"='756';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of Gavril Radomir's Bulgarian Victory?`

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

CREATE TABLE "medieval_bulgarian_army" (
  "battle" text,
  "date" text,
  "bulgarian_commander" text,
  "byzantine_commander" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of Gavril Radomir's Bulgarian Victory?`:
```sql
                SELECT "date" FROM "medieval_bulgarian_army" WHERE "result"='bulgarian victory' AND "bulgarian_commander"='gavril radomir';
```
## Task
Generate a SQL query to answer the following question:
`What is 3 Season, when 1 Season is "2 959 699"?`

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

CREATE TABLE "rating_figures" (
  "episode" text,
  "1_season" text,
  "2_season" text,
  "3_season" text,
  "4_season" text,
  "5_season" text,
  "6_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 3 Season, when 1 Season is "2 959 699"?`:
```sql
                SELECT "3_season" FROM "rating_figures" WHERE "1_season"='2 959 699';
```
## Task
Generate a SQL query to answer the following question:
`What is 1 Season, when 4 Season is "2 101 043 (13 May 2009)"?`

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

CREATE TABLE "rating_figures" (
  "episode" text,
  "1_season" text,
  "2_season" text,
  "3_season" text,
  "4_season" text,
  "5_season" text,
  "6_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1 Season, when 4 Season is "2 101 043 (13 May 2009)"?`:
```sql
                SELECT "1_season" FROM "rating_figures" WHERE "4_season"='2 101 043 (13 may 2009)';
```
## Task
Generate a SQL query to answer the following question:
`What is 5 Season, when 2 Season is "3 168 673 (2 April 2008)"?`

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

CREATE TABLE "rating_figures" (
  "episode" text,
  "1_season" text,
  "2_season" text,
  "3_season" text,
  "4_season" text,
  "5_season" text,
  "6_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 5 Season, when 2 Season is "3 168 673 (2 April 2008)"?`:
```sql
                SELECT "5_season" FROM "rating_figures" WHERE "2_season"='3 168 673 (2 april 2008)';
```
## Task
Generate a SQL query to answer the following question:
`What is 4 Season, when 2 Season is "3 168 673 (2 April 2008)"?`

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

CREATE TABLE "rating_figures" (
  "episode" text,
  "1_season" text,
  "2_season" text,
  "3_season" text,
  "4_season" text,
  "5_season" text,
  "6_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 4 Season, when 2 Season is "3 168 673 (2 April 2008)"?`:
```sql
                SELECT "4_season" FROM "rating_figures" WHERE "2_season"='3 168 673 (2 april 2008)';
```
## Task
Generate a SQL query to answer the following question:
`What is 3 Season, when 4 Season is "2 628 383 (3 June 2009)"?`

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

CREATE TABLE "rating_figures" (
  "episode" text,
  "1_season" text,
  "2_season" text,
  "3_season" text,
  "4_season" text,
  "5_season" text,
  "6_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 3 Season, when 4 Season is "2 628 383 (3 June 2009)"?`:
```sql
                SELECT "3_season" FROM "rating_figures" WHERE "4_season"='2 628 383 (3 june 2009)';
```
## Task
Generate a SQL query to answer the following question:
`What is 1st Season, when 4 Season is "3 273 440 (17 March 2009)"?`

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

CREATE TABLE "rating_figures" (
  "episode" text,
  "1_season" text,
  "2_season" text,
  "3_season" text,
  "4_season" text,
  "5_season" text,
  "6_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1st Season, when 4 Season is "3 273 440 (17 March 2009)"?`:
```sql
                SELECT "1_season" FROM "rating_figures" WHERE "4_season"='3 273 440 (17 march 2009)';
```
## Task
Generate a SQL query to answer the following question:
`What was the wind at New York City when the rank was smaller than 6?`

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

CREATE TABLE "all_time_top_25_outdoors" (
  "rank" real,
  "res" text,
  "wind" text,
  "athlete" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the wind at New York City when the rank was smaller than 6?`:
```sql
                SELECT "wind" FROM "all_time_top_25_outdoors" WHERE "rank"<6 AND "location"='new york city';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest rink for Kingston?`

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

CREATE TABLE "all_time_top_25_outdoors" (
  "rank" real,
  "res" text,
  "wind" text,
  "athlete" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest rink for Kingston?`:
```sql
                SELECT MAX("rank") FROM "all_time_top_25_outdoors" WHERE "location"='kingston';
```
## Task
Generate a SQL query to answer the following question:
`What is the average first elected for the district South Carolina 2?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average first elected for the district South Carolina 2?`:
```sql
                SELECT AVG("first_elected") FROM "south_carolina" WHERE "district"='south carolina 2';
```
## Task
Generate a SQL query to answer the following question:
`Who was the first elected for the republican party?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the first elected for the republican party?`:
```sql
                SELECT "first_elected" FROM "south_carolina" WHERE "party"='republican';
```
## Task
Generate a SQL query to answer the following question:
`What party has the South Carolina 2 district?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party has the South Carolina 2 district?`:
```sql
                SELECT "party" FROM "south_carolina" WHERE "district"='south carolina 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the type for Cassano?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type for Cassano?`:
```sql
                SELECT "type" FROM "in" WHERE "name"='cassano';
```
## Task
Generate a SQL query to answer the following question:
`What nationality is Diogo?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nationality is Diogo?`:
```sql
                SELECT "nat" FROM "in" WHERE "name"='diogo';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player with a winter transfer window moving from Roma?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player with a winter transfer window moving from Roma?`:
```sql
                SELECT "name" FROM "in" WHERE "transfer_window"='winter' AND "moving_from"='roma';
```
## Task
Generate a SQL query to answer the following question:
`What pressure is Ken?`

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

CREATE TABLE "season_effects" (
  "name" text,
  "dates_active" text,
  "windspeeds" text,
  "pressure" text,
  "deaths" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pressure is Ken?`:
```sql
                SELECT "pressure" FROM "season_effects" WHERE "name"='ken';
```
## Task
Generate a SQL query to answer the following question:
`In which round was Barbara Hawcroft the loser?`

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

CREATE TABLE "women" (
  "year" real,
  "grand_slam" text,
  "round" text,
  "winner" text,
  "loser" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which round was Barbara Hawcroft the loser?`:
```sql
                SELECT "round" FROM "women" WHERE "loser"='barbara hawcroft';
```
## Task
Generate a SQL query to answer the following question:
`In which year is Nerida Gregory listed as the loser?`

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

CREATE TABLE "women" (
  "year" real,
  "grand_slam" text,
  "round" text,
  "winner" text,
  "loser" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which year is Nerida Gregory listed as the loser?`:
```sql
                SELECT AVG("year") FROM "women" WHERE "loser"='nerida gregory';
```
## Task
Generate a SQL query to answer the following question:
`In which year did Misaki Doi lose the Australian Open Grand Slam?`

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

CREATE TABLE "women" (
  "year" real,
  "grand_slam" text,
  "round" text,
  "winner" text,
  "loser" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which year did Misaki Doi lose the Australian Open Grand Slam?`:
```sql
                SELECT SUM("year") FROM "women" WHERE "grand_slam"='australian open' AND "loser"='misaki doi';
```
## Task
Generate a SQL query to answer the following question:
`Which Polish Cup has a Puchat Ligi larger than 0?`

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

CREATE TABLE "top_scorers" (
  "player" text,
  "position" text,
  "ekstraklasa" real,
  "polish_cup" real,
  "puchat_ligi" real,
  "uefa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Polish Cup has a Puchat Ligi larger than 0?`:
```sql
                SELECT AVG("polish_cup") FROM "top_scorers" WHERE "puchat_ligi">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a Total of 3, and an Ekstraklasa smaller than 3, and a UEFA Cup of 2?`

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

CREATE TABLE "top_scorers" (
  "player" text,
  "position" text,
  "ekstraklasa" real,
  "polish_cup" real,
  "puchat_ligi" real,
  "uefa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Total of 3, and an Ekstraklasa smaller than 3, and a UEFA Cup of 2?`:
```sql
                SELECT "player" FROM "top_scorers" WHERE "total"=3 AND "ekstraklasa"<3 AND "uefa_cup"=2;
```
## Task
Generate a SQL query to answer the following question:
`Which Puchat Ligi has a UEFA Cup smaller than 2, and a Player of takesure chinyama?`

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

CREATE TABLE "top_scorers" (
  "player" text,
  "position" text,
  "ekstraklasa" real,
  "polish_cup" real,
  "puchat_ligi" real,
  "uefa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Puchat Ligi has a UEFA Cup smaller than 2, and a Player of takesure chinyama?`:
```sql
                SELECT MIN("puchat_ligi") FROM "top_scorers" WHERE "uefa_cup"<2 AND "player"='takesure chinyama';
```
## Task
Generate a SQL query to answer the following question:
`How much Ekstraklasa has a Total smaller than 3?`

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

CREATE TABLE "top_scorers" (
  "player" text,
  "position" text,
  "ekstraklasa" real,
  "polish_cup" real,
  "puchat_ligi" real,
  "uefa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Ekstraklasa has a Total smaller than 3?`:
```sql
                SELECT SUM("ekstraklasa") FROM "top_scorers" WHERE "total"<3;
```
## Task
Generate a SQL query to answer the following question:
`How much Puchat Ligi has a Total smaller than 5, and an Ekstraklasa larger than 1?`

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

CREATE TABLE "top_scorers" (
  "player" text,
  "position" text,
  "ekstraklasa" real,
  "polish_cup" real,
  "puchat_ligi" real,
  "uefa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Puchat Ligi has a Total smaller than 5, and an Ekstraklasa larger than 1?`:
```sql
                SELECT SUM("puchat_ligi") FROM "top_scorers" WHERE "total"<5 AND "ekstraklasa">1;
```
## Task
Generate a SQL query to answer the following question:
`Which player has a to par greater than 11, with a total less than 155?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has a to par greater than 11, with a total less than 155?`:
```sql
                SELECT "player" FROM "missed_the_cut" WHERE "to_par">11 AND "total"<155;
```
## Task
Generate a SQL query to answer the following question:
`What country has a to par less than 13, with wayne grady as the player?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a to par less than 13, with wayne grady as the player?`:
```sql
                SELECT "country" FROM "missed_the_cut" WHERE "to_par"<13 AND "player"='wayne grady';
```