cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Name had the Source, World Bank, and a Rank smaller than 110, Out of a number smaller than 199?`

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

CREATE TABLE "rankings" (
  "name" text,
  "rank" real,
  "out_of" real,
  "source" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name had the Source, World Bank, and a Rank smaller than 110, Out of a number smaller than 199?`:
```sql
                SELECT "name" FROM "rankings" WHERE "source"='world bank' AND "rank"<110 AND "out_of"<199;
```
## Task
Generate a SQL query to answer the following question:
`Which Team has Manzoor Elahi as Coach and Taufeeq Umar as Captain?`

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

CREATE TABLE "league" (
  "team" text,
  "city" text,
  "inaugural_season" text,
  "final_season" text,
  "captain" text,
  "coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team has Manzoor Elahi as Coach and Taufeeq Umar as Captain?`:
```sql
                SELECT "team" FROM "league" WHERE "coach"='manzoor elahi' AND "captain"='taufeeq umar';
```
## Task
Generate a SQL query to answer the following question:
`Which City has the Bahawalpur Stags Team?`

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

CREATE TABLE "league" (
  "team" text,
  "city" text,
  "inaugural_season" text,
  "final_season" text,
  "captain" text,
  "coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has the Bahawalpur Stags Team?`:
```sql
                SELECT "city" FROM "league" WHERE "team"='bahawalpur stags';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent of the December 18, 1994 game?`

### 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 `Who is the opponent of the December 18, 1994 game?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='december 18, 1994';
```
## Task
Generate a SQL query to answer the following question:
`What is the Artist with a Date that is june 1979?`

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

CREATE TABLE "1970s" (
  "spoofed_title" text,
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Artist with a Date that is june 1979?`:
```sql
                SELECT "artist" FROM "1970s" WHERE "date"='june 1979';
```
## Task
Generate a SQL query to answer the following question:
`What is the Writer with an Actual Title that is mork & mindy?`

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

CREATE TABLE "1970s" (
  "spoofed_title" text,
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Writer with an Actual Title that is mork & mindy?`:
```sql
                SELECT "writer" FROM "1970s" WHERE "actual_title"='mork & mindy';
```
## Task
Generate a SQL query to answer the following question:
`What is the Writer with a Date that is january 1975?`

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

CREATE TABLE "1970s" (
  "spoofed_title" text,
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Writer with a Date that is january 1975?`:
```sql
                SELECT "writer" FROM "1970s" WHERE "date"='january 1975';
```
## Task
Generate a SQL query to answer the following question:
`What was the 2010 census when the 2011 estimate was 410?`

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

CREATE TABLE "cities_and_towns" (
  "city" text,
  "2011_estimate" real,
  "2010_census" real,
  "2000_census" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 2010 census when the 2011 estimate was 410?`:
```sql
                SELECT SUM("2010_census") FROM "cities_and_towns" WHERE "2011_estimate"=410;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest played amount when there are 2 draws and an against of more than 73?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest played amount when there are 2 draws and an against of more than 73?`:
```sql
                SELECT MIN("played") FROM "campeonato_paulista" WHERE "drawn"=2 AND "against">73;
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest season with a premiere of february5,2007?`

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

CREATE TABLE "series_overview" (
  "season" real,
  "episodes" real,
  "premiere" text,
  "finale" text,
  "dvd_release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest season with a premiere of february5,2007?`:
```sql
                SELECT MIN("episodes") FROM "series_overview" WHERE "premiere"='february5,2007';
```
## Task
Generate a SQL query to answer the following question:
`Which premiere had more than 15 episodes?`

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

CREATE TABLE "series_overview" (
  "season" real,
  "episodes" real,
  "premiere" text,
  "finale" text,
  "dvd_release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which premiere had more than 15 episodes?`:
```sql
                SELECT "premiere" FROM "series_overview" WHERE "episodes">15;
```
## Task
Generate a SQL query to answer the following question:
`Who had the highest rebounds of the game on April 7?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the highest rebounds of the game on April 7?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "date"='april 7';
```
## Task
Generate a SQL query to answer the following question:
`What is Result, when Date is 2003?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "method" text,
  "date" text,
  "round" real,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Result, when Date is 2003?`:
```sql
                SELECT "result" FROM "mixed_martial_arts_record" WHERE "date"='2003';
```
## Task
Generate a SQL query to answer the following question:
`What is Record, when Date is 1996?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "method" text,
  "date" text,
  "round" real,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Record, when Date is 1996?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "date"='1996';
```
## Task
Generate a SQL query to answer the following question:
`What is Notes, when Date is 2007?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "method" text,
  "date" text,
  "round" real,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Notes, when Date is 2007?`:
```sql
                SELECT "notes" FROM "mixed_martial_arts_record" WHERE "date"='2007';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Round, when the Opponent is Junior Pitbull?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "method" text,
  "date" text,
  "round" real,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Round, when the Opponent is Junior Pitbull?`:
```sql
                SELECT MAX("round") FROM "mixed_martial_arts_record" WHERE "opponent"='junior pitbull';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Result is Loss, and when Method is Submission (Armbar)?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "method" text,
  "date" text,
  "round" real,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Result is Loss, and when Method is Submission (Armbar)?`:
```sql
                SELECT "date" FROM "mixed_martial_arts_record" WHERE "result"='loss' AND "method"='submission (armbar)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Coombe Road time with a Selsdon evening peak?`

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

CREATE TABLE "1980_timetable_an_illustrative_example" (
  "sanderstead" text,
  "selsdon" text,
  "coombe_road" text,
  "bingham_road" text,
  "woodside" text,
  "elmers_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Coombe Road time with a Selsdon evening peak?`:
```sql
                SELECT "coombe_road" FROM "1980_timetable_an_illustrative_example" WHERE "selsdon"='evening peak';
```
## Task
Generate a SQL query to answer the following question:
`What is the Woodside for the 16:19 Coombe Road?`

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

CREATE TABLE "1980_timetable_an_illustrative_example" (
  "sanderstead" text,
  "selsdon" text,
  "coombe_road" text,
  "bingham_road" text,
  "woodside" text,
  "elmers_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Woodside for the 16:19 Coombe Road?`:
```sql
                SELECT "woodside" FROM "1980_timetable_an_illustrative_example" WHERE "coombe_road"='16:19';
```
## Task
Generate a SQL query to answer the following question:
`What is the Elmers End with a 09:54 Bingham Road?`

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

CREATE TABLE "1980_timetable_an_illustrative_example" (
  "sanderstead" text,
  "selsdon" text,
  "coombe_road" text,
  "bingham_road" text,
  "woodside" text,
  "elmers_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Elmers End with a 09:54 Bingham Road?`:
```sql
                SELECT "elmers_end" FROM "1980_timetable_an_illustrative_example" WHERE "bingham_road"='09:54';
```
## Task
Generate a SQL query to answer the following question:
`What is the Coombe Road with a Woodside time of 07:23?`

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

CREATE TABLE "1980_timetable_an_illustrative_example" (
  "sanderstead" text,
  "selsdon" text,
  "coombe_road" text,
  "bingham_road" text,
  "woodside" text,
  "elmers_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Coombe Road with a Woodside time of 07:23?`:
```sql
                SELECT "coombe_road" FROM "1980_timetable_an_illustrative_example" WHERE "woodside"='07:23';
```
## Task
Generate a SQL query to answer the following question:
`What is the Elmers End with a 17:57 Selsdon time?`

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

CREATE TABLE "1980_timetable_an_illustrative_example" (
  "sanderstead" text,
  "selsdon" text,
  "coombe_road" text,
  "bingham_road" text,
  "woodside" text,
  "elmers_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Elmers End with a 17:57 Selsdon time?`:
```sql
                SELECT "elmers_end" FROM "1980_timetable_an_illustrative_example" WHERE "selsdon"='17:57';
```
## Task
Generate a SQL query to answer the following question:
`What is the Selsdon for the 17:19 Coombe Road?`

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

CREATE TABLE "1980_timetable_an_illustrative_example" (
  "sanderstead" text,
  "selsdon" text,
  "coombe_road" text,
  "bingham_road" text,
  "woodside" text,
  "elmers_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Selsdon for the 17:19 Coombe Road?`:
```sql
                SELECT "selsdon" FROM "1980_timetable_an_illustrative_example" WHERE "coombe_road"='17:19';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest win for losses less than 2?`

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

CREATE TABLE "2007_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest win for losses less than 2?`:
```sql
                SELECT MAX("wins") FROM "2007_ladder" WHERE "losses"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Byes for the losses of 15, and before 1874?`

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

CREATE TABLE "2007_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Byes for the losses of 15, and before 1874?`:
```sql
                SELECT AVG("byes") FROM "2007_ladder" WHERE "losses"=15 AND "against"<1874;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of against in Ballarat FL of East Point and wins less than 16?`

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

CREATE TABLE "2007_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of against in Ballarat FL of East Point and wins less than 16?`:
```sql
                SELECT SUM("against") FROM "2007_ladder" WHERE "ballarat_fl"='east point' AND "wins"<16;
```
## Task
Generate a SQL query to answer the following question:
`What is the School with a Pick that is 24?`

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

CREATE TABLE "first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the School with a Pick that is 24?`:
```sql
                SELECT "school" FROM "first_round_selections" WHERE "pick"=24;
```
## Task
Generate a SQL query to answer the following question:
`What is the Team with a Player that is david cooper?`

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

CREATE TABLE "first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Team with a Player that is david cooper?`:
```sql
                SELECT "team" FROM "first_round_selections" WHERE "player"='david cooper';
```
## Task
Generate a SQL query to answer the following question:
`How many visitors in 2007 were there for ski jumping hill?`

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

CREATE TABLE "most_visited_tourist_attractions" (
  "rank" real,
  "cultural_attraction" text,
  "type" text,
  "location" text,
  "visitors_2007" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many visitors in 2007 were there for ski jumping hill?`:
```sql
                SELECT SUM("visitors_2007") FROM "most_visited_tourist_attractions" WHERE "type"='ski jumping hill';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Games, when Rebounds is greater than 100, when Name is Nikola Peković, and when Rank is less than 4?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Games, when Rebounds is greater than 100, when Name is Nikola Peković, and when Rank is less than 4?`:
```sql
                SELECT MAX("games") FROM "rebounds" WHERE "rebounds">100 AND "name"='nikola peković' AND "rank"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Games, when Rank is less than 4, and when Rebounds is less than 102?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Games, when Rank is less than 4, and when Rebounds is less than 102?`:
```sql
                SELECT COUNT("games") FROM "rebounds" WHERE "rank"<4 AND "rebounds"<102;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Games, when Name is Travis Watson, and when Rebounds is less than 136?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Games, when Name is Travis Watson, and when Rebounds is less than 136?`:
```sql
                SELECT MIN("games") FROM "rebounds" WHERE "name"='travis watson' AND "rebounds"<136;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Rebounds, when Team is Aris Thessaloniki, and when Games is greater than 14?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Rebounds, when Team is Aris Thessaloniki, and when Games is greater than 14?`:
```sql
                SELECT SUM("rebounds") FROM "rebounds" WHERE "team"='aris thessaloniki' AND "games">14;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Rank, when Name is Travis Watson, and when Games is less than 14?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Rank, when Name is Travis Watson, and when Games is less than 14?`:
```sql
                SELECT MAX("rank") FROM "rebounds" WHERE "name"='travis watson' AND "games"<14;
```
## Task
Generate a SQL query to answer the following question:
`What is Authors, when Novelty is Gen Nov, when Location is South Africa, and when Name is Criocephalosaurus?`

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

CREATE TABLE "non_mammalian" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Authors, when Novelty is Gen Nov, when Location is South Africa, and when Name is Criocephalosaurus?`:
```sql
                SELECT "authors" FROM "non_mammalian" WHERE "novelty"='gen nov' AND "location"='south africa' AND "name"='criocephalosaurus';
```
## Task
Generate a SQL query to answer the following question:
`What is Status, when Location is Russia?`

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

CREATE TABLE "non_mammalian" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Status, when Location is Russia?`:
```sql
                SELECT "status" FROM "non_mammalian" WHERE "location"='russia';
```
## Task
Generate a SQL query to answer the following question:
`What is Authors, when Novelty is Gen Et Sp Nov, and when Name is Lanthanocephalus?`

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

CREATE TABLE "non_mammalian" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Authors, when Novelty is Gen Et Sp Nov, and when Name is Lanthanocephalus?`:
```sql
                SELECT "authors" FROM "non_mammalian" WHERE "novelty"='gen et sp nov' AND "name"='lanthanocephalus';
```
## Task
Generate a SQL query to answer the following question:
`What is Name, when Authors are Kammerer & Sidor?`

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

CREATE TABLE "non_mammalian" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Authors are Kammerer & Sidor?`:
```sql
                SELECT "name" FROM "non_mammalian" WHERE "authors"='kammerer & sidor';
```
## Task
Generate a SQL query to answer the following question:
`What is Name, when Location is Tanzania, and when Novelty is Gen Nov?`

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

CREATE TABLE "non_mammalian" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Location is Tanzania, and when Novelty is Gen Nov?`:
```sql
                SELECT "name" FROM "non_mammalian" WHERE "location"='tanzania' AND "novelty"='gen nov';
```
## Task
Generate a SQL query to answer the following question:
`What is Name, when Status is Valid, when Authors is Maisch, when Location is Tanzania, and when Novelty is Gen Et Sp Nov?`

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

CREATE TABLE "non_mammalian" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Status is Valid, when Authors is Maisch, when Location is Tanzania, and when Novelty is Gen Et Sp Nov?`:
```sql
                SELECT "name" FROM "non_mammalian" WHERE "status"='valid' AND "authors"='maisch' AND "location"='tanzania' AND "novelty"='gen et sp nov';
```
## Task
Generate a SQL query to answer the following question:
`What is the T568A color for the cable with a white/orange stripe T568B color?`

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

CREATE TABLE "category_6a" (
  "t568_a_pair" real,
  "t568_b_pair" real,
  "wire" text,
  "t568_a_color" text,
  "t568_b_color" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the T568A color for the cable with a white/orange stripe T568B color?`:
```sql
                SELECT "t568_a_color" FROM "category_6a" WHERE "t568_b_color"='white/orange stripe';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date with an Opponent that is flavia pennetta?`

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

CREATE TABLE "singles_5_5_runners_up" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date with an Opponent that is flavia pennetta?`:
```sql
                SELECT "date" FROM "singles_5_5_runners_up" WHERE "opponent"='flavia pennetta';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score with an Opponent that is flavia pennetta?`

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

CREATE TABLE "singles_5_5_runners_up" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score with an Opponent that is flavia pennetta?`:
```sql
                SELECT "score" FROM "singles_5_5_runners_up" WHERE "opponent"='flavia pennetta';
```
## Task
Generate a SQL query to answer the following question:
`What is the Opponent with a Score that is 2–6, 6–4, 3–6?`

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

CREATE TABLE "singles_5_5_runners_up" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent with a Score that is 2–6, 6–4, 3–6?`:
```sql
                SELECT "opponent" FROM "singles_5_5_runners_up" WHERE "score"='2–6, 6–4, 3–6';
```
## Task
Generate a SQL query to answer the following question:
`What is the Outcome with a Date that is may 5, 2012?`

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

CREATE TABLE "singles_5_5_runners_up" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Outcome with a Date that is may 5, 2012?`:
```sql
                SELECT "outcome" FROM "singles_5_5_runners_up" WHERE "date"='may 5, 2012';
```
## Task
Generate a SQL query to answer the following question:
`What is the Outcome with an Opponent that is jelena janković?`

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

CREATE TABLE "singles_5_5_runners_up" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Outcome with an Opponent that is jelena janković?`:
```sql
                SELECT "outcome" FROM "singles_5_5_runners_up" WHERE "opponent"='jelena janković';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tournament with a Score that is 2–6, 6–4, 3–6?`

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

CREATE TABLE "singles_5_5_runners_up" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tournament with a Score that is 2–6, 6–4, 3–6?`:
```sql
                SELECT "tournament" FROM "singles_5_5_runners_up" WHERE "score"='2–6, 6–4, 3–6';
```
## Task
Generate a SQL query to answer the following question:
`Which week was on November 13, 1955 when the attendance was over 33,982?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which week was on November 13, 1955 when the attendance was over 33,982?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "date"='november 13, 1955' AND "attendance">'33,982';
```
## Task
Generate a SQL query to answer the following question:
`What is the Japanese name of the Province with a Korean name of Chungcheong-Bukdo?`

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

CREATE TABLE "provinces_under_japanese_colonial_rule" (
  "japanese_name" text,
  "kana" text,
  "hanja_kanji" text,
  "korean_name" text,
  "hangul" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Japanese name of the Province with a Korean name of Chungcheong-Bukdo?`:
```sql
                SELECT "japanese_name" FROM "provinces_under_japanese_colonial_rule" WHERE "korean_name"='chungcheong-bukdo';
```
## Task
Generate a SQL query to answer the following question:
`What is the Hanja/Kanji of the Province with a Kana of ちゅうせいほくどう?`

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

CREATE TABLE "provinces_under_japanese_colonial_rule" (
  "japanese_name" text,
  "kana" text,
  "hanja_kanji" text,
  "korean_name" text,
  "hangul" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Hanja/Kanji of the Province with a Kana of ちゅうせいほくどう?`:
```sql
                SELECT "hanja_kanji" FROM "provinces_under_japanese_colonial_rule" WHERE "kana"='ちゅうせいほくどう';
```
## Task
Generate a SQL query to answer the following question:
`What is the Kana of the Province with a Korean name of Chungcheong-Namdo?`

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

CREATE TABLE "provinces_under_japanese_colonial_rule" (
  "japanese_name" text,
  "kana" text,
  "hanja_kanji" text,
  "korean_name" text,
  "hangul" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Kana of the Province with a Korean name of Chungcheong-Namdo?`:
```sql
                SELECT "kana" FROM "provinces_under_japanese_colonial_rule" WHERE "korean_name"='chungcheong-namdo';
```
## Task
Generate a SQL query to answer the following question:
`What is the Hangul of the Province with a Kana of へいあんなんどう?`

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

CREATE TABLE "provinces_under_japanese_colonial_rule" (
  "japanese_name" text,
  "kana" text,
  "hanja_kanji" text,
  "korean_name" text,
  "hangul" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Hangul of the Province with a Kana of へいあんなんどう?`:
```sql
                SELECT "hangul" FROM "provinces_under_japanese_colonial_rule" WHERE "kana"='へいあんなんどう';
```
## Task
Generate a SQL query to answer the following question:
`What is the Hangul of the Province with a Kana of ちゅうせいなんどう?`

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

CREATE TABLE "provinces_under_japanese_colonial_rule" (
  "japanese_name" text,
  "kana" text,
  "hanja_kanji" text,
  "korean_name" text,
  "hangul" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Hangul of the Province with a Kana of ちゅうせいなんどう?`:
```sql
                SELECT "hangul" FROM "provinces_under_japanese_colonial_rule" WHERE "kana"='ちゅうせいなんどう';
```
## Task
Generate a SQL query to answer the following question:
`What is the Hanja/Kanji of the Province with a Korean name of Chungcheong-Bukdo?`

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

CREATE TABLE "provinces_under_japanese_colonial_rule" (
  "japanese_name" text,
  "kana" text,
  "hanja_kanji" text,
  "korean_name" text,
  "hangul" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Hanja/Kanji of the Province with a Korean name of Chungcheong-Bukdo?`:
```sql
                SELECT "hanja_kanji" FROM "provinces_under_japanese_colonial_rule" WHERE "korean_name"='chungcheong-bukdo';
```
## Task
Generate a SQL query to answer the following question:
`What were the Oct. temperatures for the city that had Nov. temperatures of 51/30?`

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

CREATE TABLE "temperature" (
  "city" text,
  "jan" text,
  "feb" text,
  "mar" text,
  "apr" text,
  "may" text,
  "jun" text,
  "jul" text,
  "aug" text,
  "sep" text,
  "oct" text,
  "nov" text,
  "dec" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the Oct. temperatures for the city that had Nov. temperatures of 51/30?`:
```sql
                SELECT "oct" FROM "temperature" WHERE "nov"='51/30';
```
## Task
Generate a SQL query to answer the following question:
`What were the Feb temperatures in East Stroudsburg?`

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

CREATE TABLE "temperature" (
  "city" text,
  "jan" text,
  "feb" text,
  "mar" text,
  "apr" text,
  "may" text,
  "jun" text,
  "jul" text,
  "aug" text,
  "sep" text,
  "oct" text,
  "nov" text,
  "dec" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the Feb temperatures in East Stroudsburg?`:
```sql
                SELECT "feb" FROM "temperature" WHERE "city"='east stroudsburg';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of completions that led to completion percentages of 65.4 and attempts under 451?`

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

CREATE TABLE "statistics" (
  "year" text,
  "comp" real,
  "att" real,
  "comppct" real,
  "yards" real,
  "td_s" real,
  "int_s" real,
  "rating" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of completions that led to completion percentages of 65.4 and attempts under 451?`:
```sql
                SELECT SUM("comp") FROM "statistics" WHERE "comppct"=65.4 AND "att"<451;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of touchdowns that had yards of 574 and completions over 54?`

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

CREATE TABLE "statistics" (
  "year" text,
  "comp" real,
  "att" real,
  "comppct" real,
  "yards" real,
  "td_s" real,
  "int_s" real,
  "rating" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of touchdowns that had yards of 574 and completions over 54?`:
```sql
                SELECT MAX("td_s") FROM "statistics" WHERE "yards"=574 AND "comp">54;
```
## Task
Generate a SQL query to answer the following question:
`What regular season did the team reach the conference semifinals in the playoffs?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What regular season did the team reach the conference semifinals in the playoffs?`:
```sql
                SELECT "regular_season" FROM "year_by_year" WHERE "playoffs"='conference semifinals';
```
## Task
Generate a SQL query to answer the following question:
`When the regular season of 2nd, Northeast and the year was less than 2008 what was the total number of Division?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the regular season of 2nd, Northeast and the year was less than 2008 what was the total number of Division?`:
```sql
                SELECT COUNT("division") FROM "year_by_year" WHERE "regular_season"='2nd, northeast' AND "year"<2008;
```
## Task
Generate a SQL query to answer the following question:
`What division was the regular season 5th, Northeast?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What division was the regular season 5th, Northeast?`:
```sql
                SELECT "division" FROM "year_by_year" WHERE "regular_season"='5th, northeast';
```
## Task
Generate a SQL query to answer the following question:
`What was the result when Jam Hsiao was nominated in 2012?`

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

CREATE TABLE "awards" (
  "year" real,
  "award" text,
  "category" text,
  "nomination" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result when Jam Hsiao was nominated in 2012?`:
```sql
                SELECT "result" FROM "awards" WHERE "nomination"='jam hsiao' AND "year"=2012;
```
## Task
Generate a SQL query to answer the following question:
`Which award is in the category of best music video?`

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

CREATE TABLE "awards" (
  "year" real,
  "award" text,
  "category" text,
  "nomination" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which award is in the category of best music video?`:
```sql
                SELECT "award" FROM "awards" WHERE "category"='best music video';
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a Result of l 29–23?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has a Result of l 29–23?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "result"='l 29–23';
```
## Task
Generate a SQL query to answer the following question:
`When has a Week of 1?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a Week of 1?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=1;
```
## Task
Generate a SQL query to answer the following question:
`Which Week has an Opponent of at seattle seahawks?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Week has an Opponent of at seattle seahawks?`:
```sql
                SELECT "week" FROM "schedule" WHERE "opponent"='at seattle seahawks';
```
## Task
Generate a SQL query to answer the following question:
`Name the Result on october 15, 1995?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Result on october 15, 1995?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='october 15, 1995';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Week larger than 2 on november 19, 1995?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Week larger than 2 on november 19, 1995?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week">2 AND "date"='november 19, 1995';
```
## Task
Generate a SQL query to answer the following question:
`What is the recorded conference that was a Wac Conference?`

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

CREATE TABLE "automatic_bids" (
  "school" text,
  "conference" text,
  "record_conf" text,
  "berth" text,
  "last_ncaa_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the recorded conference that was a Wac Conference?`:
```sql
                SELECT "record_conf" FROM "automatic_bids" WHERE "conference"='wac';
```
## Task
Generate a SQL query to answer the following question:
`What conference has the Wichita State school?`

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

CREATE TABLE "automatic_bids" (
  "school" text,
  "conference" text,
  "record_conf" text,
  "berth" text,
  "last_ncaa_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What conference has the Wichita State school?`:
```sql
                SELECT "conference" FROM "automatic_bids" WHERE "school"='wichita state';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank for Burghley?`

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

CREATE TABLE "achievements_competitions" (
  "competition" text,
  "place" text,
  "year" real,
  "horse" text,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank for Burghley?`:
```sql
                SELECT "rank" FROM "achievements_competitions" WHERE "place"='burghley';
```
## Task
Generate a SQL query to answer the following question:
`What horse was at the Badminton Horse Trials?`

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

CREATE TABLE "achievements_competitions" (
  "competition" text,
  "place" text,
  "year" real,
  "horse" text,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What horse was at the Badminton Horse Trials?`:
```sql
                SELECT "horse" FROM "achievements_competitions" WHERE "competition"='badminton horse trials';
```
## Task
Generate a SQL query to answer the following question:
`What was Des Dickson's lowest rank for matches smaller than 285 and less than 219 goals?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Des Dickson's lowest rank for matches smaller than 285 and less than 219 goals?`:
```sql
                SELECT MIN("rank") FROM "list_of_top_association_football_goal_sc" WHERE "matches"<285 AND "name"='des dickson' AND "goals"<219;
```
## Task
Generate a SQL query to answer the following question:
`How many goals on average had 644 matches and a rank bigger than 3?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals on average had 644 matches and a rank bigger than 3?`:
```sql
                SELECT AVG("goals") FROM "list_of_top_association_football_goal_sc" WHERE "matches"=644 AND "rank">3;
```
## Task
Generate a SQL query to answer the following question:
`How many ranks had 205 matches?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many ranks had 205 matches?`:
```sql
                SELECT COUNT("rank") FROM "list_of_top_association_football_goal_sc" WHERE "matches"=205;
```
## Task
Generate a SQL query to answer the following question:
`What was Jimmy Jones' rank when the matches were smaller than 285?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Jimmy Jones' rank when the matches were smaller than 285?`:
```sql
                SELECT MAX("rank") FROM "list_of_top_association_football_goal_sc" WHERE "name"='jimmy jones' AND "matches"<285;
```
## Task
Generate a SQL query to answer the following question:
`Which date had the Hornets as the home team?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date had the Hornets as the home team?`:
```sql
                SELECT "date" FROM "april" WHERE "home"='hornets';
```
## Task
Generate a SQL query to answer the following question:
`What is the To par score corresponding to the winning score of 64-69-67-66=266?`

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

CREATE TABLE "pga_tour_wins_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the To par score corresponding to the winning score of 64-69-67-66=266?`:
```sql
                SELECT "to_par" FROM "pga_tour_wins_8" WHERE "winning_score"='64-69-67-66=266';
```
## Task
Generate a SQL query to answer the following question:
`What was the To par score for the tournament with a margin of victory of 1 stroke?`

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

CREATE TABLE "pga_tour_wins_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the To par score for the tournament with a margin of victory of 1 stroke?`:
```sql
                SELECT "to_par" FROM "pga_tour_wins_8" WHERE "margin_of_victory"='1 stroke';
```