cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is Date (Opening), when Year is less than 2010, and when Date (Closing) is "September 28"?`

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

CREATE TABLE "history" (
  "year" real,
  "date_opening" text,
  "date_closing" text,
  "opening_film" text,
  "number_of_screening" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date (Opening), when Year is less than 2010, and when Date (Closing) is "September 28"?`:
```sql
                SELECT "date_opening" FROM "history" WHERE "year"<2010 AND "date_closing"='september 28';
```
## Task
Generate a SQL query to answer the following question:
`What is Date (Closing), when Year is greater than 2011?`

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

CREATE TABLE "history" (
  "year" real,
  "date_opening" text,
  "date_closing" text,
  "opening_film" text,
  "number_of_screening" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date (Closing), when Year is greater than 2011?`:
```sql
                SELECT "date_closing" FROM "history" WHERE "year">2011;
```
## Task
Generate a SQL query to answer the following question:
`Name the number of Earnings per share (¢) which has a Net profit (US $m) larger than 66, and a Year to April smaller than 2010?`

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

CREATE TABLE "micro_focus_international_plc_financial_" (
  "year_to_april" real,
  "revenue_us_million" real,
  "ebit_us_m" real,
  "net_profit_us_m" real,
  "earnings_per_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of Earnings per share (¢) which has a Net profit (US $m) larger than 66, and a Year to April smaller than 2010?`:
```sql
                SELECT COUNT("earnings_per_share") FROM "micro_focus_international_plc_financial_" WHERE "net_profit_us_m">66 AND "year_to_april"<2010;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of EBIT (US $m) in 2011 and a Earnings per share (¢) larger than 47?`

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

CREATE TABLE "micro_focus_international_plc_financial_" (
  "year_to_april" real,
  "revenue_us_million" real,
  "ebit_us_m" real,
  "net_profit_us_m" real,
  "earnings_per_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of EBIT (US $m) in 2011 and a Earnings per share (¢) larger than 47?`:
```sql
                SELECT COUNT("ebit_us_m") FROM "micro_focus_international_plc_financial_" WHERE "year_to_april"=2011 AND "earnings_per_share">47;
```
## Task
Generate a SQL query to answer the following question:
`Count the  Earnings per share (¢) in April smaller than 2012, a Revenue (US $million) of 432.6 and a EBIT (US $m) smaller than 150.5?`

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

CREATE TABLE "micro_focus_international_plc_financial_" (
  "year_to_april" real,
  "revenue_us_million" real,
  "ebit_us_m" real,
  "net_profit_us_m" real,
  "earnings_per_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `Count the  Earnings per share (¢) in April smaller than 2012, a Revenue (US $million) of 432.6 and a EBIT (US $m) smaller than 150.5?`:
```sql
                SELECT SUM("earnings_per_share") FROM "micro_focus_international_plc_financial_" WHERE "year_to_april"<2012 AND "revenue_us_million"=432.6 AND "ebit_us_m"<150.5;
```
## Task
Generate a SQL query to answer the following question:
`COunt the EBIT (US $m) which has a Revenue (US $million) larger than 434.8 and a Net profit (US $m) larger than 96.4?`

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

CREATE TABLE "micro_focus_international_plc_financial_" (
  "year_to_april" real,
  "revenue_us_million" real,
  "ebit_us_m" real,
  "net_profit_us_m" real,
  "earnings_per_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `COunt the EBIT (US $m) which has a Revenue (US $million) larger than 434.8 and a Net profit (US $m) larger than 96.4?`:
```sql
                SELECT COUNT("ebit_us_m") FROM "micro_focus_international_plc_financial_" WHERE "revenue_us_million">434.8 AND "net_profit_us_m">96.4;
```
## Task
Generate a SQL query to answer the following question:
`What position does Barry Richter play?`

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

CREATE TABLE "1988_nhl_entry_draft" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Barry Richter play?`:
```sql
                SELECT "position" FROM "1988_nhl_entry_draft" WHERE "player"='barry richter';
```
## Task
Generate a SQL query to answer the following question:
`What nationality is Mark Hirth from Michigan State University (NCAA)?`

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

CREATE TABLE "1988_nhl_entry_draft" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nationality is Mark Hirth from Michigan State University (NCAA)?`:
```sql
                SELECT "nationality" FROM "1988_nhl_entry_draft" WHERE "college_junior_club_team"='michigan state university (ncaa)' AND "player"='mark hirth';
```
## Task
Generate a SQL query to answer the following question:
`What NHL team does Rob White play on?`

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

CREATE TABLE "1988_nhl_entry_draft" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What NHL team does Rob White play on?`:
```sql
                SELECT "nhl_team" FROM "1988_nhl_entry_draft" WHERE "player"='rob white';
```
## Task
Generate a SQL query to answer the following question:
`What is the pick number for position of D from the University of Maine (NCAA)?`

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

CREATE TABLE "1988_nhl_entry_draft" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick number for position of D from the University of Maine (NCAA)?`:
```sql
                SELECT "pick_num" FROM "1988_nhl_entry_draft" WHERE "position"='d' AND "college_junior_club_team"='university of maine (ncaa)';
```
## Task
Generate a SQL query to answer the following question:
`What college/junior/club team is a left wing from Canada?`

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

CREATE TABLE "1988_nhl_entry_draft" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college/junior/club team is a left wing from Canada?`:
```sql
                SELECT "college_junior_club_team" FROM "1988_nhl_entry_draft" WHERE "position"='left wing' AND "nationality"='canada';
```
## Task
Generate a SQL query to answer the following question:
`What is the average last cf of the st. louis blues, who has less than 4 cf appearances and less than 1 cf wins?`

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

CREATE TABLE "team_totals" (
  "team" text,
  "cf_appearances" real,
  "cf_wins" real,
  "cup_wins" real,
  "last_cf" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average last cf of the st. louis blues, who has less than 4 cf appearances and less than 1 cf wins?`:
```sql
                SELECT AVG("last_cf") FROM "team_totals" WHERE "cf_appearances"<4 AND "cf_wins"<1 AND "team"='st. louis blues';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of cf wins of the chicago blackhawks, which has more than 4 cf appearances, a last cf in 2013, and more than 2 cup wins?`

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

CREATE TABLE "team_totals" (
  "team" text,
  "cf_appearances" real,
  "cf_wins" real,
  "cup_wins" real,
  "last_cf" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of cf wins of the chicago blackhawks, which has more than 4 cf appearances, a last cf in 2013, and more than 2 cup wins?`:
```sql
                SELECT MIN("cf_wins") FROM "team_totals" WHERE "cf_appearances">4 AND "last_cf"=2013 AND "team"='chicago blackhawks' AND "cup_wins">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of last cfs of the team with 2 cf appearances, 0 cup wins, and less than 0 cf wins?`

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

CREATE TABLE "team_totals" (
  "team" text,
  "cf_appearances" real,
  "cf_wins" real,
  "cup_wins" real,
  "last_cf" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of last cfs of the team with 2 cf appearances, 0 cup wins, and less than 0 cf wins?`:
```sql
                SELECT MIN("last_cf") FROM "team_totals" WHERE "cf_appearances"=2 AND "cup_wins"=0 AND "cf_wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What position did the driver from Audi Sport North America finish in the race after 2008?`

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

CREATE TABLE "complete_24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the driver from Audi Sport North America finish in the race after 2008?`:
```sql
                SELECT "pos" FROM "complete_24_hours_of_le_mans_results" WHERE "team"='audi sport north america' AND "year">2008;
```
## Task
Generate a SQL query to answer the following question:
`What event has 8 as the rank points, with 20 as the total?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event has 8 as the rank points, with 20 as the total?`:
```sql
                SELECT "event" FROM "qualification" WHERE "rank_points"='8' AND "total"='20';
```
## Task
Generate a SQL query to answer the following question:
`What shooter has wc munich as the event, and 8 as the rank points?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shooter has wc munich as the event, and 8 as the rank points?`:
```sql
                SELECT "shooter" FROM "qualification" WHERE "event"='wc munich' AND "rank_points"='8';
```
## Task
Generate a SQL query to answer the following question:
`What score points have olympic gold medalist as the rank points?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score points have olympic gold medalist as the rank points?`:
```sql
                SELECT "score_points" FROM "qualification" WHERE "rank_points"='olympic gold medalist';
```
## Task
Generate a SQL query to answer the following question:
`What Northern Ireland Player has more than 36,000 Money with a To par of –7?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Northern Ireland Player has more than 36,000 Money with a To par of –7?`:
```sql
                SELECT "player" FROM "final_round" WHERE "money">'36,000' AND "to_par"='–7' AND "country"='northern ireland';
```
## Task
Generate a SQL query to answer the following question:
`With a To par of –5, what is Nick Faldo's Place?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `With a To par of –5, what is Nick Faldo's Place?`:
```sql
                SELECT "place" FROM "final_round" WHERE "to_par"='–5' AND "player"='nick faldo';
```
## Task
Generate a SQL query to answer the following question:
`What is Fuzzy Zoeller's To par?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Fuzzy Zoeller's To par?`:
```sql
                SELECT "to_par" FROM "final_round" WHERE "player"='fuzzy zoeller';
```
## Task
Generate a SQL query to answer the following question:
`What is the Government the has the Kadima Party?`

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

CREATE TABLE "list_of_ministers" (
  "minister" text,
  "party" text,
  "governments" text,
  "term_start" text,
  "term_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Government the has the Kadima Party?`:
```sql
                SELECT "governments" FROM "list_of_ministers" WHERE "party"='kadima';
```
## Task
Generate a SQL query to answer the following question:
`Which Rank points has a Score points of olympic silver medalist?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank points has a Score points of olympic silver medalist?`:
```sql
                SELECT "rank_points" FROM "qualification" WHERE "score_points"='olympic silver medalist';
```
## Task
Generate a SQL query to answer the following question:
`Which Shooter has a Rank points of 8 and a Event of wc milan?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Shooter has a Rank points of 8 and a Event of wc milan?`:
```sql
                SELECT "shooter" FROM "qualification" WHERE "rank_points"='8' AND "event"='wc milan';
```
## Task
Generate a SQL query to answer the following question:
`Which Score points has an Event of og beijing, and Rank points of olympic gold medalist?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score points has an Event of og beijing, and Rank points of olympic gold medalist?`:
```sql
                SELECT "score_points" FROM "qualification" WHERE "event"='og beijing' AND "rank_points"='olympic gold medalist';
```
## Task
Generate a SQL query to answer the following question:
`Name Event of wc milan and a Total of 23?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name Event of wc milan and a Total of 23?`:
```sql
                SELECT "score_points" FROM "qualification" WHERE "event"='wc milan' AND "total"='23';
```
## Task
Generate a SQL query to answer the following question:
`which Score points has a Rank points of 10, and an Event of wc milan?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `which Score points has a Rank points of 10, and an Event of wc milan?`:
```sql
                SELECT "score_points" FROM "qualification" WHERE "rank_points"='10' AND "event"='wc milan';
```
## Task
Generate a SQL query to answer the following question:
`What was willie goggin's score?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was willie goggin's score?`:
```sql
                SELECT "score" FROM "final_leaderboard" WHERE "player"='willie goggin';
```
## Task
Generate a SQL query to answer the following question:
`Which Place has a Country of united states, and a Money ($) larger than 0, and a Player of craig wood?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Place has a Country of united states, and a Money ($) larger than 0, and a Player of craig wood?`:
```sql
                SELECT "place" FROM "final_leaderboard" WHERE "country"='united states' AND "money">0 AND "player"='craig wood';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team on March 7?`

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

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

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record on October 30?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "date"='october 30';
```
## Task
Generate a SQL query to answer the following question:
`What is the record on February 19?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record on February 19?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "date"='february 19';
```
## Task
Generate a SQL query to answer the following question:
`What was d. a. weibring's to par?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was d. a. weibring's to par?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "player"='d. a. weibring';
```
## Task
Generate a SQL query to answer the following question:
`For which to par was the score 71-74-68=213?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `For which to par was the score 71-74-68=213?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "score"='71-74-68=213';
```
## Task
Generate a SQL query to answer the following question:
`What player scored 70-72-70=212?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player scored 70-72-70=212?`:
```sql
                SELECT "player" FROM "third_round" WHERE "score"='70-72-70=212';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par for the score 72-69-68=209?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par for the score 72-69-68=209?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "score"='72-69-68=209';
```
## Task
Generate a SQL query to answer the following question:
`What was Australia's to par when the place was t9?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Australia's to par when the place was t9?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "place"='t9' AND "country"='australia';
```
## Task
Generate a SQL query to answer the following question:
`Wht did Mark O'Meara place when the to par was +2?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Wht did Mark O'Meara place when the to par was +2?`:
```sql
                SELECT "place" FROM "third_round" WHERE "to_par"='+2' AND "player"='mark o''meara';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of losses for entries with 15 wins and a position larger than 3?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of losses for entries with 15 wins and a position larger than 3?`:
```sql
                SELECT SUM("losses") FROM "group_ii" WHERE "wins"=15 AND "position">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the goal difference for entries with more than 6 draws, a position lower than 12, and fewer than 9 wins?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the goal difference for entries with more than 6 draws, a position lower than 12, and fewer than 9 wins?`:
```sql
                SELECT "goal_difference" FROM "group_ii" WHERE "draws">6 AND "position">12 AND "wins"<9;
```
## Task
Generate a SQL query to answer the following question:
`What is the position of club Melilla CF, with a goal difference smaller than -10?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of club Melilla CF, with a goal difference smaller than -10?`:
```sql
                SELECT SUM("position") FROM "group_ii" WHERE "club"='melilla cf' AND "goal_difference"<-10;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of goals against for positions higher than 14, with fewer than 30 played?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of goals against for positions higher than 14, with fewer than 30 played?`:
```sql
                SELECT SUM("goals_against") FROM "group_ii" WHERE "position">14 AND "played"<30;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of wins for entries with more than 32 points, a goal difference smaller than 23, and a Goals against of 36, and a Played smaller than 30?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of wins for entries with more than 32 points, a goal difference smaller than 23, and a Goals against of 36, and a Played smaller than 30?`:
```sql
                SELECT AVG("wins") FROM "group_ii" WHERE "points">32 AND "goal_difference"<23 AND "goals_against"=36 AND "played"<30;
```
## Task
Generate a SQL query to answer the following question:
`Which Location has a Year larger than 2006, and a Score of 6–3, 6–3?`

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

CREATE TABLE "men_s_singles" (
  "location" text,
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location has a Year larger than 2006, and a Score of 6–3, 6–3?`:
```sql
                SELECT "location" FROM "men_s_singles" WHERE "year">2006 AND "score"='6–3, 6–3';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Year larger than 2004, and a Champion of gaël monfils?`

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

CREATE TABLE "men_s_singles" (
  "location" text,
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Year larger than 2004, and a Champion of gaël monfils?`:
```sql
                SELECT "score" FROM "men_s_singles" WHERE "year">2004 AND "champion"='gaël monfils';
```
## Task
Generate a SQL query to answer the following question:
`Which Runner-up has a Year smaller than 2008, and a Champion of josé acasuso?`

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

CREATE TABLE "men_s_singles" (
  "location" text,
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Runner-up has a Year smaller than 2008, and a Champion of josé acasuso?`:
```sql
                SELECT "runner_up" FROM "men_s_singles" WHERE "year"<2008 AND "champion"='josé acasuso';
```
## Task
Generate a SQL query to answer the following question:
`Which Champion has a Runner-up of florian mayer, and a Score of 7–6(6), 4–6, 7–5?`

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

CREATE TABLE "men_s_singles" (
  "location" text,
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Champion has a Runner-up of florian mayer, and a Score of 7–6(6), 4–6, 7–5?`:
```sql
                SELECT "champion" FROM "men_s_singles" WHERE "runner_up"='florian mayer' AND "score"='7–6(6), 4–6, 7–5';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE SCORE WITH A WINNER AND OPPONENT BYRON BLACK?`

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

CREATE TABLE "singles" (
  "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 A WINNER AND OPPONENT BYRON BLACK?`:
```sql
                SELECT "score" FROM "singles" WHERE "outcome"='winner' AND "opponent"='byron black';
```
## Task
Generate a SQL query to answer the following question:
`Which country has the city of London, England with more than 150,000 specimens?`

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

CREATE TABLE "herbaria_in_the_british_isles" (
  "name" text,
  "no_specimens" real,
  "abbr" text,
  "country" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has the city of London, England with more than 150,000 specimens?`:
```sql
                SELECT "country" FROM "herbaria_in_the_british_isles" WHERE "no_specimens">'150,000' AND "city"='london, england';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of points of the match with less than 22 games played?`

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

CREATE TABLE "1_lyga" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of points of the match with less than 22 games played?`:
```sql
                SELECT COUNT("points") FROM "1_lyga" WHERE "games_played"<22;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of loses of the club with a 4 position and less than 23 goals conceded?`

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

CREATE TABLE "1_lyga" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of loses of the club with a 4 position and less than 23 goals conceded?`:
```sql
                SELECT COUNT("loses") FROM "1_lyga" WHERE "position"=4 AND "goals_conceded"<23;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of games played of the club with more than 25 goals conceded, more than 17 goals scored, and a position of 7?`

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

CREATE TABLE "1_lyga" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of games played of the club with more than 25 goals conceded, more than 17 goals scored, and a position of 7?`:
```sql
                SELECT MIN("games_played") FROM "1_lyga" WHERE "goals_conceded">25 AND "goals_scored">17 AND "position"=7;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of loses of the club with more than 42 goals scored, more than 20 goals conceded, and less than 3 draws?`

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

CREATE TABLE "1_lyga" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of loses of the club with more than 42 goals scored, more than 20 goals conceded, and less than 3 draws?`:
```sql
                SELECT MIN("loses") FROM "1_lyga" WHERE "goals_scored">42 AND "goals_conceded">20 AND "draws"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of points of the club with more than 23 goals conceded and a position larger than 12?`

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

CREATE TABLE "1_lyga" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of points of the club with more than 23 goals conceded and a position larger than 12?`:
```sql
                SELECT AVG("points") FROM "1_lyga" WHERE "goals_conceded">23 AND "position">12;
```
## Task
Generate a SQL query to answer the following question:
`How many goals did coe get?`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" text,
  "goals" real,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals did coe get?`:
```sql
                SELECT MIN("goals") FROM "squad_information" WHERE "name"='coe';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of ends when the transfer fee was dkk 14m?`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" text,
  "goals" real,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of ends when the transfer fee was dkk 14m?`:
```sql
                SELECT COUNT("ends") FROM "squad_information" WHERE "transfer_fee"='dkk 14m';
```
## Task
Generate a SQL query to answer the following question:
`Who had a transfer fee of dkk 6m?`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" text,
  "goals" real,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a transfer fee of dkk 6m?`:
```sql
                SELECT "name" FROM "squad_information" WHERE "transfer_fee"='dkk 6m';
```
## Task
Generate a SQL query to answer the following question:
`Craig Parry with a score of 68-68=136 is in what place?`

### 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 `Craig Parry with a score of 68-68=136 is in what place?`:
```sql
                SELECT "place" FROM "second_round" WHERE "score"='68-68=136' AND "player"='craig parry';
```
## Task
Generate a SQL query to answer the following question:
`What place is the golfer in who is from Spain?`

### 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 place is the golfer in who is from Spain?`:
```sql
                SELECT "place" FROM "second_round" WHERE "country"='spain';
```
## Task
Generate a SQL query to answer the following question:
`For what country does the golfer play who has a score of 72-65=137?`

### 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 `For what country does the golfer play who has a score of 72-65=137?`:
```sql
                SELECT "country" FROM "second_round" WHERE "score"='72-65=137';
```
## Task
Generate a SQL query to answer the following question:
`Golfer Steve Pate is in what place?`

### 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 `Golfer Steve Pate is in what place?`:
```sql
                SELECT "place" FROM "second_round" WHERE "player"='steve pate';
```
## Task
Generate a SQL query to answer the following question:
`Which Bolton Wanderers career has 293 Apps?`

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

CREATE TABLE "list_of_players" (
  "nationality" text,
  "position" text,
  "bolton_wanderers_career" text,
  "apps" real,
  "total" real,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bolton Wanderers career has 293 Apps?`:
```sql
                SELECT "bolton_wanderers_career" FROM "list_of_players" WHERE "apps"=293;
```
## Task
Generate a SQL query to answer the following question:
`Which Bolton Wanderers career has a Total larger than 404, and a Position of fw, and Apps less than 492, and 79 Goals?`

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

CREATE TABLE "list_of_players" (
  "nationality" text,
  "position" text,
  "bolton_wanderers_career" text,
  "apps" real,
  "total" real,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bolton Wanderers career has a Total larger than 404, and a Position of fw, and Apps less than 492, and 79 Goals?`:
```sql
                SELECT "bolton_wanderers_career" FROM "list_of_players" WHERE "total">404 AND "position"='fw' AND "apps"<492 AND "goals"='79';
```
## Task
Generate a SQL query to answer the following question:
`How many apps have 28 goals, and a Total smaller than 191?`

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

CREATE TABLE "list_of_players" (
  "nationality" text,
  "position" text,
  "bolton_wanderers_career" text,
  "apps" real,
  "total" real,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many apps have 28 goals, and a Total smaller than 191?`:
```sql
                SELECT SUM("apps") FROM "list_of_players" WHERE "goals"='28' AND "total"<191;
```
## Task
Generate a SQL query to answer the following question:
`On what Date is Sheffield Wednesday the Home team?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date is Sheffield Wednesday the Home team?`:
```sql
                SELECT "date" FROM "second_round_proper" WHERE "home_team"='sheffield wednesday';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tie no of the Blackburn Rovers Away game?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tie no of the Blackburn Rovers Away game?`:
```sql
                SELECT "tie_no" FROM "second_round_proper" WHERE "away_team"='blackburn rovers';
```
## Task
Generate a SQL query to answer the following question:
`What is the Away team at the Wolverhampton Wanderers Home game with a Score of 2–0?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Away team at the Wolverhampton Wanderers Home game with a Score of 2–0?`:
```sql
                SELECT "away_team" FROM "second_round_proper" WHERE "score"='2–0' AND "home_team"='wolverhampton wanderers';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team at the Blackburn Rovers Away game?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team at the Blackburn Rovers Away game?`:
```sql
                SELECT "home_team" FROM "second_round_proper" WHERE "away_team"='blackburn rovers';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home team in the game with a Score of 2–3?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team in the game with a Score of 2–3?`:
```sql
                SELECT "home_team" FROM "second_round_proper" WHERE "score"='2–3';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1st leg with Team 2 Lyon?`

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

CREATE TABLE "third_round" (
  "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 1st leg with Team 2 Lyon?`:
```sql
                SELECT "1st_leg" FROM "third_round" WHERE "team_2"='lyon';
```
## Task
Generate a SQL query to answer the following question:
`Which team is Team 1 with a Team 2 being Sporting CP?`

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

CREATE TABLE "third_round" (
  "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 `Which team is Team 1 with a Team 2 being Sporting CP?`:
```sql
                SELECT "team_1" FROM "third_round" WHERE "team_2"='sporting cp';
```
## Task
Generate a SQL query to answer the following question:
`What is the second leg for Team 1 Servette?`

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

CREATE TABLE "third_round" (
  "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 second leg for Team 1 Servette?`:
```sql
                SELECT "2nd_leg" FROM "third_round" WHERE "team_1"='servette';
```
## Task
Generate a SQL query to answer the following question:
`What was the 1999 Tournament at the US Open?`

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

CREATE TABLE "grand_slam_singles_performance_timeline" (
  "tournament" text,
  "1988" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 1999 Tournament at the US Open?`:
```sql
                SELECT "1999" FROM "grand_slam_singles_performance_timeline" WHERE "tournament"='us open';
```
## Task
Generate a SQL query to answer the following question:
`What tournament was an A 1988, and a 2R 1999?`

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

CREATE TABLE "grand_slam_singles_performance_timeline" (
  "tournament" text,
  "1988" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament was an A 1988, and a 2R 1999?`:
```sql
                SELECT "tournament" FROM "grand_slam_singles_performance_timeline" WHERE "1988"='a' AND "1999"='2r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1991 for 2R 1999?`

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

CREATE TABLE "grand_slam_singles_performance_timeline" (
  "tournament" text,
  "1988" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1991 for 2R 1999?`:
```sql
                SELECT "1991" FROM "grand_slam_singles_performance_timeline" WHERE "1999"='2r';
```