cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the pick for the player with 2 years in the NBA and who plays for the Utah Jazz?`

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

CREATE TABLE "selections" (
  "pick" real,
  "player" text,
  "pos" text,
  "nationality" text,
  "team" text,
  "previous_team" text,
  "nba_years_a" text,
  "career_with_the_franchise_b" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick for the player with 2 years in the NBA and who plays for the Utah Jazz?`:
```sql
                SELECT "pick" FROM "selections" WHERE "nba_years_a"='2' AND "previous_team"='utah jazz';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score for the game in which Carmelo Anthony (26) was the high points scorer?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score for the game in which Carmelo Anthony (26) was the high points scorer?`:
```sql
                SELECT "score" FROM "game_log" WHERE "high_points"='carmelo anthony (26)';
```
## Task
Generate a SQL query to answer the following question:
`In which game number was Chris Andersen (12) the high rebounds scorer?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which game number was Chris Andersen (12) the high rebounds scorer?`:
```sql
                SELECT "game" FROM "game_log" WHERE "high_rebounds"='chris andersen (12)';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score for the game played against @ Milwaukee?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score for the game played against @ Milwaukee?`:
```sql
                SELECT "score" FROM "game_log" WHERE "team"='@ milwaukee';
```
## Task
Generate a SQL query to answer the following question:
`For the game played against the L.A. Lakers, where was the match played and what was the attendance level?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the game played against the L.A. Lakers, where was the match played and what was the attendance level?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "team"='l.a. lakers';
```
## Task
Generate a SQL query to answer the following question:
`What is Name, when Laps is "50", when Grid is greater than 9, when Team is "Jim Beam Racing", and when Time/Retired is "+ 18.0s"?`

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

CREATE TABLE "race_1_results" (
  "name" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Laps is "50", when Grid is greater than 9, when Team is "Jim Beam Racing", and when Time/Retired is "+ 18.0s"?`:
```sql
                SELECT "name" FROM "race_1_results" WHERE "laps"=50 AND "grid">9 AND "team"='jim beam racing' AND "time_retired"='+ 18.0s';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Laps, when Grid is greater than 7, and when Name is "Fabian Coulthard"?`

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

CREATE TABLE "race_1_results" (
  "name" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Laps, when Grid is greater than 7, and when Name is "Fabian Coulthard"?`:
```sql
                SELECT MIN("laps") FROM "race_1_results" WHERE "grid">7 AND "name"='fabian coulthard';
```
## Task
Generate a SQL query to answer the following question:
`What is Time/Retired, when Laps is less than 49, and when Name is "Michael Caruso"?`

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

CREATE TABLE "race_1_results" (
  "name" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Time/Retired, when Laps is less than 49, and when Name is "Michael Caruso"?`:
```sql
                SELECT "time_retired" FROM "race_1_results" WHERE "laps"<49 AND "name"='michael caruso';
```
## Task
Generate a SQL query to answer the following question:
`What is Time/Retired, when Team is "Team Vodafone", and when Grid is greater than 4?`

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

CREATE TABLE "race_1_results" (
  "name" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Time/Retired, when Team is "Team Vodafone", and when Grid is greater than 4?`:
```sql
                SELECT "time_retired" FROM "race_1_results" WHERE "team"='team vodafone' AND "grid">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the draw number of the Artist Dav Mcnamara and a place bigger than 4?`

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

CREATE TABLE "national_final_14_march_1993" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the draw number of the Artist Dav Mcnamara and a place bigger than 4?`:
```sql
                SELECT COUNT("draw") FROM "national_final_14_march_1993" WHERE "artist"='dav mcnamara' AND "place">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the stadium name that has 144 as the runs?`

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

CREATE TABLE "test_cricket" (
  "runs" text,
  "match" text,
  "stadium" text,
  "city_country" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the stadium name that has 144 as the runs?`:
```sql
                SELECT "stadium" FROM "test_cricket" WHERE "runs"='144';
```
## Task
Generate a SQL query to answer the following question:
`For what year was 100* runs happen?`

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

CREATE TABLE "test_cricket" (
  "runs" text,
  "match" text,
  "stadium" text,
  "city_country" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `For what year was 100* runs happen?`:
```sql
                SELECT "year" FROM "test_cricket" WHERE "runs"='100*';
```
## Task
Generate a SQL query to answer the following question:
`How many runs happened in 2013?`

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

CREATE TABLE "test_cricket" (
  "runs" text,
  "match" text,
  "stadium" text,
  "city_country" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many runs happened in 2013?`:
```sql
                SELECT "runs" FROM "test_cricket" WHERE "year"='2013';
```
## Task
Generate a SQL query to answer the following question:
`With 42 as the match what are the runs?`

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

CREATE TABLE "test_cricket" (
  "runs" text,
  "match" text,
  "stadium" text,
  "city_country" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `With 42 as the match what are the runs?`:
```sql
                SELECT "runs" FROM "test_cricket" WHERE "match"='42';
```
## Task
Generate a SQL query to answer the following question:
`In 2009 with 100* runs, what is the match?`

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

CREATE TABLE "test_cricket" (
  "runs" text,
  "match" text,
  "stadium" text,
  "city_country" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 2009 with 100* runs, what is the match?`:
```sql
                SELECT "match" FROM "test_cricket" WHERE "year"='2009' AND "runs"='100*';
```
## Task
Generate a SQL query to answer the following question:
`When the game was played in the stadium called stadium what was the match?`

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

CREATE TABLE "test_cricket" (
  "runs" text,
  "match" text,
  "stadium" text,
  "city_country" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the game was played in the stadium called stadium what was the match?`:
```sql
                SELECT "match" FROM "test_cricket" WHERE "stadium"='stadium';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd round with a score of 3 - 3, and a team 1 fc gueugnon (d2)?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "score" text,
  "team_2" text,
  "1st_round" text,
  "2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd round with a score of 3 - 3, and a team 1 fc gueugnon (d2)?`:
```sql
                SELECT "2nd_round" FROM "round_of_16" WHERE "score"='3 - 3' AND "team_1"='fc gueugnon (d2)';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd round with a score of 3 - 3, and a team 2 fc lorient (d2)?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "score" text,
  "team_2" text,
  "1st_round" text,
  "2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd round with a score of 3 - 3, and a team 2 fc lorient (d2)?`:
```sql
                SELECT "2nd_round" FROM "round_of_16" WHERE "score"='3 - 3' AND "team_2"='fc lorient (d2)';
```
## Task
Generate a SQL query to answer the following question:
`What team 1 has a 2nd round 0 - 1, and a team 2 rc lens (d1)?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "score" text,
  "team_2" text,
  "1st_round" text,
  "2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team 1 has a 2nd round 0 - 1, and a team 2 rc lens (d1)?`:
```sql
                SELECT "team_1" FROM "round_of_16" WHERE "2nd_round"='0 - 1' AND "team_2"='rc lens (d1)';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1st round with a team 2 paris sg (d1)?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "score" text,
  "team_2" text,
  "1st_round" text,
  "2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st round with a team 2 paris sg (d1)?`:
```sql
                SELECT "1st_round" FROM "round_of_16" WHERE "team_2"='paris sg (d1)';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1st round with a 2nd round of 0 - 1, and team 1 sco angers (d1)?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "score" text,
  "team_2" text,
  "1st_round" text,
  "2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st round with a 2nd round of 0 - 1, and team 1 sco angers (d1)?`:
```sql
                SELECT "1st_round" FROM "round_of_16" WHERE "2nd_round"='0 - 1' AND "team_1"='sco angers (d1)';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE NAME WITH A SUMMER TRANSFER WINDOW, AND COUNTRY SEN?`

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

CREATE TABLE "loaned_out" (
  "name" text,
  "country" text,
  "status" text,
  "moving_to" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE NAME WITH A SUMMER TRANSFER WINDOW, AND COUNTRY SEN?`:
```sql
                SELECT "name" FROM "loaned_out" WHERE "transfer_window"='summer' AND "country"='sen';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE COUNTRY WITH NAME OF KANU?`

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

CREATE TABLE "loaned_out" (
  "name" text,
  "country" text,
  "status" text,
  "moving_to" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE COUNTRY WITH NAME OF KANU?`:
```sql
                SELECT "country" FROM "loaned_out" WHERE "name"='kanu';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE MOVING TO LOCATION WITH BEL AS COUNTRY?`

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

CREATE TABLE "loaned_out" (
  "name" text,
  "country" text,
  "status" text,
  "moving_to" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE MOVING TO LOCATION WITH BEL AS COUNTRY?`:
```sql
                SELECT "moving_to" FROM "loaned_out" WHERE "country"='bel';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE COUNTRY WITH SUMMER TRANSFER WINDOW?`

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

CREATE TABLE "loaned_out" (
  "name" text,
  "country" text,
  "status" text,
  "moving_to" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE COUNTRY WITH SUMMER TRANSFER WINDOW?`:
```sql
                SELECT "country" FROM "loaned_out" WHERE "transfer_window"='summer';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE TRANSFER WINDOW FOR THE COUNTRY OF BRA?`

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

CREATE TABLE "loaned_out" (
  "name" text,
  "country" text,
  "status" text,
  "moving_to" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE TRANSFER WINDOW FOR THE COUNTRY OF BRA?`:
```sql
                SELECT "transfer_window" FROM "loaned_out" WHERE "country"='bra';
```
## Task
Generate a SQL query to answer the following question:
`What opponent had an attendance of 63,659?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponentnum" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent had an attendance of 63,659?`:
```sql
                SELECT "opponentnum" FROM "schedule" WHERE "attendance"='63,659';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of 10/18/1947?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponentnum" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of 10/18/1947?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='10/18/1947';
```
## Task
Generate a SQL query to answer the following question:
`What was the result for 10/04/1947?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponentnum" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for 10/04/1947?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='10/04/1947';
```
## Task
Generate a SQL query to answer the following question:
`Which competition has a report of AIFF?`

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

CREATE TABLE "chinese_taipei_national_football_team" (
  "date" text,
  "venue" text,
  "score" text,
  "competition" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition has a report of AIFF?`:
```sql
                SELECT "competition" FROM "chinese_taipei_national_football_team" WHERE "report"='aiff';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for a report of AFC on April 4, 2008?`

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

CREATE TABLE "chinese_taipei_national_football_team" (
  "date" text,
  "venue" text,
  "score" text,
  "competition" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for a report of AFC on April 4, 2008?`:
```sql
                SELECT "score" FROM "chinese_taipei_national_football_team" WHERE "report"='afc' AND "date"='april 4, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the game against the Houston Oilers?`

### 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 for the game against the Houston Oilers?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "opponent"='houston oilers';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended round f?`

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

CREATE TABLE "scottish_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended round f?`:
```sql
                SELECT COUNT("attendance") FROM "scottish_cup" WHERE "round"='f';
```
## Task
Generate a SQL query to answer the following question:
`How many people on average attend round f?`

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

CREATE TABLE "scottish_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people on average attend round f?`:
```sql
                SELECT AVG("attendance") FROM "scottish_cup" WHERE "round"='f';
```
## Task
Generate a SQL query to answer the following question:
`What was the result in round qf?`

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

CREATE TABLE "scottish_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result in round qf?`:
```sql
                SELECT "result" FROM "scottish_cup" WHERE "round"='qf';
```
## Task
Generate a SQL query to answer the following question:
`Who played Blackpool when Blackpool was at home?`

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

CREATE TABLE "fifth_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played Blackpool when Blackpool was at home?`:
```sql
                SELECT "away_team" FROM "fifth_round" WHERE "home_team"='blackpool';
```
## Task
Generate a SQL query to answer the following question:
`How many times did Arsenal tie when they were away?`

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

CREATE TABLE "fifth_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did Arsenal tie when they were away?`:
```sql
                SELECT "tie_no" FROM "fifth_round" WHERE "away_team"='arsenal';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when Blackpool was away?`

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

CREATE TABLE "fifth_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game when Blackpool was away?`:
```sql
                SELECT "score" FROM "fifth_round" WHERE "away_team"='blackpool';
```
## Task
Generate a SQL query to answer the following question:
`What result had a time of 1:02?`

### 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,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What result had a time of 1:02?`:
```sql
                SELECT "result" FROM "kickboxing_record" WHERE "time"='1:02';
```
## Task
Generate a SQL query to answer the following question:
`What time was the event k-1 the challenge 1999?`

### 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,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time was the event k-1 the challenge 1999?`:
```sql
                SELECT "time" FROM "kickboxing_record" WHERE "event"='k-1 the challenge 1999';
```
## Task
Generate a SQL query to answer the following question:
`Where was the decision draw before round 5?`

### 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,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the decision draw before round 5?`:
```sql
                SELECT "location" FROM "kickboxing_record" WHERE "method"='decision draw' AND "round"<5;
```
## Task
Generate a SQL query to answer the following question:
`What is Career Win-Loss, when Tournament is "Hamburg"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "career_wr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Career Win-Loss, when Tournament is "Hamburg"?`:
```sql
                SELECT "career_win_loss" FROM "singles_performance_timeline" WHERE "tournament"='hamburg';
```
## Task
Generate a SQL query to answer the following question:
`What is 2004, when 2003 is "1R", and when 2006 is "A"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "career_wr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2004, when 2003 is "1R", and when 2006 is "A"?`:
```sql
                SELECT "2004" FROM "singles_performance_timeline" WHERE "2003"='1r' AND "2006"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is 2007, when 2000 is "0 / 4"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "career_wr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2007, when 2000 is "0 / 4"?`:
```sql
                SELECT "2007" FROM "singles_performance_timeline" WHERE "2000"='0 / 4';
```
## Task
Generate a SQL query to answer the following question:
`What is 2007, when 2003 is "85"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "career_wr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2007, when 2003 is "85"?`:
```sql
                SELECT "2007" FROM "singles_performance_timeline" WHERE "2003"='85';
```
## Task
Generate a SQL query to answer the following question:
`What is 2004, when 2007 is "A", and when 1997 is "A"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "career_wr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2004, when 2007 is "A", and when 1997 is "A"?`:
```sql
                SELECT "2004" FROM "singles_performance_timeline" WHERE "2007"='a' AND "1997"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is 2000, when 1996 is "A", when 1997 is "A", and when 2007 is "A"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "career_wr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2000, when 1996 is "A", when 1997 is "A", and when 2007 is "A"?`:
```sql
                SELECT "2000" FROM "singles_performance_timeline" WHERE "1996"='a' AND "1997"='a' AND "2007"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is Award, when Category is Cabello Maluco?`

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

CREATE TABLE "awards" (
  "year" real,
  "award" text,
  "nominated_work" text,
  "category" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Award, when Category is Cabello Maluco?`:
```sql
                SELECT "award" FROM "awards" WHERE "category"='cabello maluco';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of years in which Eiza González had a nominated work in the category of solista favorito?`

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

CREATE TABLE "awards" (
  "year" real,
  "award" text,
  "nominated_work" text,
  "category" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of years in which Eiza González had a nominated work in the category of solista favorito?`:
```sql
                SELECT SUM("year") FROM "awards" WHERE "nominated_work"='eiza gonzález' AND "category"='solista favorito';
```
## Task
Generate a SQL query to answer the following question:
`Before the year 2012, what award was given to the artist in the category of revelación pop del año?`

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

CREATE TABLE "awards" (
  "year" real,
  "award" text,
  "nominated_work" text,
  "category" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Before the year 2012, what award was given to the artist in the category of revelación pop del año?`:
```sql
                SELECT "award" FROM "awards" WHERE "year"<2012 AND "category"='revelación pop del año';
```
## Task
Generate a SQL query to answer the following question:
`what is the method when the record is 1-1?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the method when the record is 1-1?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='1-1';
```
## Task
Generate a SQL query to answer the following question:
`what is the event when the opponent is yuji hisamatsu?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the event when the opponent is yuji hisamatsu?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='yuji hisamatsu';
```
## Task
Generate a SQL query to answer the following question:
`What is the time of ufc 154?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time of ufc 154?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "event"='ufc 154';
```
## Task
Generate a SQL query to answer the following question:
`What is the average round of the match with kevin manderson as the opponent?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average round of the match with kevin manderson as the opponent?`:
```sql
                SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "opponent"='kevin manderson';
```
## Task
Generate a SQL query to answer the following question:
`What was the location attendance on January 19?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location attendance on January 19?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "date"='january 19';
```
## Task
Generate a SQL query to answer the following question:
`What number game was it that the Spurs were @ Miami?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number game was it that the Spurs were @ Miami?`:
```sql
                SELECT SUM("game") FROM "game_log" WHERE "team"='@ miami';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of losses of the player that has drawn 1 and played smaller than 12?`

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

CREATE TABLE "main_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of losses of the player that has drawn 1 and played smaller than 12?`:
```sql
                SELECT COUNT("lost") FROM "main_round" WHERE "drawn"=1 AND "played"<12;
```
## Task
Generate a SQL query to answer the following question:
`What type of surface did the tournament canada f9, markham have?`

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

CREATE TABLE "singles_19_13_titles_6_runners_up" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of surface did the tournament canada f9, markham have?`:
```sql
                SELECT "surface" FROM "singles_19_13_titles_6_runners_up" WHERE "tournament"='canada f9, markham';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Date is December 23?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Date is December 23?`:
```sql
                SELECT "score" FROM "season_schedule" WHERE "date"='december 23';
```
## Task
Generate a SQL query to answer the following question:
`What is Score when Team is @ Kansas City-Omaha Kings?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score when Team is @ Kansas City-Omaha Kings?`:
```sql
                SELECT "score" FROM "season_schedule" WHERE "team"='@ kansas city-omaha kings';
```
## Task
Generate a SQL query to answer the following question:
`Which position has an Overall smaller than 64, and a Round of 1?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has an Overall smaller than 64, and a Round of 1?`:
```sql
                SELECT "position" FROM "washington_redskins_draft_history" WHERE "overall"<64 AND "round"=1;
```
## Task
Generate a SQL query to answer the following question:
`Which average overall has a Pick smaller than 5?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which average overall has a Pick smaller than 5?`:
```sql
                SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "pick"<5;
```
## Task
Generate a SQL query to answer the following question:
`Which highest overall has a College of idaho, and a Round smaller than 1?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which highest overall has a College of idaho, and a Round smaller than 1?`:
```sql
                SELECT MAX("overall") FROM "washington_redskins_draft_history" WHERE "college"='idaho' AND "round"<1;
```
## Task
Generate a SQL query to answer the following question:
`How many rounds have a Pick smaller than 10, and a Name of larry hendershot?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds have a Pick smaller than 10, and a Name of larry hendershot?`:
```sql
                SELECT COUNT("round") FROM "washington_redskins_draft_history" WHERE "pick"<10 AND "name"='larry hendershot';
```
## Task
Generate a SQL query to answer the following question:
`What is Part 1, when Part 2 is "fraus"?`

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

CREATE TABLE "north_germanic" (
  "class" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Part 1, when Part 2 is "fraus"?`:
```sql
                SELECT "part_1" FROM "north_germanic" WHERE "part_2"='fraus';
```
## Task
Generate a SQL query to answer the following question:
`What is Part 3, when Part 1 is "frjósa"?`

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

CREATE TABLE "north_germanic" (
  "class" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Part 3, when Part 1 is "frjósa"?`:
```sql
                SELECT "part_3" FROM "north_germanic" WHERE "part_1"='frjósa';
```
## Task
Generate a SQL query to answer the following question:
`What is Class, when Part 2 is "blétu"?`

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

CREATE TABLE "north_germanic" (
  "class" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Class, when Part 2 is "blétu"?`:
```sql
                SELECT "class" FROM "north_germanic" WHERE "part_3"='blétu';
```
## Task
Generate a SQL query to answer the following question:
`What is Part 4, when Part 2 is "hljóp"?`

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

CREATE TABLE "north_germanic" (
  "class" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Part 4, when Part 2 is "hljóp"?`:
```sql
                SELECT "part_4" FROM "north_germanic" WHERE "part_2"='hljóp';
```
## Task
Generate a SQL query to answer the following question:
`What is Part 4, when Part 2 is "batt"?`

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

CREATE TABLE "north_germanic" (
  "class" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Part 4, when Part 2 is "batt"?`:
```sql
                SELECT "part_4" FROM "north_germanic" WHERE "part_2"='batt';
```
## Task
Generate a SQL query to answer the following question:
`What is Part 1, when Part 3 is "heldu"?`

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

CREATE TABLE "north_germanic" (
  "class" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Part 1, when Part 3 is "heldu"?`:
```sql
                SELECT "part_1" FROM "north_germanic" WHERE "part_3"='heldu';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team which plays at a venue called Win Entertainment Centre?`

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

CREATE TABLE "round_16" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" real,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team which plays at a venue called Win Entertainment Centre?`:
```sql
                SELECT "home_team" FROM "round_16" WHERE "venue"='win entertainment centre';
```
## Task
Generate a SQL query to answer the following question:
`What away team had a 103-94 score?`

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

CREATE TABLE "round_16" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" real,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What away team had a 103-94 score?`:
```sql
                SELECT "away_team" FROM "round_16" WHERE "score"='103-94';
```
## Task
Generate a SQL query to answer the following question:
`When the home team is Cairns Taipans, at which venue do they play?`

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

CREATE TABLE "round_16" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" real,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the home team is Cairns Taipans, at which venue do they play?`:
```sql
                SELECT "venue" FROM "round_16" WHERE "home_team"='cairns taipans';
```
## Task
Generate a SQL query to answer the following question:
`What is the bird uniform for Eagle Rider Mickey Dugan?`

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

CREATE TABLE "team_variations_across_different_version" (
  "gatchaman" text,
  "eagle_riders" text,
  "rank" text,
  "bird_uniform" text,
  "weapon" text,
  "mecha" text,
  "japanese_voice_actor" text,
  "voice_actor_eagle_riders" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bird uniform for Eagle Rider Mickey Dugan?`:
```sql
                SELECT "bird_uniform" FROM "team_variations_across_different_version" WHERE "eagle_riders"='mickey dugan';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Japanese voice actor of Eagle Rider Ollie Keeawani?`

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

CREATE TABLE "team_variations_across_different_version" (
  "gatchaman" text,
  "eagle_riders" text,
  "rank" text,
  "bird_uniform" text,
  "weapon" text,
  "mecha" text,
  "japanese_voice_actor" text,
  "voice_actor_eagle_riders" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Japanese voice actor of Eagle Rider Ollie Keeawani?`:
```sql
                SELECT "japanese_voice_actor" FROM "team_variations_across_different_version" WHERE "eagle_riders"='ollie keeawani';
```
## Task
Generate a SQL query to answer the following question:
`What is the bird uniform for the voice actor Heidi Noelle Lenhart?`

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

CREATE TABLE "team_variations_across_different_version" (
  "gatchaman" text,
  "eagle_riders" text,
  "rank" text,
  "bird_uniform" text,
  "weapon" text,
  "mecha" text,
  "japanese_voice_actor" text,
  "voice_actor_eagle_riders" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bird uniform for the voice actor Heidi Noelle Lenhart?`:
```sql
                SELECT "bird_uniform" FROM "team_variations_across_different_version" WHERE "voice_actor_eagle_riders"='heidi noelle lenhart';
```
## Task
Generate a SQL query to answer the following question:
`What is the Mecha of the Japanese voice actor Shingo Kanemoto?`

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

CREATE TABLE "team_variations_across_different_version" (
  "gatchaman" text,
  "eagle_riders" text,
  "rank" text,
  "bird_uniform" text,
  "weapon" text,
  "mecha" text,
  "japanese_voice_actor" text,
  "voice_actor_eagle_riders" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Mecha of the Japanese voice actor Shingo Kanemoto?`:
```sql
                SELECT "mecha" FROM "team_variations_across_different_version" WHERE "japanese_voice_actor"='shingo kanemoto';
```
## Task
Generate a SQL query to answer the following question:
`What is the weapon for the mecha of motorcycle?`

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

CREATE TABLE "team_variations_across_different_version" (
  "gatchaman" text,
  "eagle_riders" text,
  "rank" text,
  "bird_uniform" text,
  "weapon" text,
  "mecha" text,
  "japanese_voice_actor" text,
  "voice_actor_eagle_riders" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weapon for the mecha of motorcycle?`:
```sql
                SELECT "weapon" FROM "team_variations_across_different_version" WHERE "mecha"='motorcycle';
```