cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the average Finish, when Team is "Buck Baker", and when Start is less than 13?`

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

CREATE TABLE "daytona_500_results" (
  "year" real,
  "manufacturer" text,
  "start" real,
  "finish" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Finish, when Team is "Buck Baker", and when Start is less than 13?`:
```sql
                SELECT AVG("finish") FROM "daytona_500_results" WHERE "team"='buck baker' AND "start"<13;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Year, when Start is "11"?`

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

CREATE TABLE "daytona_500_results" (
  "year" real,
  "manufacturer" text,
  "start" real,
  "finish" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Year, when Start is "11"?`:
```sql
                SELECT AVG("year") FROM "daytona_500_results" WHERE "start"=11;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Year, when Finish is "29", and when Start is less than 24?`

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

CREATE TABLE "daytona_500_results" (
  "year" real,
  "manufacturer" text,
  "start" real,
  "finish" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Year, when Finish is "29", and when Start is less than 24?`:
```sql
                SELECT MIN("year") FROM "daytona_500_results" WHERE "finish"=29 AND "start"<24;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Year, when Finish is "51", and when Start is less than 64?`

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

CREATE TABLE "daytona_500_results" (
  "year" real,
  "manufacturer" text,
  "start" real,
  "finish" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Year, when Finish is "51", and when Start is less than 64?`:
```sql
                SELECT MAX("year") FROM "daytona_500_results" WHERE "finish"=51 AND "start"<64;
```
## Task
Generate a SQL query to answer the following question:
`What is Manufacturer, when Finish is greater than 29, when Start is less than 23, and when Year is "1973"?`

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

CREATE TABLE "daytona_500_results" (
  "year" real,
  "manufacturer" text,
  "start" real,
  "finish" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Manufacturer, when Finish is greater than 29, when Start is less than 23, and when Year is "1973"?`:
```sql
                SELECT "manufacturer" FROM "daytona_500_results" WHERE "finish">29 AND "start"<23 AND "year"=1973;
```
## Task
Generate a SQL query to answer the following question:
`What is the opposing team with 11 against?`

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

CREATE TABLE "2009" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the opposing team with 11 against?`:
```sql
                SELECT "opposing_teams" FROM "2009" WHERE "against"=11;
```
## Task
Generate a SQL query to answer the following question:
`What is the venue where Argentina was the opposing team in a test match?`

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

CREATE TABLE "2009" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue where Argentina was the opposing team in a test match?`:
```sql
                SELECT "venue" FROM "2009" WHERE "opposing_teams"='argentina' AND "status"='test match';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of the game against France with more than 16 against?`

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

CREATE TABLE "1972" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of the game against France with more than 16 against?`:
```sql
                SELECT "status" FROM "1972" WHERE "against">16 AND "opposing_teams"='france';
```
## Task
Generate a SQL query to answer the following question:
`On what date is there a status of Five Nations and an against of 23?`

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

CREATE TABLE "1972" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date is there a status of Five Nations and an against of 23?`:
```sql
                SELECT "date" FROM "1972" WHERE "status"='five nations' AND "against"=23;
```
## Task
Generate a SQL query to answer the following question:
`What model has a number built smaller than 6.526, and the Chassis code w109.015?`

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

CREATE TABLE "w109" (
  "model" text,
  "chassis_code" text,
  "production_time" text,
  "number_built" real,
  "engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `What model has a number built smaller than 6.526, and the Chassis code w109.015?`:
```sql
                SELECT "model" FROM "w109" WHERE "number_built"<6.526 AND "chassis_code"='w109.015';
```
## Task
Generate a SQL query to answer the following question:
`What was the record at Tiger Stadium?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record at Tiger Stadium?`:
```sql
                SELECT "record" FROM "schedule" WHERE "game_site"='tiger stadium';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance on September 19, 1971, after week 1?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance on September 19, 1971, after week 1?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "date"='september 19, 1971' AND "week">1;
```
## Task
Generate a SQL query to answer the following question:
`How many Bronze medals did the team ranked 1 win?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Bronze medals did the team ranked 1 win?`:
```sql
                SELECT "bronze" FROM "medal_table" WHERE "rank"='1';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the person who plays the GK position and is from the Wolverhampton Wanderers?`

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

CREATE TABLE "loan_in" (
  "date_from" text,
  "date_to" text,
  "position" text,
  "name" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the person who plays the GK position and is from the Wolverhampton Wanderers?`:
```sql
                SELECT "name" FROM "loan_in" WHERE "position"='gk' AND "from"='wolverhampton wanderers';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for Liverpool, and player Robbie Threlfall?`

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

CREATE TABLE "loan_in" (
  "date_from" text,
  "date_to" text,
  "position" text,
  "name" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for Liverpool, and player Robbie Threlfall?`:
```sql
                SELECT "date_from" FROM "loan_in" WHERE "from"='liverpool' AND "name"='robbie threlfall';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for Watford and player Lionel Ainsworth?`

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

CREATE TABLE "loan_in" (
  "date_from" text,
  "date_to" text,
  "position" text,
  "name" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for Watford and player Lionel Ainsworth?`:
```sql
                SELECT "date_to" FROM "loan_in" WHERE "from"='watford' AND "name"='lionel ainsworth';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the MF position and player Jennison Myrie-Williams?`

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

CREATE TABLE "loan_in" (
  "date_from" text,
  "date_to" text,
  "position" text,
  "name" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the MF position and player Jennison Myrie-Williams?`:
```sql
                SELECT "date_from" FROM "loan_in" WHERE "position"='mf' AND "name"='jennison myrie-williams';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the player from Leicester City?`

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

CREATE TABLE "loan_in" (
  "date_from" text,
  "date_to" text,
  "position" text,
  "name" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player from Leicester City?`:
```sql
                SELECT "position" FROM "loan_in" WHERE "from"='leicester city';
```
## Task
Generate a SQL query to answer the following question:
`What Goals has a Team of zamora, and Average larger than 0.89?`

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

CREATE TABLE "top_goalkeepers" (
  "goalkeeper" text,
  "goals" real,
  "matches" real,
  "average" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Goals has a Team of zamora, and Average larger than 0.89?`:
```sql
                SELECT AVG("goals") FROM "top_goalkeepers" WHERE "team"='zamora' AND "average">0.89;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Goals win an Average larger than 1?`

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

CREATE TABLE "top_goalkeepers" (
  "goalkeeper" text,
  "goals" real,
  "matches" real,
  "average" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Goals win an Average larger than 1?`:
```sql
                SELECT COUNT("goals") FROM "top_goalkeepers" WHERE "average">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest Matches with a Goalkeeper of josé bermúdez, and Goals larger than 18?`

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

CREATE TABLE "top_goalkeepers" (
  "goalkeeper" text,
  "goals" real,
  "matches" real,
  "average" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest Matches with a Goalkeeper of josé bermúdez, and Goals larger than 18?`:
```sql
                SELECT MIN("matches") FROM "top_goalkeepers" WHERE "goalkeeper"='josé bermúdez' AND "goals">18;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of Matches with Goals of 18, and an Average larger than 0.55?`

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

CREATE TABLE "top_goalkeepers" (
  "goalkeeper" text,
  "goals" real,
  "matches" real,
  "average" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of Matches with Goals of 18, and an Average larger than 0.55?`:
```sql
                SELECT SUM("matches") FROM "top_goalkeepers" WHERE "goals"=18 AND "average">0.55;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest Average with Goals smaller than 34, Matches larger than 30, and a Team of cultural leonesa?`

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

CREATE TABLE "top_goalkeepers" (
  "goalkeeper" text,
  "goals" real,
  "matches" real,
  "average" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest Average with Goals smaller than 34, Matches larger than 30, and a Team of cultural leonesa?`:
```sql
                SELECT MAX("average") FROM "top_goalkeepers" WHERE "goals"<34 AND "matches">30 AND "team"='cultural leonesa';
```
## Task
Generate a SQL query to answer the following question:
`Which To par has a Score of 78-74-71-75=298?`

### 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" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which To par has a Score of 78-74-71-75=298?`:
```sql
                SELECT AVG("to_par") FROM "final_leaderboard" WHERE "score"='78-74-71-75=298';
```
## Task
Generate a SQL query to answer the following question:
`How much To par has a Country of united states, and a Money ($) of 90?`

### 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" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much To par has a Country of united states, and a Money ($) of 90?`:
```sql
                SELECT COUNT("to_par") FROM "final_leaderboard" WHERE "country"='united states' AND "money"=90;
```
## Task
Generate a SQL query to answer the following question:
`What is are the highest matches with £5,000 in prize money?`

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

CREATE TABLE "calendar" (
  "round" text,
  "date" text,
  "matches" real,
  "clubs" text,
  "new_entries_this_round" text,
  "prize_money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is are the highest matches with £5,000 in prize money?`:
```sql
                SELECT MAX("matches") FROM "calendar" WHERE "prize_money"='£5,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the prize money amount after match 1, with 102 new entries to the round?`

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

CREATE TABLE "calendar" (
  "round" text,
  "date" text,
  "matches" real,
  "clubs" text,
  "new_entries_this_round" text,
  "prize_money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the prize money amount after match 1, with 102 new entries to the round?`:
```sql
                SELECT "prize_money" FROM "calendar" WHERE "matches">1 AND "new_entries_this_round"='102';
```
## Task
Generate a SQL query to answer the following question:
`In what place did Darren Clarke finish?`

### 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 `In what place did Darren Clarke finish?`:
```sql
                SELECT "place" FROM "third_round" WHERE "player"='darren clarke';
```
## Task
Generate a SQL query to answer the following question:
`What was Ernie Els's score?`

### 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 Ernie Els's score?`:
```sql
                SELECT "score" FROM "third_round" WHERE "player"='ernie els';
```
## Task
Generate a SQL query to answer the following question:
`In what place did Tom Lehman finish?`

### 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 `In what place did Tom Lehman finish?`:
```sql
                SELECT "place" FROM "third_round" WHERE "player"='tom lehman';
```
## Task
Generate a SQL query to answer the following question:
`In what place did the golfer that scored 68-70-69=207 finish?`

### 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 `In what place did the golfer that scored 68-70-69=207 finish?`:
```sql
                SELECT "place" FROM "third_round" WHERE "score"='68-70-69=207';
```
## Task
Generate a SQL query to answer the following question:
`What were the highest laps for glenn seton gregg hansford?`

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

CREATE TABLE "results" (
  "pos" text,
  "class" text,
  "entrant" text,
  "drivers" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the highest laps for glenn seton gregg hansford?`:
```sql
                SELECT MAX("laps") FROM "results" WHERE "drivers"='glenn seton gregg hansford';
```
## Task
Generate a SQL query to answer the following question:
`What driver had 101 laps?`

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

CREATE TABLE "results" (
  "pos" text,
  "class" text,
  "entrant" text,
  "drivers" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What driver had 101 laps?`:
```sql
                SELECT "drivers" FROM "results" WHERE "laps"=101;
```
## Task
Generate a SQL query to answer the following question:
`Gary Barnett who has been in 0 FA Cups plays what position?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Gary Barnett who has been in 0 FA Cups plays what position?`:
```sql
                SELECT "position" FROM "appearances_and_goals" WHERE "fa_cup_apps"='0' AND "name"='gary barnett';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum league cup goals when there has been 0 FA cup appearances, and MF is the position, with 1 league appearance, and smaller than 0 total goals?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum league cup goals when there has been 0 FA cup appearances, and MF is the position, with 1 league appearance, and smaller than 0 total goals?`:
```sql
                SELECT MAX("league_cup_goals") FROM "appearances_and_goals" WHERE "fa_cup_apps"='0' AND "position"='mf' AND "league_apps"='1' AND "total_goals"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many FLT appearances for the player with less than 5 total goals, and 3 FA Cup appearances, 4 league goals, and plays MF?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many FLT appearances for the player with less than 5 total goals, and 3 FA Cup appearances, 4 league goals, and plays MF?`:
```sql
                SELECT "flt_apps" FROM "appearances_and_goals" WHERE "total_goals"<5 AND "fa_cup_apps"='3' AND "position"='mf' AND "league_goals"=4;
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when the attendance was 87,453?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponentnum" text,
  "rank_num" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when the attendance was 87,453?`:
```sql
                SELECT "opponentnum" FROM "schedule" WHERE "attendance"='87,453';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance when they had a ranking of #4?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponentnum" text,
  "rank_num" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance when they had a ranking of #4?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "rank_num"='4';
```
## Task
Generate a SQL query to answer the following question:
`What's the average Played for a draw of 5 and more than 43 points?`

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

CREATE TABLE "final_table" (
  "pos" real,
  "club" text,
  "points" real,
  "played" real,
  "wins" real,
  "draw" real,
  "lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average Played for a draw of 5 and more than 43 points?`:
```sql
                SELECT AVG("played") FROM "final_table" WHERE "draw"=5 AND "points">43;
```
## Task
Generate a SQL query to answer the following question:
`What is the government salary of the Undersecretary with a Romanised name of Chen Wei-On, Kenneth?`

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

CREATE TABLE "undersecretaries" (
  "romanised_name" text,
  "chinese_name" text,
  "age_at_appointment" real,
  "foreign_nationality" text,
  "portfolio_attachment" text,
  "govt_salary" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the government salary of the Undersecretary with a Romanised name of Chen Wei-On, Kenneth?`:
```sql
                SELECT "govt_salary" FROM "undersecretaries" WHERE "romanised_name"='chen wei-on, kenneth';
```
## Task
Generate a SQL query to answer the following question:
`What is the portfolio attachment of the Undersecretary appointed at age 48 with a Chinese name of 梁鳳儀?`

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

CREATE TABLE "undersecretaries" (
  "romanised_name" text,
  "chinese_name" text,
  "age_at_appointment" real,
  "foreign_nationality" text,
  "portfolio_attachment" text,
  "govt_salary" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the portfolio attachment of the Undersecretary appointed at age 48 with a Chinese name of 梁鳳儀?`:
```sql
                SELECT "portfolio_attachment" FROM "undersecretaries" WHERE "age_at_appointment"=48 AND "chinese_name"='梁鳳儀';
```
## Task
Generate a SQL query to answer the following question:
`What is the Romanised name of the Undersecretary with an education portfolio attachment?`

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

CREATE TABLE "undersecretaries" (
  "romanised_name" text,
  "chinese_name" text,
  "age_at_appointment" real,
  "foreign_nationality" text,
  "portfolio_attachment" text,
  "govt_salary" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Romanised name of the Undersecretary with an education portfolio attachment?`:
```sql
                SELECT "romanised_name" FROM "undersecretaries" WHERE "portfolio_attachment"='education';
```
## Task
Generate a SQL query to answer the following question:
`What is the best top 10 when there are fewer than 0 wins?`

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

CREATE TABLE "lpga_tour_career_summary" (
  "year" text,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "top_10s" real,
  "best_finish" text,
  "earnings" text,
  "money_list_rank" text,
  "scoring_average" text,
  "scoring_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the best top 10 when there are fewer than 0 wins?`:
```sql
                SELECT MAX("top_10s") FROM "lpga_tour_career_summary" WHERE "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`Where did naylor move from?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did naylor move from?`:
```sql
                SELECT "moving_from" FROM "in" WHERE "name"='naylor';
```
## Task
Generate a SQL query to answer the following question:
`What type ends in 2011, has a free transfer fee, and is sourced in leeds united?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type ends in 2011, has a free transfer fee, and is sourced in leeds united?`:
```sql
                SELECT "type" FROM "in" WHERE "ends"='2011' AND "transfer_fee"='free' AND "source"='leeds united';
```
## Task
Generate a SQL query to answer the following question:
`What is the type of sco country?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of sco country?`:
```sql
                SELECT "type" FROM "in" WHERE "country"='sco';
```
## Task
Generate a SQL query to answer the following question:
`What is the type that ends in 2009?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type that ends in 2009?`:
```sql
                SELECT "type" FROM "in" WHERE "ends"='2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the transfer fee of assoumani, who has a summer transfer window?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer fee of assoumani, who has a summer transfer window?`:
```sql
                SELECT "transfer_fee" FROM "in" WHERE "transfer_window"='summer' AND "name"='assoumani';
```
## Task
Generate a SQL query to answer the following question:
`What is the ends with a free transfer fee and was moved from middlesbrough?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ends with a free transfer fee and was moved from middlesbrough?`:
```sql
                SELECT "ends" FROM "in" WHERE "transfer_fee"='free' AND "moving_from"='middlesbrough';
```
## Task
Generate a SQL query to answer the following question:
`Which Week has Attendance of 51,558?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Week has Attendance of 51,558?`:
```sql
                SELECT MIN("week") FROM "regular_season" WHERE "attendance"='51,558';
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a Result of w 24-14, and a Week smaller than 7?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has a Result of w 24-14, and a Week smaller than 7?`:
```sql
                SELECT SUM("attendance") FROM "regular_season" WHERE "result"='w 24-14' AND "week"<7;
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has an Opponent of at los angeles rams, and a Week larger than 12?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has an Opponent of at los angeles rams, and a Week larger than 12?`:
```sql
                SELECT MAX("attendance") FROM "regular_season" WHERE "opponent"='at los angeles rams' AND "week">12;
```
## Task
Generate a SQL query to answer the following question:
`Which method has a record of 4-0?`

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

CREATE TABLE "kickboxing_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "method" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which method has a record of 4-0?`:
```sql
                SELECT "method" FROM "kickboxing_record" WHERE "record"='4-0';
```
## Task
Generate a SQL query to answer the following question:
`What is the record when the method is decision and the location is Martigues, France?`

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

CREATE TABLE "kickboxing_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "method" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record when the method is decision and the location is Martigues, France?`:
```sql
                SELECT "record" FROM "kickboxing_record" WHERE "method"='decision' AND "location"='martigues, france';
```
## Task
Generate a SQL query to answer the following question:
`Which location has a method of decision and Nikos Tsoukalas for an opponent?`

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

CREATE TABLE "kickboxing_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "method" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location has a method of decision and Nikos Tsoukalas for an opponent?`:
```sql
                SELECT "location" FROM "kickboxing_record" WHERE "method"='decision' AND "opponent"='nikos tsoukalas';
```
## Task
Generate a SQL query to answer the following question:
`What is the method when the location is Auckland, New Zealand, Darren Berry as the opponent, and resulted in a win?`

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

CREATE TABLE "kickboxing_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "method" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the method when the location is Auckland, New Zealand, Darren Berry as the opponent, and resulted in a win?`:
```sql
                SELECT "method" FROM "kickboxing_record" WHERE "location"='auckland, new zealand' AND "result"='win' AND "opponent"='darren berry';
```
## Task
Generate a SQL query to answer the following question:
`What is the location when the record is 9-7?`

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

CREATE TABLE "kickboxing_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "method" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location when the record is 9-7?`:
```sql
                SELECT "location" FROM "kickboxing_record" WHERE "record"='9-7';
```
## Task
Generate a SQL query to answer the following question:
`What is the location when KO is the method, the result is a win, and the record is 2-0?`

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

CREATE TABLE "kickboxing_record" (
  "result" text,
  "record" text,
  "opponent" text,
  "method" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location when KO is the method, the result is a win, and the record is 2-0?`:
```sql
                SELECT "location" FROM "kickboxing_record" WHERE "method"='ko' AND "result"='win' AND "record"='2-0';
```
## Task
Generate a SQL query to answer the following question:
`What 1:00 pm has a 6:30 pm of local programs, and a 7:30 am of animaniacs?`

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

CREATE TABLE "fall_1998" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 1:00 pm has a 6:30 pm of local programs, and a 7:30 am of animaniacs?`:
```sql
                SELECT "1_00_pm" FROM "fall_1998" WHERE "6_30_pm"='local programs' AND "7_30_am"='animaniacs';
```
## Task
Generate a SQL query to answer the following question:
`What 8:00 am has a 3:00 pm of space goofs (mon) spider-man (tue-fri)?`

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

CREATE TABLE "fall_1998" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 8:00 am has a 3:00 pm of space goofs (mon) spider-man (tue-fri)?`:
```sql
                SELECT "8_00_am" FROM "fall_1998" WHERE "3_00_pm"='space goofs (mon) spider-man (tue-fri)';
```
## Task
Generate a SQL query to answer the following question:
`What 1:00 pm has an 11:00 am of the view?`

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

CREATE TABLE "fall_1998" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 1:00 pm has an 11:00 am of the view?`:
```sql
                SELECT "1_00_pm" FROM "fall_1998" WHERE "11_00_am"='the view';
```
## Task
Generate a SQL query to answer the following question:
`What 1:30 pm has a 3:00 pm of local programs?`

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

CREATE TABLE "fall_1998" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 1:30 pm has a 3:00 pm of local programs?`:
```sql
                SELECT "1_30_pm" FROM "fall_1998" WHERE "3_00_pm"='local programs';
```
## Task
Generate a SQL query to answer the following question:
`What 12:30 pm has an 8:00 am of the today show with katie couric & matt lauer?`

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

CREATE TABLE "fall_1998" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 12:30 pm has an 8:00 am of the today show with katie couric & matt lauer?`:
```sql
                SELECT "12_30_pm" FROM "fall_1998" WHERE "8_00_am"='the today show with katie couric & matt lauer';
```
## Task
Generate a SQL query to answer the following question:
`What 1:00 pm has a 4:30 pm of local programs, and a 7:30 am of the today show with katie couric & matt lauer?`

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

CREATE TABLE "fall_1998" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 1:00 pm has a 4:30 pm of local programs, and a 7:30 am of the today show with katie couric & matt lauer?`:
```sql
                SELECT "1_00_pm" FROM "fall_1998" WHERE "4_30_pm"='local programs' AND "7_30_am"='the today show with katie couric & matt lauer';
```
## Task
Generate a SQL query to answer the following question:
`What are the total deaths from the Battle of Tel Hai prior to Israel's independence?`

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

CREATE TABLE "arab_violence" (
  "conflicts_prior_to_israel_s_independence" text,
  "military_deaths" text,
  "civilian_deaths" text,
  "total_deaths" text,
  "military_and_or_civilian_wounded" text,
  "total_casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the total deaths from the Battle of Tel Hai prior to Israel's independence?`:
```sql
                SELECT "total_deaths" FROM "arab_violence" WHERE "conflicts_prior_to_israel_s_independence"='battle of tel hai';
```
## Task
Generate a SQL query to answer the following question:
`What are the total casualties with 1,200+ military and/or civilian wounded?`

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

CREATE TABLE "arab_violence" (
  "conflicts_prior_to_israel_s_independence" text,
  "military_deaths" text,
  "civilian_deaths" text,
  "total_deaths" text,
  "military_and_or_civilian_wounded" text,
  "total_casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the total casualties with 1,200+ military and/or civilian wounded?`:
```sql
                SELECT "total_casualties" FROM "arab_violence" WHERE "military_and_or_civilian_wounded"='1,200+';
```
## Task
Generate a SQL query to answer the following question:
`How many military deaths were there when there were 1,615 total casualties?`

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

CREATE TABLE "arab_violence" (
  "conflicts_prior_to_israel_s_independence" text,
  "military_deaths" text,
  "civilian_deaths" text,
  "total_deaths" text,
  "military_and_or_civilian_wounded" text,
  "total_casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many military deaths were there when there were 1,615 total casualties?`:
```sql
                SELECT "military_deaths" FROM "arab_violence" WHERE "total_casualties"='1,615';
```
## Task
Generate a SQL query to answer the following question:
`How many military deaths were there when there were 1,200+ military and/or civilian wounded?`

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

CREATE TABLE "arab_violence" (
  "conflicts_prior_to_israel_s_independence" text,
  "military_deaths" text,
  "civilian_deaths" text,
  "total_deaths" text,
  "military_and_or_civilian_wounded" text,
  "total_casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many military deaths were there when there were 1,200+ military and/or civilian wounded?`:
```sql
                SELECT "military_deaths" FROM "arab_violence" WHERE "military_and_or_civilian_wounded"='1,200+';
```
## Task
Generate a SQL query to answer the following question:
`How many deaths were there when the total casualties were 6?`

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

CREATE TABLE "arab_violence" (
  "conflicts_prior_to_israel_s_independence" text,
  "military_deaths" text,
  "civilian_deaths" text,
  "total_deaths" text,
  "military_and_or_civilian_wounded" text,
  "total_casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many deaths were there when the total casualties were 6?`:
```sql
                SELECT "total_deaths" FROM "arab_violence" WHERE "total_casualties"='6';
```
## Task
Generate a SQL query to answer the following question:
`Which country scored 70-68-71-71=280?`

### 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 country scored 70-68-71-71=280?`:
```sql
                SELECT "country" FROM "final_leaderboard" WHERE "score"='70-68-71-71=280';
```
## Task
Generate a SQL query to answer the following question:
`What champions have 1 (2009) as the semi-finalists?`

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

CREATE TABLE "performance_by_team" (
  "champions" text,
  "runners_up" text,
  "third_place" text,
  "fourth_place" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What champions have 1 (2009) as the semi-finalists?`:
```sql
                SELECT "champions" FROM "performance_by_team" WHERE "semi_finalists"='1 (2009)';
```
## Task
Generate a SQL query to answer the following question:
`What fourth-place has 2 (1999, 2005) as the runner(s)-up?`

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

CREATE TABLE "performance_by_team" (
  "champions" text,
  "runners_up" text,
  "third_place" text,
  "fourth_place" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What fourth-place has 2 (1999, 2005) as the runner(s)-up?`:
```sql
                SELECT "fourth_place" FROM "performance_by_team" WHERE "runners_up"='2 (1999, 2005)';
```
## Task
Generate a SQL query to answer the following question:
`What semi-finalists has 2 (1993, 2003) as the fourth-place?`

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

CREATE TABLE "performance_by_team" (
  "champions" text,
  "runners_up" text,
  "third_place" text,
  "fourth_place" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What semi-finalists has 2 (1993, 2003) as the fourth-place?`:
```sql
                SELECT "semi_finalists" FROM "performance_by_team" WHERE "fourth_place"='2 (1993, 2003)';
```
## Task
Generate a SQL query to answer the following question:
`What runner(s)-up has 1 (2013) as the champions?`

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

CREATE TABLE "performance_by_team" (
  "champions" text,
  "runners_up" text,
  "third_place" text,
  "fourth_place" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What runner(s)-up has 1 (2013) as the champions?`:
```sql
                SELECT "runners_up" FROM "performance_by_team" WHERE "champions"='1 (2013)';
```
## Task
Generate a SQL query to answer the following question:
`What was the day of vacancy for vitória de guimarães?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manage" text,
  "manner" text,
  "date_of_vacancy" text,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the day of vacancy for vitória de guimarães?`:
```sql
                SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "team"='vitória de guimarães';
```