cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`For End of Fiscal Year(s) with as % of GDP (Treas/MW, OMB or OMB/MW) of 28 and Gross Debt in $Billions undeflated Treas. smaller than 370.9 what would be the sum of Debt Held By Public ($Billions)?`

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

CREATE TABLE "deficit_spending" (
  "end_of_fiscal_year" real,
  "gross_debt_in_billions_undeflated_treas" real,
  "as_pct_of_gdp_low_high" text,
  "debt_held_by_public_billions" real,
  "as_pct_of_gdp_treas_mw_omb_or_omb_mw" real,
  "gdp_billions_omb_bea_est_mw_com" text
);
### SQL
Given the database schema, here is the SQL query that answers `For End of Fiscal Year(s) with as % of GDP (Treas/MW, OMB or OMB/MW) of 28 and Gross Debt in $Billions undeflated Treas. smaller than 370.9 what would be the sum of Debt Held By Public ($Billions)?`:
```sql
                SELECT COUNT("debt_held_by_public_billions") FROM "deficit_spending" WHERE "as_pct_of_gdp_treas_mw_omb_or_omb_mw"=28 AND "gross_debt_in_billions_undeflated_treas"<370.9;
```
## Task
Generate a SQL query to answer the following question:
`For End of Fiscal Year(s) with a Debt Held By Public ($Billions) larger than 236.8, and as % of GDP Low-High of 33.4 what is the sum of the number of Gross Debt in $Billions undeflated Treas.?`

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

CREATE TABLE "deficit_spending" (
  "end_of_fiscal_year" real,
  "gross_debt_in_billions_undeflated_treas" real,
  "as_pct_of_gdp_low_high" text,
  "debt_held_by_public_billions" real,
  "as_pct_of_gdp_treas_mw_omb_or_omb_mw" real,
  "gdp_billions_omb_bea_est_mw_com" text
);
### SQL
Given the database schema, here is the SQL query that answers `For End of Fiscal Year(s) with a Debt Held By Public ($Billions) larger than 236.8, and as % of GDP Low-High of 33.4 what is the sum of the number of Gross Debt in $Billions undeflated Treas.?`:
```sql
                SELECT COUNT("gross_debt_in_billions_undeflated_treas") FROM "deficit_spending" WHERE "debt_held_by_public_billions">236.8 AND "as_pct_of_gdp_low_high"='33.4';
```
## Task
Generate a SQL query to answer the following question:
`What player was selected in Round 6?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player was selected in Round 6?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "round"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the player who played for the Peterborough Petes (OHL)?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the player who played for the Peterborough Petes (OHL)?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "college_junior_club_team_league"='peterborough petes (ohl)';
```
## Task
Generate a SQL query to answer the following question:
`Which round was Mike Peca (C) of Canada selected in?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round was Mike Peca (C) of Canada selected in?`:
```sql
                SELECT SUM("round") FROM "draft_picks" WHERE "nationality"='canada' AND "player"='mike peca (c)';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest grid for Ayrton Senna?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest grid for Ayrton Senna?`:
```sql
                SELECT MIN("grid") FROM "race" WHERE "driver"='ayrton senna';
```
## Task
Generate a SQL query to answer the following question:
`What is the Time/Retired for laps higher than 52 on a grid larger than 21?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time/Retired for laps higher than 52 on a grid larger than 21?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "laps">52 AND "grid">21;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of laps for grid 20?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of laps for grid 20?`:
```sql
                SELECT SUM("laps") FROM "race" WHERE "grid"=20;
```
## Task
Generate a SQL query to answer the following question:
`What is the most laps for Ayrton Senna?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most laps for Ayrton Senna?`:
```sql
                SELECT MAX("laps") FROM "race" WHERE "driver"='ayrton senna';
```
## Task
Generate a SQL query to answer the following question:
`what was the score of the parallel bars with a floor exercise score more than 9.137, vault more than 9.5 and horizontal bar of 9.225?`

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

CREATE TABLE "final" (
  "gymnast" text,
  "floor_exercise" real,
  "pommel_horse" real,
  "rings" real,
  "vault" real,
  "parallel_bars" real,
  "horizontal_bar" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `what was the score of the parallel bars with a floor exercise score more than 9.137, vault more than 9.5 and horizontal bar of 9.225?`:
```sql
                SELECT SUM("parallel_bars") FROM "final" WHERE "floor_exercise">9.137 AND "horizontal_bar"=9.225 AND "vault">9.5;
```
## Task
Generate a SQL query to answer the following question:
`what was the floor exercise score with a pommel horse score of 9.65 and horizontal  bar score more than 9.475?`

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

CREATE TABLE "final" (
  "gymnast" text,
  "floor_exercise" real,
  "pommel_horse" real,
  "rings" real,
  "vault" real,
  "parallel_bars" real,
  "horizontal_bar" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `what was the floor exercise score with a pommel horse score of 9.65 and horizontal  bar score more than 9.475?`:
```sql
                SELECT MAX("floor_exercise") FROM "final" WHERE "pommel_horse"=9.65 AND "horizontal_bar">9.475;
```
## Task
Generate a SQL query to answer the following question:
`Which tournament had A in 2008, and a 1r in 2010?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament had A in 2008, and a 1r in 2010?`:
```sql
                SELECT "tournament" FROM "singles_performance_timeline" WHERE "2008"='a' AND "2010"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What was the position for 2008, where 2012 was q1, and 2010 was 1r?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position for 2008, where 2012 was q1, and 2010 was 1r?`:
```sql
                SELECT "2008" FROM "singles_performance_timeline" WHERE "2012"='q1' AND "2010"='1r';
```
## Task
Generate a SQL query to answer the following question:
`Which venue has a Goal of 3?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue has a Goal of 3?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "goal"=3;
```
## Task
Generate a SQL query to answer the following question:
`Which venue was used on 10 september 2010?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue was used on 10 september 2010?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "date"='10 september 2010';
```
## Task
Generate a SQL query to answer the following question:
`How many carries for the player with under 6 yards and an average of over 5?`

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

CREATE TABLE "running_backs" (
  "player" text,
  "car" real,
  "yards" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many carries for the player with under 6 yards and an average of over 5?`:
```sql
                SELECT COUNT("car") FROM "running_backs" WHERE "yards"<6 AND "avg">5;
```
## Task
Generate a SQL query to answer the following question:
`What was the longest carry for kevin clemens with under 31 yards total?`

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

CREATE TABLE "running_backs" (
  "player" text,
  "car" real,
  "yards" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the longest carry for kevin clemens with under 31 yards total?`:
```sql
                SELECT MAX("long") FROM "running_backs" WHERE "player"='kevin clemens' AND "yards"<31;
```
## Task
Generate a SQL query to answer the following question:
`How many TDs for the player with a long of less than 4 and under 8 yards?`

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

CREATE TABLE "running_backs" (
  "player" text,
  "car" real,
  "yards" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many TDs for the player with a long of less than 4 and under 8 yards?`:
```sql
                SELECT SUM("td_s") FROM "running_backs" WHERE "long"<4 AND "yards"<8;
```
## Task
Generate a SQL query to answer the following question:
`What is the average for the player with 1 TD, over 4 as a long, and under 1 carry?`

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

CREATE TABLE "running_backs" (
  "player" text,
  "car" real,
  "yards" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average for the player with 1 TD, over 4 as a long, and under 1 carry?`:
```sql
                SELECT MIN("avg") FROM "running_backs" WHERE "td_s"=1 AND "long">4 AND "car"<1;
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance at Brunswick Street Oval?`

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

CREATE TABLE "round_6" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at Brunswick Street Oval?`:
```sql
                SELECT COUNT("crowd") FROM "round_6" WHERE "venue"='brunswick street oval';
```
## Task
Generate a SQL query to answer the following question:
`What's listed as the First Day Cover Cancellation with a Date of Issue of 13 June 2005?`

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

CREATE TABLE "2005" (
  "date_of_issue" text,
  "denomination" text,
  "design" text,
  "paper_type" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's listed as the First Day Cover Cancellation with a Date of Issue of 13 June 2005?`:
```sql
                SELECT "first_day_cover_cancellation" FROM "2005" WHERE "date_of_issue"='13 june 2005';
```
## Task
Generate a SQL query to answer the following question:
`What's the First Day Cover Cancellation with Denomination of $0.50 and Date of Issue as 13 June 2005?`

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

CREATE TABLE "2005" (
  "date_of_issue" text,
  "denomination" text,
  "design" text,
  "paper_type" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the First Day Cover Cancellation with Denomination of $0.50 and Date of Issue as 13 June 2005?`:
```sql
                SELECT "first_day_cover_cancellation" FROM "2005" WHERE "denomination"='$0.50' AND "date_of_issue"='13 june 2005';
```
## Task
Generate a SQL query to answer the following question:
`What's the Denomination listed for the Date of Issue 12 April 2005?`

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

CREATE TABLE "2005" (
  "date_of_issue" text,
  "denomination" text,
  "design" text,
  "paper_type" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Denomination listed for the Date of Issue 12 April 2005?`:
```sql
                SELECT "denomination" FROM "2005" WHERE "date_of_issue"='12 april 2005';
```
## Task
Generate a SQL query to answer the following question:
`Which Paper Type has a Denomination of $0.50 and Date of Issue 4 February 2005?`

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

CREATE TABLE "2005" (
  "date_of_issue" text,
  "denomination" text,
  "design" text,
  "paper_type" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Paper Type has a Denomination of $0.50 and Date of Issue 4 February 2005?`:
```sql
                SELECT "paper_type" FROM "2005" WHERE "denomination"='$0.50' AND "date_of_issue"='4 february 2005';
```
## Task
Generate a SQL query to answer the following question:
`What's the Date of Issue for Design of Katalin Kovats?`

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

CREATE TABLE "2005" (
  "date_of_issue" text,
  "denomination" text,
  "design" text,
  "paper_type" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Date of Issue for Design of Katalin Kovats?`:
```sql
                SELECT "date_of_issue" FROM "2005" WHERE "design"='katalin kovats';
```
## Task
Generate a SQL query to answer the following question:
`What was the average for the player that scored 116 yards and had TD's less than 1?`

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

CREATE TABLE "wide_receivers" (
  "player" text,
  "rec" real,
  "yards" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average for the player that scored 116 yards and had TD's less than 1?`:
```sql
                SELECT COUNT("avg") FROM "wide_receivers" WHERE "yards"=116 AND "td_s"<1;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest recorded record for a player with an average larger than 13?`

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

CREATE TABLE "wide_receivers" (
  "player" text,
  "rec" real,
  "yards" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest recorded record for a player with an average larger than 13?`:
```sql
                SELECT MIN("rec") FROM "wide_receivers" WHERE "avg">13;
```
## Task
Generate a SQL query to answer the following question:
`How many yards did Hank Edwards make when he had TD's of 1 and an average higher than 13?`

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

CREATE TABLE "wide_receivers" (
  "player" text,
  "rec" real,
  "yards" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many yards did Hank Edwards make when he had TD's of 1 and an average higher than 13?`:
```sql
                SELECT COUNT("yards") FROM "wide_receivers" WHERE "td_s"=1 AND "player"='hank edwards' AND "avg">13;
```
## Task
Generate a SQL query to answer the following question:
`How many yards were averaged by the player that had a higher than 13 average with less than 18 long?`

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

CREATE TABLE "wide_receivers" (
  "player" text,
  "rec" real,
  "yards" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many yards were averaged by the player that had a higher than 13 average with less than 18 long?`:
```sql
                SELECT AVG("yards") FROM "wide_receivers" WHERE "long"<18 AND "avg">13;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of yards recorded for a player that had more than 4 TD's?`

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

CREATE TABLE "wide_receivers" (
  "player" text,
  "rec" real,
  "yards" real,
  "avg" real,
  "td_s" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of yards recorded for a player that had more than 4 TD's?`:
```sql
                SELECT MAX("yards") FROM "wide_receivers" WHERE "td_s">4;
```
## Task
Generate a SQL query to answer the following question:
`For an airline of Wizz Air and fewer than 83 destinations, what is the highest passenger fleet?`

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

CREATE TABLE "by_scheduled_passengers_carried_millions" (
  "rank" real,
  "airline_holding" text,
  "passenger_fleet" real,
  "current_destinations" real,
  "alliance_association" text
);
### SQL
Given the database schema, here is the SQL query that answers `For an airline of Wizz Air and fewer than 83 destinations, what is the highest passenger fleet?`:
```sql
                SELECT MAX("passenger_fleet") FROM "by_scheduled_passengers_carried_millions" WHERE "airline_holding"='wizz air' AND "current_destinations"<83;
```
## Task
Generate a SQL query to answer the following question:
`Which alliance has a rank of 40?`

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

CREATE TABLE "by_scheduled_passengers_carried_millions" (
  "rank" real,
  "airline_holding" text,
  "passenger_fleet" real,
  "current_destinations" real,
  "alliance_association" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which alliance has a rank of 40?`:
```sql
                SELECT "alliance_association" FROM "by_scheduled_passengers_carried_millions" WHERE "rank"=40;
```
## Task
Generate a SQL query to answer the following question:
`For airlines named Aeroflot Group, what is the alliance?`

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

CREATE TABLE "by_scheduled_passengers_carried_millions" (
  "rank" real,
  "airline_holding" text,
  "passenger_fleet" real,
  "current_destinations" real,
  "alliance_association" text
);
### SQL
Given the database schema, here is the SQL query that answers `For airlines named Aeroflot Group, what is the alliance?`:
```sql
                SELECT "alliance_association" FROM "by_scheduled_passengers_carried_millions" WHERE "airline_holding"='aeroflot group';
```
## Task
Generate a SQL query to answer the following question:
`In which year was a linebacker pick 17?`

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

CREATE TABLE "player_selections" (
  "year" real,
  "pick" text,
  "player_name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which year was a linebacker pick 17?`:
```sql
                SELECT "year" FROM "player_selections" WHERE "position"='linebacker' AND "pick"='17';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the cornerback from 1997?`

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

CREATE TABLE "player_selections" (
  "year" real,
  "pick" text,
  "player_name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the cornerback from 1997?`:
```sql
                SELECT "player_name" FROM "player_selections" WHERE "position"='cornerback' AND "year"=1997;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player from after 1989 from Washington State?`

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

CREATE TABLE "player_selections" (
  "year" real,
  "pick" text,
  "player_name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player from after 1989 from Washington State?`:
```sql
                SELECT "player_name" FROM "player_selections" WHERE "year">1989 AND "college"='washington state';
```
## Task
Generate a SQL query to answer the following question:
`Which race has a Margin of 8?`

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

CREATE TABLE "race_record" (
  "race" text,
  "dist_f" real,
  "course" text,
  "class" text,
  "prize_k" real,
  "odds" text,
  "runners" real,
  "placing" real,
  "margin" text,
  "time" text,
  "jockey" text,
  "trainer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which race has a Margin of 8?`:
```sql
                SELECT "race" FROM "race_record" WHERE "margin"='8';
```
## Task
Generate a SQL query to answer the following question:
`How many Runners have a Placing that isn't 1?`

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

CREATE TABLE "race_record" (
  "race" text,
  "dist_f" real,
  "course" text,
  "class" text,
  "prize_k" real,
  "odds" text,
  "runners" real,
  "placing" real,
  "margin" text,
  "time" text,
  "jockey" text,
  "trainer" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Runners have a Placing that isn't 1?`:
```sql
                SELECT COUNT("runners") FROM "race_record" WHERE "placing">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of Runners that has a Placing that isn't 1?`

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

CREATE TABLE "race_record" (
  "race" text,
  "dist_f" real,
  "course" text,
  "class" text,
  "prize_k" real,
  "odds" text,
  "runners" real,
  "placing" real,
  "margin" text,
  "time" text,
  "jockey" text,
  "trainer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of Runners that has a Placing that isn't 1?`:
```sql
                SELECT MIN("runners") FROM "race_record" WHERE "placing"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Prize amount for the Irish Derby Race?`

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

CREATE TABLE "race_record" (
  "race" text,
  "dist_f" real,
  "course" text,
  "class" text,
  "prize_k" real,
  "odds" text,
  "runners" real,
  "placing" real,
  "margin" text,
  "time" text,
  "jockey" text,
  "trainer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Prize amount for the Irish Derby Race?`:
```sql
                SELECT MIN("prize_k") FROM "race_record" WHERE "race"='irish derby';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the game that resulted in an away team score of 18.17 (125)?`

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

CREATE TABLE "round_4" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game that resulted in an away team score of 18.17 (125)?`:
```sql
                SELECT SUM("crowd") FROM "round_4" WHERE "away_team_score"='18.17 (125)';
```
## Task
Generate a SQL query to answer the following question:
`What was the mintage having an issue price of $1,099.99, artist being Pamela Stagg?`

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

CREATE TABLE "provincial_flowers" (
  "year" real,
  "artist" text,
  "composition" text,
  "mintage" real,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the mintage having an issue price of $1,099.99, artist being Pamela Stagg?`:
```sql
                SELECT AVG("mintage") FROM "provincial_flowers" WHERE "issue_price"='$1,099.99' AND "artist"='pamela stagg';
```
## Task
Generate a SQL query to answer the following question:
`What was the year that had an issue price of $1,295.95?`

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

CREATE TABLE "provincial_flowers" (
  "year" real,
  "artist" text,
  "composition" text,
  "mintage" real,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the year that had an issue price of $1,295.95?`:
```sql
                SELECT AVG("year") FROM "provincial_flowers" WHERE "issue_price"='$1,295.95';
```
## Task
Generate a SQL query to answer the following question:
`What is the composition with an artist of Henry Purdy, a year smaller than 2002, and a mint more than 1,998?`

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

CREATE TABLE "provincial_flowers" (
  "year" real,
  "artist" text,
  "composition" text,
  "mintage" real,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the composition with an artist of Henry Purdy, a year smaller than 2002, and a mint more than 1,998?`:
```sql
                SELECT "composition" FROM "provincial_flowers" WHERE "year"<2002 AND "mintage">'1,998' AND "artist"='henry purdy';
```
## Task
Generate a SQL query to answer the following question:
`What was the average mintage for that of artist Celia Godkin, before the year 2010?`

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

CREATE TABLE "provincial_flowers" (
  "year" real,
  "artist" text,
  "composition" text,
  "mintage" real,
  "issue_price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average mintage for that of artist Celia Godkin, before the year 2010?`:
```sql
                SELECT AVG("mintage") FROM "provincial_flowers" WHERE "artist"='celia godkin' AND "year"<2010;
```
## Task
Generate a SQL query to answer the following question:
`Where is the Venue that has an away team score of 13.16 (94) points?`

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

CREATE TABLE "round_13" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the Venue that has an away team score of 13.16 (94) points?`:
```sql
                SELECT "venue" FROM "round_13" WHERE "away_team_score"='13.16 (94)';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team score at Windy Hill?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team score at Windy Hill?`:
```sql
                SELECT "away_team_score" FROM "round_9" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team at Lake Oval?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team at Lake Oval?`:
```sql
                SELECT "home_team" FROM "round_9" WHERE "venue"='lake oval';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of the crowd when the away team score was 10.18 (78)?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of the crowd when the away team score was 10.18 (78)?`:
```sql
                SELECT COUNT("crowd") FROM "round_9" WHERE "away_team_score"='10.18 (78)';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the crowd over 19,298 when South Melbourne was the home team?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the crowd over 19,298 when South Melbourne was the home team?`:
```sql
                SELECT "date" FROM "round_9" WHERE "crowd">'19,298' AND "home_team"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the home team score 10.14 (74)?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the home team score 10.14 (74)?`:
```sql
                SELECT "date" FROM "round_9" WHERE "home_team_score"='10.14 (74)';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the venue VFL Park?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the venue VFL Park?`:
```sql
                SELECT "date" FROM "round_8" WHERE "venue"='vfl park';
```
## Task
Generate a SQL query to answer the following question:
`Which team was the home team at Glenferrie Oval?`

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

CREATE TABLE "round_8" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team was the home team at Glenferrie Oval?`:
```sql
                SELECT "home_team" FROM "round_8" WHERE "venue"='glenferrie oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the date when Steffi Graf was the opponent in the final and the score was 2–6, 0–6?`

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

CREATE TABLE "singles_37_19_18" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date when Steffi Graf was the opponent in the final and the score was 2–6, 0–6?`:
```sql
                SELECT "date" FROM "singles_37_19_18" WHERE "opponent_in_the_final"='steffi graf' AND "score_in_the_final"='2–6, 0–6';
```
## Task
Generate a SQL query to answer the following question:
`What was the surface where the outcome was winner on 12 march 1989?`

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

CREATE TABLE "singles_37_19_18" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface where the outcome was winner on 12 march 1989?`:
```sql
                SELECT "surface" FROM "singles_37_19_18" WHERE "outcome"='winner' AND "date"='12 march 1989';
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the Tournament of lugano , switzerland wta virginia slims, against bonnie gadusek?`

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

CREATE TABLE "singles_37_19_18" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome of the Tournament of lugano , switzerland wta virginia slims, against bonnie gadusek?`:
```sql
                SELECT "outcome" FROM "singles_37_19_18" WHERE "tournament"='lugano , switzerland wta virginia slims' AND "opponent_in_the_final"='bonnie gadusek';
```
## Task
Generate a SQL query to answer the following question:
`What is the outcome of the match against Sylvia Hanika on a hard (i) surface?`

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

CREATE TABLE "singles_37_19_18" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the outcome of the match against Sylvia Hanika on a hard (i) surface?`:
```sql
                SELECT "outcome" FROM "singles_37_19_18" WHERE "opponent_in_the_final"='sylvia hanika' AND "surface"='hard (i)';
```
## Task
Generate a SQL query to answer the following question:
`What player had numbers of 20`

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

CREATE TABLE "c" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player had numbers of 20`:
```sql
                SELECT "player" FROM "c" WHERE "no_s"='20';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the height in ft for 1999-2004`

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

CREATE TABLE "c" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the height in ft for 1999-2004`:
```sql
                SELECT "height_in_ft" FROM "c" WHERE "years_for_rockets"='1999-2004';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the number for height in ft of 6-7`

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

CREATE TABLE "c" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the number for height in ft of 6-7`:
```sql
                SELECT "no_s" FROM "c" WHERE "height_in_ft"='6-7';
```
## Task
Generate a SQL query to answer the following question:
`What player had a school of missouri`

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

CREATE TABLE "c" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player had a school of missouri`:
```sql
                SELECT "player" FROM "c" WHERE "school_club_team_country"='missouri';
```
## Task
Generate a SQL query to answer the following question:
`What pick # has a team from Rimouski Océanic?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pick # has a team from Rimouski Océanic?`:
```sql
                SELECT AVG("pick_num") FROM "round_three" WHERE "team_from"='rimouski océanic';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player from Hotchkiss School with a position of d?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from Hotchkiss School with a position of d?`:
```sql
                SELECT "player" FROM "round_three" WHERE "position"='d' AND "team_from"='hotchkiss school';
```
## Task
Generate a SQL query to answer the following question:
`What type is the sorrento to sapri course with a distance of km (mi)?`

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

CREATE TABLE "stage_results" (
  "date" text,
  "course" text,
  "distance" text,
  "type" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type is the sorrento to sapri course with a distance of km (mi)?`:
```sql
                SELECT "type" FROM "stage_results" WHERE "distance"='km (mi)' AND "course"='sorrento to sapri';
```
## Task
Generate a SQL query to answer the following question:
`What type is the misurina to bassano del grappa course?`

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

CREATE TABLE "stage_results" (
  "date" text,
  "course" text,
  "distance" text,
  "type" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type is the misurina to bassano del grappa course?`:
```sql
                SELECT "type" FROM "stage_results" WHERE "course"='misurina to bassano del grappa';
```
## Task
Generate a SQL query to answer the following question:
`What's the distance for the chieti to macerata course?`

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

CREATE TABLE "stage_results" (
  "date" text,
  "course" text,
  "distance" text,
  "type" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the distance for the chieti to macerata course?`:
```sql
                SELECT "distance" FROM "stage_results" WHERE "course"='chieti to macerata';
```
## Task
Generate a SQL query to answer the following question:
`Which is the lowest points value that had a Chevrolet car, whose driver was Sterling Marlin, and whose car number was less than 14?`

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

CREATE TABLE "race_results" (
  "driver" text,
  "car_num" real,
  "make" text,
  "points" real,
  "laps" real,
  "winnings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the lowest points value that had a Chevrolet car, whose driver was Sterling Marlin, and whose car number was less than 14?`:
```sql
                SELECT MIN("points") FROM "race_results" WHERE "make"='chevrolet' AND "driver"='sterling marlin' AND "car_num"<14;
```
## Task
Generate a SQL query to answer the following question:
`Which is the lowest point value that had not only a Chevrolet car, but also a car number smaller than 24, total laps of 312, and a winning purse of $122,325?`

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

CREATE TABLE "race_results" (
  "driver" text,
  "car_num" real,
  "make" text,
  "points" real,
  "laps" real,
  "winnings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the lowest point value that had not only a Chevrolet car, but also a car number smaller than 24, total laps of 312, and a winning purse of $122,325?`:
```sql
                SELECT MIN("points") FROM "race_results" WHERE "make"='chevrolet' AND "car_num"<24 AND "laps"=312 AND "winnings"='$122,325';
```
## Task
Generate a SQL query to answer the following question:
`What is the location for the win against Johan Mparmpagiannis?`

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

CREATE TABLE "kickboxing_record" (
  "date" text,
  "result" text,
  "opponent" text,
  "location" text,
  "method" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location for the win against Johan Mparmpagiannis?`:
```sql
                SELECT "location" FROM "kickboxing_record" WHERE "result"='win' AND "opponent"='johan mparmpagiannis';
```
## Task
Generate a SQL query to answer the following question:
`What is the method against Björn Bregy?`

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

CREATE TABLE "kickboxing_record" (
  "date" text,
  "result" text,
  "opponent" text,
  "location" text,
  "method" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the method against Björn Bregy?`:
```sql
                SELECT "method" FROM "kickboxing_record" WHERE "opponent"='björn bregy';
```
## Task
Generate a SQL query to answer the following question:
`What is the method against Paula Mataele?`

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

CREATE TABLE "kickboxing_record" (
  "date" text,
  "result" text,
  "opponent" text,
  "location" text,
  "method" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the method against Paula Mataele?`:
```sql
                SELECT "method" FROM "kickboxing_record" WHERE "opponent"='paula mataele';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the match in Vilnius, Lithuania?`

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

CREATE TABLE "kickboxing_record" (
  "date" text,
  "result" text,
  "opponent" text,
  "location" text,
  "method" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the match in Vilnius, Lithuania?`:
```sql
                SELECT "date" FROM "kickboxing_record" WHERE "location"='vilnius, lithuania';
```
## Task
Generate a SQL query to answer the following question:
`What is the result against Errol Zimmerman on 2007-04-07?`

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

CREATE TABLE "kickboxing_record" (
  "date" text,
  "result" text,
  "opponent" text,
  "location" text,
  "method" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result against Errol Zimmerman on 2007-04-07?`:
```sql
                SELECT "result" FROM "kickboxing_record" WHERE "opponent"='errol zimmerman' AND "date"='2007-04-07';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the match against Martinis Knyzelis?`

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

CREATE TABLE "kickboxing_record" (
  "date" text,
  "result" text,
  "opponent" text,
  "location" text,
  "method" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the match against Martinis Knyzelis?`:
```sql
                SELECT "location" FROM "kickboxing_record" WHERE "opponent"='martinis knyzelis';
```
## Task
Generate a SQL query to answer the following question:
`What day is st kilda the home side?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day is st kilda the home side?`:
```sql
                SELECT "date" FROM "round_16" WHERE "home_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`What is melbourne's away score?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is melbourne's away score?`:
```sql
                SELECT "away_team_score" FROM "round_16" WHERE "away_team"='melbourne';
```