cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who was the 1st member with 2nd member Thomas Leigh and was elected in 1557/58?`

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

CREATE TABLE "parliaments_of_queen_mary_i" (
  "summoned" text,
  "elected" text,
  "assembled" text,
  "dissolved" text,
  "1st_member" text,
  "2nd_member" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the 1st member with 2nd member Thomas Leigh and was elected in 1557/58?`:
```sql
                SELECT "1st_member" FROM "parliaments_of_queen_mary_i" WHERE "2nd_member"='thomas leigh' AND "elected"='1557/58';
```
## Task
Generate a SQL query to answer the following question:
`Who is the second member that was elected in 1555?`

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

CREATE TABLE "parliaments_of_queen_mary_i" (
  "summoned" text,
  "elected" text,
  "assembled" text,
  "dissolved" text,
  "1st_member" text,
  "2nd_member" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the second member that was elected in 1555?`:
```sql
                SELECT "2nd_member" FROM "parliaments_of_queen_mary_i" WHERE "elected"='1555';
```
## Task
Generate a SQL query to answer the following question:
`Who was dissolved that was elected in 1553?`

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

CREATE TABLE "parliaments_of_queen_mary_i" (
  "summoned" text,
  "elected" text,
  "assembled" text,
  "dissolved" text,
  "1st_member" text,
  "2nd_member" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was dissolved that was elected in 1553?`:
```sql
                SELECT "dissolved" FROM "parliaments_of_queen_mary_i" WHERE "elected"='1553';
```
## Task
Generate a SQL query to answer the following question:
`Which Pick has a Nationality of canada, and a Player of dennis maxwell?`

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

CREATE TABLE "draft_picks" (
  "draft" real,
  "round" text,
  "pick" real,
  "player" text,
  "nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pick has a Nationality of canada, and a Player of dennis maxwell?`:
```sql
                SELECT COUNT("pick") FROM "draft_picks" WHERE "nationality"='canada' AND "player"='dennis maxwell';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a Draft of 1994, a Pick larger than 8, a Round of 10, and a Nationality of canada?`

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

CREATE TABLE "draft_picks" (
  "draft" real,
  "round" text,
  "pick" real,
  "player" text,
  "nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Draft of 1994, a Pick larger than 8, a Round of 10, and a Nationality of canada?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "draft"=1994 AND "pick">8 AND "round"='10' AND "nationality"='canada';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a Round of 7, a Pick larger than 187, a Nationality of united states, and a Draft larger than 2000?`

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

CREATE TABLE "draft_picks" (
  "draft" real,
  "round" text,
  "pick" real,
  "player" text,
  "nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Round of 7, a Pick larger than 187, a Nationality of united states, and a Draft larger than 2000?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "round"='7' AND "pick">187 AND "nationality"='united states' AND "draft">2000;
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a Round of 9, and a Pick of 263?`

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

CREATE TABLE "draft_picks" (
  "draft" real,
  "round" text,
  "pick" real,
  "player" text,
  "nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Round of 9, and a Pick of 263?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "round"='9' AND "pick"=263;
```
## Task
Generate a SQL query to answer the following question:
`Which Draft has a Round of 1, a Nationality of canada, a Pick of 1, and a Player of vincent lecavalier?`

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

CREATE TABLE "draft_picks" (
  "draft" real,
  "round" text,
  "pick" real,
  "player" text,
  "nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Draft has a Round of 1, a Nationality of canada, a Pick of 1, and a Player of vincent lecavalier?`:
```sql
                SELECT AVG("draft") FROM "draft_picks" WHERE "round"='1' AND "nationality"='canada' AND "pick"=1 AND "player"='vincent lecavalier';
```
## Task
Generate a SQL query to answer the following question:
`What penalties has P.I.M. of 34.5?`

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

CREATE TABLE "round_robin_results" (
  "team" text,
  "wins" text,
  "losses" text,
  "points" text,
  "w_pct" text,
  "g_f" text,
  "g_a" text,
  "assists" text,
  "penalties" text,
  "p_i_m" text
);
### SQL
Given the database schema, here is the SQL query that answers `What penalties has P.I.M. of 34.5?`:
```sql
                SELECT "penalties" FROM "round_robin_results" WHERE "p_i_m"='34.5';
```
## Task
Generate a SQL query to answer the following question:
`What wins has WPct of 0.2?`

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

CREATE TABLE "round_robin_results" (
  "team" text,
  "wins" text,
  "losses" text,
  "points" text,
  "w_pct" text,
  "g_f" text,
  "g_a" text,
  "assists" text,
  "penalties" text,
  "p_i_m" text
);
### SQL
Given the database schema, here is the SQL query that answers `What wins has WPct of 0.2?`:
```sql
                SELECT "wins" FROM "round_robin_results" WHERE "w_pct"='0.2';
```
## Task
Generate a SQL query to answer the following question:
`What WPct has wins of wins?`

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

CREATE TABLE "round_robin_results" (
  "team" text,
  "wins" text,
  "losses" text,
  "points" text,
  "w_pct" text,
  "g_f" text,
  "g_a" text,
  "assists" text,
  "penalties" text,
  "p_i_m" text
);
### SQL
Given the database schema, here is the SQL query that answers `What WPct has wins of wins?`:
```sql
                SELECT "w_pct" FROM "round_robin_results" WHERE "wins"='wins';
```
## Task
Generate a SQL query to answer the following question:
`What assists has points of 10?`

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

CREATE TABLE "round_robin_results" (
  "team" text,
  "wins" text,
  "losses" text,
  "points" text,
  "w_pct" text,
  "g_f" text,
  "g_a" text,
  "assists" text,
  "penalties" text,
  "p_i_m" text
);
### SQL
Given the database schema, here is the SQL query that answers `What assists has points of 10?`:
```sql
                SELECT "assists" FROM "round_robin_results" WHERE "points"='10';
```
## Task
Generate a SQL query to answer the following question:
`What losses consist of the team of japan?`

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

CREATE TABLE "round_robin_results" (
  "team" text,
  "wins" text,
  "losses" text,
  "points" text,
  "w_pct" text,
  "g_f" text,
  "g_a" text,
  "assists" text,
  "penalties" text,
  "p_i_m" text
);
### SQL
Given the database schema, here is the SQL query that answers `What losses consist of the team of japan?`:
```sql
                SELECT "losses" FROM "round_robin_results" WHERE "team"='japan';
```
## Task
Generate a SQL query to answer the following question:
`How many wins have more than 1 loss and a team of chiefs?`

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

CREATE TABLE "starters_for_3_different_teams" (
  "quarterback" text,
  "games" real,
  "teams" text,
  "wins" real,
  "losses" real,
  "percent" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins have more than 1 loss and a team of chiefs?`:
```sql
                SELECT SUM("wins") FROM "starters_for_3_different_teams" WHERE "teams"='chiefs' AND "losses">1;
```
## Task
Generate a SQL query to answer the following question:
`What was the total yards lost by antwon bailey when he gained 227?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gp_gs" text,
  "gain" real,
  "loss" real,
  "long" text,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total yards lost by antwon bailey when he gained 227?`:
```sql
                SELECT MIN("loss") FROM "rushing" WHERE "name"='antwon bailey' AND "gain">227;
```
## Task
Generate a SQL query to answer the following question:
`How many wins when points are more than 51, goals against are more than 23 and losses are 5?`

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

CREATE TABLE "league_standings" (
  "position" real,
  "club" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "points" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins when points are more than 51, goals against are more than 23 and losses are 5?`:
```sql
                SELECT COUNT("wins") FROM "league_standings" WHERE "points">51 AND "goals_against">23 AND "losses"=5;
```
## Task
Generate a SQL query to answer the following question:
`How many wins when there are more than 19 points, place smaller than 12, and fewer than 30 played?`

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

CREATE TABLE "league_standings" (
  "position" real,
  "club" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "points" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins when there are more than 19 points, place smaller than 12, and fewer than 30 played?`:
```sql
                SELECT SUM("wins") FROM "league_standings" WHERE "points">19 AND "position"<12 AND "played"<30;
```
## Task
Generate a SQL query to answer the following question:
`What is the number played by the team in place greater than 16?`

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

CREATE TABLE "league_standings" (
  "position" real,
  "club" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "points" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number played by the team in place greater than 16?`:
```sql
                SELECT AVG("played") FROM "league_standings" WHERE "position">16;
```
## Task
Generate a SQL query to answer the following question:
`What are the 2nd round results for the match with Girondins de Bordeaux (d1) as Team 2?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "score" text,
  "team_2" text,
  "1st_round" text,
  "2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the 2nd round results for the match with Girondins de Bordeaux (d1) as Team 2?`:
```sql
                SELECT "2nd_round" FROM "round_of_16" WHERE "team_2"='girondins de bordeaux (d1)';
```
## Task
Generate a SQL query to answer the following question:
`What was the 1st round result that had US Valenciennes (d1) as Team 2?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "score" text,
  "team_2" text,
  "1st_round" text,
  "2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 1st round result that had US Valenciennes (d1) as Team 2?`:
```sql
                SELECT "1st_round" FROM "round_of_16" WHERE "team_2"='us valenciennes (d1)';
```
## Task
Generate a SQL query to answer the following question:
`What was the Score of the match with USL Dunkerque (d2) as Team 2?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "score" text,
  "team_2" text,
  "1st_round" text,
  "2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Score of the match with USL Dunkerque (d2) as Team 2?`:
```sql
                SELECT "score" FROM "round_of_16" WHERE "team_2"='usl dunkerque (d2)';
```
## Task
Generate a SQL query to answer the following question:
`What club does Manuel Fernandes coach?`

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

CREATE TABLE "team_summaries" (
  "club" text,
  "head_coach" text,
  "city" text,
  "stadium" text,
  "2003_2004_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club does Manuel Fernandes coach?`:
```sql
                SELECT "club" FROM "team_summaries" WHERE "head_coach"='manuel fernandes';
```
## Task
Generate a SQL query to answer the following question:
`Who is the head coach for the club from Estoril?`

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

CREATE TABLE "team_summaries" (
  "club" text,
  "head_coach" text,
  "city" text,
  "stadium" text,
  "2003_2004_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the head coach for the club from Estoril?`:
```sql
                SELECT "head_coach" FROM "team_summaries" WHERE "city"='estoril';
```
## Task
Generate a SQL query to answer the following question:
`Who is the head coach for the club from Aveiro?`

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

CREATE TABLE "team_summaries" (
  "club" text,
  "head_coach" text,
  "city" text,
  "stadium" text,
  "2003_2004_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the head coach for the club from Aveiro?`:
```sql
                SELECT "head_coach" FROM "team_summaries" WHERE "city"='aveiro';
```
## Task
Generate a SQL query to answer the following question:
`What is Team 1, when Team 2 is "Iskra Odintsovo"?`

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

CREATE TABLE "1_8_finals" (
  "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 is Team 1, when Team 2 is "Iskra Odintsovo"?`:
```sql
                SELECT "team_1" FROM "1_8_finals" WHERE "team_2"='iskra odintsovo';
```
## Task
Generate a SQL query to answer the following question:
`What is 1st Leg, when Team 1 is "Portol Palma Mallorca"?`

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

CREATE TABLE "1_8_finals" (
  "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 is 1st Leg, when Team 1 is "Portol Palma Mallorca"?`:
```sql
                SELECT "1st_leg" FROM "1_8_finals" WHERE "team_1"='portol palma mallorca';
```
## Task
Generate a SQL query to answer the following question:
`What is Agg., when Team 1 is "Noliko Maaseik"?`

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

CREATE TABLE "1_8_finals" (
  "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 is Agg., when Team 1 is "Noliko Maaseik"?`:
```sql
                SELECT "agg" FROM "1_8_finals" WHERE "team_1"='noliko maaseik';
```
## Task
Generate a SQL query to answer the following question:
`What is Jake Johnson's position?`

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

CREATE TABLE "players" (
  "players" text,
  "position" text,
  "year" text,
  "ht_wt" text,
  "bats_throws" text,
  "hometown_last_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Jake Johnson's position?`:
```sql
                SELECT "position" FROM "players" WHERE "players"='jake johnson';
```
## Task
Generate a SQL query to answer the following question:
`What side does Clayton Allison Bat/Throw from?`

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

CREATE TABLE "players" (
  "players" text,
  "position" text,
  "year" text,
  "ht_wt" text,
  "bats_throws" text,
  "hometown_last_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What side does Clayton Allison Bat/Throw from?`:
```sql
                SELECT "bats_throws" FROM "players" WHERE "players"='clayton allison';
```
## Task
Generate a SQL query to answer the following question:
`What side does Ryan Overland Bat/Throws from?`

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

CREATE TABLE "players" (
  "players" text,
  "position" text,
  "year" text,
  "ht_wt" text,
  "bats_throws" text,
  "hometown_last_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What side does Ryan Overland Bat/Throws from?`:
```sql
                SELECT "bats_throws" FROM "players" WHERE "players"='ryan overland';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg of pelister team 2?`

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

CREATE TABLE "eighth_finals" (
  "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 is the 2nd leg of pelister team 2?`:
```sql
                SELECT "2nd_leg" FROM "eighth_finals" WHERE "team_2"='pelister';
```
## Task
Generate a SQL query to answer the following question:
`What is the team 1 with cementarnica as team 2?`

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

CREATE TABLE "eighth_finals" (
  "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 is the team 1 with cementarnica as team 2?`:
```sql
                SELECT "team_1" FROM "eighth_finals" WHERE "team_2"='cementarnica';
```
## Task
Generate a SQL query to answer the following question:
`What is the team 2 with turnovo as team 1?`

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

CREATE TABLE "eighth_finals" (
  "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 is the team 2 with turnovo as team 1?`:
```sql
                SELECT "team_2" FROM "eighth_finals" WHERE "team_1"='turnovo';
```
## Task
Generate a SQL query to answer the following question:
`What is the team 1 with tikveš as team 2?`

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

CREATE TABLE "eighth_finals" (
  "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 is the team 1 with tikveš as team 2?`:
```sql
                SELECT "team_1" FROM "eighth_finals" WHERE "team_2"='tikveš';
```
## Task
Generate a SQL query to answer the following question:
`What is Place, when Score is "69-69=138", and when Country is "United States"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Place, when Score is "69-69=138", and when Country is "United States"?`:
```sql
                SELECT "place" FROM "second_round" WHERE "score"='69-69=138' AND "country"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Score is "69-69=138", and when Player is "Ian Poulter"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Score is "69-69=138", and when Player is "Ian Poulter"?`:
```sql
                SELECT "country" FROM "second_round" WHERE "score"='69-69=138' AND "player"='ian poulter';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Country is "Scotland"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Country is "Scotland"?`:
```sql
                SELECT "score" FROM "second_round" WHERE "country"='scotland';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Country is "United States", and when Player is "Bob Tway"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Country is "United States", and when Player is "Bob Tway"?`:
```sql
                SELECT "score" FROM "second_round" WHERE "country"='united states' AND "player"='bob tway';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Player is "Ernie Els"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Player is "Ernie Els"?`:
```sql
                SELECT "score" FROM "second_round" WHERE "player"='ernie els';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest Pick with Overall of 244?`

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

CREATE TABLE "american_football_league" (
  "year" real,
  "round" real,
  "pick" real,
  "overall" real,
  "player_name" text,
  "position" text,
  "afl_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest Pick with Overall of 244?`:
```sql
                SELECT MIN("pick") FROM "american_football_league" WHERE "overall"=244;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest Pick with Overall larger than 17, a Player name of dave adams category:articles with hcards, and a Year larger than 1963?`

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

CREATE TABLE "american_football_league" (
  "year" real,
  "round" real,
  "pick" real,
  "overall" real,
  "player_name" text,
  "position" text,
  "afl_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest Pick with Overall larger than 17, a Player name of dave adams category:articles with hcards, and a Year larger than 1963?`:
```sql
                SELECT MIN("pick") FROM "american_football_league" WHERE "overall">17 AND "player_name"='dave adams category:articles with hcards' AND "year">1963;
```
## Task
Generate a SQL query to answer the following question:
`What is the greatest Year with a Player name of dave adams category:articles with hcards, and a Round smaller than 23?`

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

CREATE TABLE "american_football_league" (
  "year" real,
  "round" real,
  "pick" real,
  "overall" real,
  "player_name" text,
  "position" text,
  "afl_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest Year with a Player name of dave adams category:articles with hcards, and a Round smaller than 23?`:
```sql
                SELECT MAX("year") FROM "american_football_league" WHERE "player_name"='dave adams category:articles with hcards' AND "round"<23;
```
## Task
Generate a SQL query to answer the following question:
`Name the Round that has Res of win and an Opponent of demian maia?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Round that has Res of win and an Opponent of demian maia?`:
```sql
                SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "res"='win' AND "opponent"='demian maia';
```
## Task
Generate a SQL query to answer the following question:
`which Event that has an Opponent of kendall grove?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `which Event that has an Opponent of kendall grove?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='kendall grove';
```
## Task
Generate a SQL query to answer the following question:
`When has an Event of ufc 123?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has an Event of ufc 123?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "event"='ufc 123';
```
## Task
Generate a SQL query to answer the following question:
`The country of Laos is in what region?`

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

CREATE TABLE "censorship_by_country" (
  "country" text,
  "region" text,
  "fh_freepressreport" text,
  "rwb_pressfreedomindex" text,
  "internetlists" text,
  "on_ipoliticalfiltering" text,
  "on_isocialfiltering" text,
  "on_isecurityfiltering" text,
  "on_itoolsfiltering" text
);
### SQL
Given the database schema, here is the SQL query that answers `The country of Laos is in what region?`:
```sql
                SELECT "region" FROM "censorship_by_country" WHERE "country"='laos';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the country that has internetlists of —, and ONIsecurityfiltering of —?`

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

CREATE TABLE "censorship_by_country" (
  "country" text,
  "region" text,
  "fh_freepressreport" text,
  "rwb_pressfreedomindex" text,
  "internetlists" text,
  "on_ipoliticalfiltering" text,
  "on_isocialfiltering" text,
  "on_isecurityfiltering" text,
  "on_itoolsfiltering" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the country that has internetlists of —, and ONIsecurityfiltering of —?`:
```sql
                SELECT "country" FROM "censorship_by_country" WHERE "internetlists"='—' AND "on_isecurityfiltering"='—';
```
## Task
Generate a SQL query to answer the following question:
`With a FHFreepressreport of 54, and ne as ONIsocialfiltering, what is the ONItoolsfiltering?`

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

CREATE TABLE "censorship_by_country" (
  "country" text,
  "region" text,
  "fh_freepressreport" text,
  "rwb_pressfreedomindex" text,
  "internetlists" text,
  "on_ipoliticalfiltering" text,
  "on_isocialfiltering" text,
  "on_isecurityfiltering" text,
  "on_itoolsfiltering" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a FHFreepressreport of 54, and ne as ONIsocialfiltering, what is the ONItoolsfiltering?`:
```sql
                SELECT "on_itoolsfiltering" FROM "censorship_by_country" WHERE "fh_freepressreport"='54' AND "on_isocialfiltering"='ne';
```
## Task
Generate a SQL query to answer the following question:
`What were the Results in Arizona 1 District?`

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

CREATE TABLE "arizona" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the Results in Arizona 1 District?`:
```sql
                SELECT "results" FROM "arizona" WHERE "district"='arizona 1';
```
## Task
Generate a SQL query to answer the following question:
`What Republican District had Incumbent First Elected in 2000 then Re-elected?`

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

CREATE TABLE "arizona" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Republican District had Incumbent First Elected in 2000 then Re-elected?`:
```sql
                SELECT "district" FROM "arizona" WHERE "party"='republican' AND "results"='re-elected' AND "first_elected"=2000;
```
## Task
Generate a SQL query to answer the following question:
`What is John Shadegg's First Elected date?`

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

CREATE TABLE "arizona" (
  "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 John Shadegg's First Elected date?`:
```sql
                SELECT AVG("first_elected") FROM "arizona" WHERE "incumbent"='john shadegg';
```
## Task
Generate a SQL query to answer the following question:
`On which date was the opponent lamine ouahab?`

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

CREATE TABLE "singles_28" (
  "edition" text,
  "round" text,
  "date" text,
  "against" text,
  "surface" text,
  "opponent" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date was the opponent lamine ouahab?`:
```sql
                SELECT "date" FROM "singles_28" WHERE "opponent"='lamine ouahab';
```
## Task
Generate a SQL query to answer the following question:
`On what date did the match take place in a round of 1r and have a result 2–6, 5–7, 2–6?`

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

CREATE TABLE "singles_28" (
  "edition" text,
  "round" text,
  "date" text,
  "against" text,
  "surface" text,
  "opponent" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did the match take place in a round of 1r and have a result 2–6, 5–7, 2–6?`:
```sql
                SELECT "date" FROM "singles_28" WHERE "round"='1r' AND "result"='2–6, 5–7, 2–6';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the match in round 1r against tunisia and on a hard surface?`

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

CREATE TABLE "singles_28" (
  "edition" text,
  "round" text,
  "date" text,
  "against" text,
  "surface" text,
  "opponent" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the match in round 1r against tunisia and on a hard surface?`:
```sql
                SELECT "result" FROM "singles_28" WHERE "round"='1r' AND "surface"='hard' AND "against"='tunisia';
```
## Task
Generate a SQL query to answer the following question:
`Who was the match against when on a clay surface during round 2r?`

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

CREATE TABLE "singles_28" (
  "edition" text,
  "round" text,
  "date" text,
  "against" text,
  "surface" text,
  "opponent" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the match against when on a clay surface during round 2r?`:
```sql
                SELECT "against" FROM "singles_28" WHERE "round"='2r' AND "surface"='clay';
```
## Task
Generate a SQL query to answer the following question:
`What round had a amtch against cyprus and an edition of 2010 davis cup europe/africa group ii?`

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

CREATE TABLE "singles_28" (
  "edition" text,
  "round" text,
  "date" text,
  "against" text,
  "surface" text,
  "opponent" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round had a amtch against cyprus and an edition of 2010 davis cup europe/africa group ii?`:
```sql
                SELECT "round" FROM "singles_28" WHERE "edition"='2010 davis cup europe/africa group ii' AND "against"='cyprus';
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent year with a time of 10.56?`

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

CREATE TABLE "time_progression_in_the_100_m" (
  "year" real,
  "time" real,
  "windspeed" text,
  "city" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent year with a time of 10.56?`:
```sql
                SELECT MAX("year") FROM "time_progression_in_the_100_m" WHERE "time"=10.56;
```
## Task
Generate a SQL query to answer the following question:
`When was the game played against Astley Bridge 'a'?`

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

CREATE TABLE "friendlies" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the game played against Astley Bridge 'a'?`:
```sql
                SELECT "date" FROM "friendlies" WHERE "opponents"='astley bridge ''a''';
```
## Task
Generate a SQL query to answer the following question:
`Who was the girl of the week after nicole woodruff in the same month?`

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

CREATE TABLE "2003" (
  "week_1" text,
  "week_2" text,
  "week_3" text,
  "week_4" text,
  "week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the girl of the week after nicole woodruff in the same month?`:
```sql
                SELECT "week_5" FROM "2003" WHERE "week_4"='nicole woodruff';
```
## Task
Generate a SQL query to answer the following question:
`Who was the girl of the week 3 weeks after brianne bailey in the same month?`

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

CREATE TABLE "2003" (
  "week_1" text,
  "week_2" text,
  "week_3" text,
  "week_4" text,
  "week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the girl of the week 3 weeks after brianne bailey in the same month?`:
```sql
                SELECT "week_5" FROM "2003" WHERE "week_2"='brianne bailey';
```
## Task
Generate a SQL query to answer the following question:
`Who was the girl of the week 2 weeks before terri lynn farrow in the same month?`

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

CREATE TABLE "2003" (
  "week_1" text,
  "week_2" text,
  "week_3" text,
  "week_4" text,
  "week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the girl of the week 2 weeks before terri lynn farrow in the same month?`:
```sql
                SELECT "week_2" FROM "2003" WHERE "week_4"='terri lynn farrow';
```
## Task
Generate a SQL query to answer the following question:
`How many tries did the player have which ended with 20 Points?`

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

CREATE TABLE "scorers" (
  "player" text,
  "tries" real,
  "goals" text,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many tries did the player have which ended with 20 Points?`:
```sql
                SELECT "tries" FROM "scorers" WHERE "points"=20;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of points that Justin Hodges earned with 0 field goals and 0 regular goals?`

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

CREATE TABLE "scorers" (
  "player" text,
  "tries" real,
  "goals" text,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of points that Justin Hodges earned with 0 field goals and 0 regular goals?`:
```sql
                SELECT MAX("points") FROM "scorers" WHERE "field_goals"=0 AND "goals"='0' AND "player"='justin hodges';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Points, when Date is "February 2", and when Attendance is less than 16,874?`

### 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 is the average Points, when Date is "February 2", and when Attendance is less than 16,874?`:
```sql
                SELECT AVG("points") FROM "regular_season" WHERE "date"='february 2' AND "attendance"<'16,874';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Attendance, when Date is "February 4", and when Points is less than 57?`

### 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 is the lowest Attendance, when Date is "February 4", and when Points is less than 57?`:
```sql
                SELECT MIN("attendance") FROM "regular_season" WHERE "date"='february 4' AND "points"<57;
```
## Task
Generate a SQL query to answer the following question:
`For a total of 1 and the sport of softball what were the years?`

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

CREATE TABLE "state_titles" (
  "school" text,
  "sport" text,
  "titles" text,
  "years" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a total of 1 and the sport of softball what were the years?`:
```sql
                SELECT "years" FROM "state_titles" WHERE "total"='1' AND "sport"='softball';
```
## Task
Generate a SQL query to answer the following question:
`What was the total for the year of 1925?`

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

CREATE TABLE "state_titles" (
  "school" text,
  "sport" text,
  "titles" text,
  "years" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total for the year of 1925?`:
```sql
                SELECT "total" FROM "state_titles" WHERE "years"='1925';
```
## Task
Generate a SQL query to answer the following question:
`Which label is in a limited edition cd/dvd format?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which label is in a limited edition cd/dvd format?`:
```sql
                SELECT "label" FROM "release_history" WHERE "format"='limited edition cd/dvd';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the United Kingdom with an LP format?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the United Kingdom with an LP format?`:
```sql
                SELECT "date" FROM "release_history" WHERE "country"='united kingdom' AND "format"='lp';
```
## Task
Generate a SQL query to answer the following question:
`Which format is in Japan?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which format is in Japan?`:
```sql
                SELECT "format" FROM "release_history" WHERE "country"='japan';
```
## Task
Generate a SQL query to answer the following question:
`What is the format of catalog number 886973273913 (gowow012) in the United Kingdom?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the format of catalog number 886973273913 (gowow012) in the United Kingdom?`:
```sql
                SELECT "format" FROM "release_history" WHERE "country"='united kingdom' AND "catalogue_num"='886973273913 (gowow012)';
```
## Task
Generate a SQL query to answer the following question:
`Which Apps have a Club of barcelona, and a Season of 1996/97, and a Rank smaller than 7?`

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

CREATE TABLE "most_goals_in_a_la_liga_season_at_least_" (
  "rank" real,
  "club" text,
  "season" text,
  "goals" real,
  "apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Apps have a Club of barcelona, and a Season of 1996/97, and a Rank smaller than 7?`:
```sql
                SELECT MIN("apps") FROM "most_goals_in_a_la_liga_season_at_least_" WHERE "club"='barcelona' AND "season"='1996/97' AND "rank"<7;
```
## Task
Generate a SQL query to answer the following question:
`Which Season has a Club of real madrid, and a Rank smaller than 6, and less than 121 goals?`

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

CREATE TABLE "most_goals_in_a_la_liga_season_at_least_" (
  "rank" real,
  "club" text,
  "season" text,
  "goals" real,
  "apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Season has a Club of real madrid, and a Rank smaller than 6, and less than 121 goals?`:
```sql
                SELECT "season" FROM "most_goals_in_a_la_liga_season_at_least_" WHERE "club"='real madrid' AND "rank"<6 AND "goals"<121;
```
## Task
Generate a SQL query to answer the following question:
`How many Apps have a Rank larger than 2, and Goals smaller than 102?`

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

CREATE TABLE "most_goals_in_a_la_liga_season_at_least_" (
  "rank" real,
  "club" text,
  "season" text,
  "goals" real,
  "apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Apps have a Rank larger than 2, and Goals smaller than 102?`:
```sql
                SELECT SUM("apps") FROM "most_goals_in_a_la_liga_season_at_least_" WHERE "rank">2 AND "goals"<102;
```
## Task
Generate a SQL query to answer the following question:
`Which Season has a Rank smaller than 4, and a Club of barcelona, and less than 115 goals?`

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

CREATE TABLE "most_goals_in_a_la_liga_season_at_least_" (
  "rank" real,
  "club" text,
  "season" text,
  "goals" real,
  "apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Season has a Rank smaller than 4, and a Club of barcelona, and less than 115 goals?`:
```sql
                SELECT "season" FROM "most_goals_in_a_la_liga_season_at_least_" WHERE "rank"<4 AND "club"='barcelona' AND "goals"<115;
```
## Task
Generate a SQL query to answer the following question:
`What player has a 147 total from Spain?`

### 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 player has a 147 total from Spain?`:
```sql
                SELECT "player" FROM "missed_the_cut" WHERE "total"=147 AND "country"='spain';
```
## Task
Generate a SQL query to answer the following question:
`What year was the 146 total?`

### 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 year was the 146 total?`:
```sql
                SELECT "year_s_won" FROM "missed_the_cut" WHERE "total"=146;
```
## Task
Generate a SQL query to answer the following question:
`What country is Paul Lawrie from?`

### 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 is Paul Lawrie from?`:
```sql
                SELECT "country" FROM "missed_the_cut" WHERE "player"='paul lawrie';
```