cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`The venue of Rome has which date?`

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

CREATE TABLE "top_25_lists" (
  "year" real,
  "performance" text,
  "world_ranking" real,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `The venue of Rome has which date?`:
```sql
                SELECT "date" FROM "top_25_lists" WHERE "venue"='rome';
```
## Task
Generate a SQL query to answer the following question:
`What was the 1st leg of the match that had an aggregate of 4-3?`

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

CREATE TABLE "round_of_sixteen" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 1st leg of the match that had an aggregate of 4-3?`:
```sql
                SELECT "1st_leg" FROM "round_of_sixteen" WHERE "agg"='4-3';
```
## Task
Generate a SQL query to answer the following question:
`What was the 2nd leg fo the match that had a 1st leg of 1-3 and aggregate of 1-6?`

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

CREATE TABLE "round_of_sixteen" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 2nd leg fo the match that had a 1st leg of 1-3 and aggregate of 1-6?`:
```sql
                SELECT "2nd_leg" FROM "round_of_sixteen" WHERE "1st_leg"='1-3' AND "agg"='1-6';
```
## Task
Generate a SQL query to answer the following question:
`When was the last final lost of the club with 7 wins?`

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

CREATE TABLE "performance_by_club" (
  "club" text,
  "wins" text,
  "last_win" text,
  "runners_up" text,
  "last_final_lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the last final lost of the club with 7 wins?`:
```sql
                SELECT "last_final_lost" FROM "performance_by_club" WHERE "wins"='7';
```
## Task
Generate a SQL query to answer the following question:
`How many runners-up did the club with the last final lost in 1985 have?`

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

CREATE TABLE "performance_by_club" (
  "club" text,
  "wins" text,
  "last_win" text,
  "runners_up" text,
  "last_final_lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many runners-up did the club with the last final lost in 1985 have?`:
```sql
                SELECT "runners_up" FROM "performance_by_club" WHERE "last_final_lost"='1985';
```
## Task
Generate a SQL query to answer the following question:
`When was the last final lost of the club with a last win in 1959?`

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

CREATE TABLE "performance_by_club" (
  "club" text,
  "wins" text,
  "last_win" text,
  "runners_up" text,
  "last_final_lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the last final lost of the club with a last win in 1959?`:
```sql
                SELECT "last_final_lost" FROM "performance_by_club" WHERE "last_win"='1959';
```
## Task
Generate a SQL query to answer the following question:
`When was the last win of Celtic?`

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

CREATE TABLE "performance_by_club" (
  "club" text,
  "wins" text,
  "last_win" text,
  "runners_up" text,
  "last_final_lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the last win of Celtic?`:
```sql
                SELECT "last_win" FROM "performance_by_club" WHERE "club"='celtic';
```
## Task
Generate a SQL query to answer the following question:
`Which club had 13 runners-up?`

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

CREATE TABLE "performance_by_club" (
  "club" text,
  "wins" text,
  "last_win" text,
  "runners_up" text,
  "last_final_lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club had 13 runners-up?`:
```sql
                SELECT "club" FROM "performance_by_club" WHERE "runners_up"='13';
```
## Task
Generate a SQL query to answer the following question:
`Who is the visitor in Philadelphia on March 6?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the visitor in Philadelphia on March 6?`:
```sql
                SELECT "visitor" FROM "regular_season" WHERE "home"='philadelphia' AND "date"='march 6';
```
## Task
Generate a SQL query to answer the following question:
`what date were they playing in hawthorn`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what date were they playing in hawthorn`:
```sql
                SELECT "date" FROM "round_16" WHERE "away_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`what report was in geelong`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what report was in geelong`:
```sql
                SELECT "report" FROM "round_16" WHERE "home_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the game played on week 8, with an attendance of more than 35,000?`

### 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 is the date for the game played on week 8, with an attendance of more than 35,000?`:
```sql
                SELECT "date" FROM "schedule" WHERE "attendance">'35,000' AND "week"=8;
```
## Task
Generate a SQL query to answer the following question:
`In what Town/City is Nana Museum of The Arctic located?`

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

CREATE TABLE "defunct_museums" (
  "name" text,
  "town_city" text,
  "borough" text,
  "region" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Town/City is Nana Museum of The Arctic located?`:
```sql
                SELECT "town_city" FROM "defunct_museums" WHERE "name"='nana museum of the arctic';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name of the Multiple Type museum in Anchorage?`

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

CREATE TABLE "defunct_museums" (
  "name" text,
  "town_city" text,
  "borough" text,
  "region" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name of the Multiple Type museum in Anchorage?`:
```sql
                SELECT "name" FROM "defunct_museums" WHERE "town_city"='anchorage' AND "type"='multiple';
```
## Task
Generate a SQL query to answer the following question:
`In what Borough is the Anchorage museum of Natural History?`

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

CREATE TABLE "defunct_museums" (
  "name" text,
  "town_city" text,
  "borough" text,
  "region" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Borough is the Anchorage museum of Natural History?`:
```sql
                SELECT "name" FROM "defunct_museums" WHERE "borough"='anchorage' AND "type"='natural history';
```
## Task
Generate a SQL query to answer the following question:
`In what Region is the Native American museum in Anchorage?`

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

CREATE TABLE "defunct_museums" (
  "name" text,
  "town_city" text,
  "borough" text,
  "region" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Region is the Native American museum in Anchorage?`:
```sql
                SELECT "region" FROM "defunct_museums" WHERE "type"='native american' AND "town_city"='anchorage';
```
## Task
Generate a SQL query to answer the following question:
`What Type of museum is the Valdez museum?`

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

CREATE TABLE "defunct_museums" (
  "name" text,
  "town_city" text,
  "borough" text,
  "region" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Type of museum is the Valdez museum?`:
```sql
                SELECT "type" FROM "defunct_museums" WHERE "name"='valdez museum';
```
## Task
Generate a SQL query to answer the following question:
`In what Borough is the History Type Fairbanks Community Museum?`

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

CREATE TABLE "defunct_museums" (
  "name" text,
  "town_city" text,
  "borough" text,
  "region" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Borough is the History Type Fairbanks Community Museum?`:
```sql
                SELECT "borough" FROM "defunct_museums" WHERE "type"='history' AND "name"='fairbanks community museum';
```
## Task
Generate a SQL query to answer the following question:
`what is the zip code of boonville`

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

CREATE TABLE "counties" (
  "in_no" real,
  "county_name" text,
  "county_seat" text,
  "time_zone" text,
  "population_2010_rank" text,
  "area_sq_mi_km_2_rank" text,
  "twps" real,
  "zip_code_prefix_es" text,
  "pct_of_boundary_by_water" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the zip code of boonville`:
```sql
                SELECT "zip_code_prefix_es" FROM "counties" WHERE "county_seat"='boonville';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament was held on 9 Jun 2002?`

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

CREATE TABLE "european_tour_wins_14" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament was held on 9 Jun 2002?`:
```sql
                SELECT "tournament" FROM "european_tour_wins_14" WHERE "date"='9 jun 2002';
```
## Task
Generate a SQL query to answer the following question:
`What is the winning score with a margin of victory of 4 strokes for the NEC Invitational tournament?`

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

CREATE TABLE "european_tour_wins_14" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning score with a margin of victory of 4 strokes for the NEC Invitational tournament?`:
```sql
                SELECT "winning_score" FROM "european_tour_wins_14" WHERE "margin_of_victory"='4 strokes' AND "tournament"='nec invitational';
```
## Task
Generate a SQL query to answer the following question:
`Who is the runner-up where the winning score is –8 (71-69-67-73=280)?`

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

CREATE TABLE "european_tour_wins_14" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the runner-up where the winning score is –8 (71-69-67-73=280)?`:
```sql
                SELECT "runner_s_up" FROM "european_tour_wins_14" WHERE "winning_score"='–8 (71-69-67-73=280)';
```
## Task
Generate a SQL query to answer the following question:
`What is the winning score for Tournament of linde german masters with a margin of victory of 1 stroke?`

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

CREATE TABLE "european_tour_wins_14" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning score for Tournament of linde german masters with a margin of victory of 1 stroke?`:
```sql
                SELECT "winning_score" FROM "european_tour_wins_14" WHERE "margin_of_victory"='1 stroke' AND "tournament"='linde german masters';
```
## Task
Generate a SQL query to answer the following question:
`Who is runner-up where the winning score is –6 (65-70-70-69=274) and the margin of victory is 3 strokes?`

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

CREATE TABLE "european_tour_wins_14" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is runner-up where the winning score is –6 (65-70-70-69=274) and the margin of victory is 3 strokes?`:
```sql
                SELECT "runner_s_up" FROM "european_tour_wins_14" WHERE "margin_of_victory"='3 strokes' AND "winning_score"='–6 (65-70-70-69=274)';
```
## Task
Generate a SQL query to answer the following question:
`What is the winning score where the runner-up is Robert-Jan Derksen and the margin of victory is 1 stroke?`

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

CREATE TABLE "european_tour_wins_14" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning score where the runner-up is Robert-Jan Derksen and the margin of victory is 1 stroke?`:
```sql
                SELECT "winning_score" FROM "european_tour_wins_14" WHERE "margin_of_victory"='1 stroke' AND "runner_s_up"='robert-jan derksen';
```
## Task
Generate a SQL query to answer the following question:
`What are the high rebounds of team @ Charlotte?`

### 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 are the high rebounds of team @ Charlotte?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "team"='@ charlotte';
```
## Task
Generate a SQL query to answer the following question:
`What is the high rebounds of game 68?`

### 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 is the high rebounds of game 68?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "game"=68;
```
## Task
Generate a SQL query to answer the following question:
`What is the score of New York team before game 61?`

### 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 is the score of New York team before game 61?`:
```sql
                SELECT "score" FROM "game_log" WHERE "game"<61 AND "team"='new york';
```
## Task
Generate a SQL query to answer the following question:
`When David McNamara was the opponent in the final, what was the tier?`

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

CREATE TABLE "singles_wins" (
  "date" text,
  "tournament" text,
  "tier" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `When David McNamara was the opponent in the final, what was the tier?`:
```sql
                SELECT "tier" FROM "singles_wins" WHERE "opponent_in_the_final"='david mcnamara';
```
## Task
Generate a SQL query to answer the following question:
`In 2011, how many tourists visited the country that had 23.4 million tourists in 2012?`

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

CREATE TABLE "the_americas" (
  "rank" real,
  "country" text,
  "international_tourist_arrivals_2012" text,
  "international_tourist_arrivals_2011" text,
  "change_2011_to_2012" text,
  "change_2010_to_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 2011, how many tourists visited the country that had 23.4 million tourists in 2012?`:
```sql
                SELECT "international_tourist_arrivals_2011" FROM "the_americas" WHERE "international_tourist_arrivals_2012"='23.4 million';
```
## Task
Generate a SQL query to answer the following question:
`How many tourists visited the country that had 2.5 million tourists in 2011?`

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

CREATE TABLE "the_americas" (
  "rank" real,
  "country" text,
  "international_tourist_arrivals_2012" text,
  "international_tourist_arrivals_2011" text,
  "change_2011_to_2012" text,
  "change_2010_to_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tourists visited the country that had 2.5 million tourists in 2011?`:
```sql
                SELECT "international_tourist_arrivals_2012" FROM "the_americas" WHERE "international_tourist_arrivals_2011"='2.5 million';
```
## Task
Generate a SQL query to answer the following question:
`How far Venue of seoul, south korea is?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "distance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How far Venue of seoul, south korea is?`:
```sql
                SELECT "distance" FROM "achievements" WHERE "venue"='seoul, south korea';
```
## Task
Generate a SQL query to answer the following question:
`Which Venue has a Tournament of olympic games with a Result of 4th?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "distance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Venue has a Tournament of olympic games with a Result of 4th?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "tournament"='olympic games' AND "result"='4th';
```
## Task
Generate a SQL query to answer the following question:
`What is the Result of Venue of edmonton, canada?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "distance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result of Venue of edmonton, canada?`:
```sql
                SELECT "result" FROM "achievements" WHERE "venue"='edmonton, canada';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1st leg of Team 2 PSV Eindhoven?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st leg of Team 2 PSV Eindhoven?`:
```sql
                SELECT "1st_leg" FROM "round_of_16" WHERE "team_2"='psv eindhoven';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent was played at Forbes Field after week 4?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent was played at Forbes Field after week 4?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "game_site"='forbes field' AND "week">4;
```
## Task
Generate a SQL query to answer the following question:
`Which opponent was played on week 9?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent was played on week 9?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"=9;
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game played at Fenway Park?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game played at Fenway Park?`:
```sql
                SELECT "date" FROM "schedule" WHERE "game_site"='fenway park';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponents have a Year of 1998–99, and a Team of aston villa?`

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

CREATE TABLE "inter_cities_fairs_cup_uefa_cup_uefa_eur" (
  "year" text,
  "team" text,
  "progress" text,
  "score" text,
  "opponents" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponents have a Year of 1998–99, and a Team of aston villa?`:
```sql
                SELECT "opponents" FROM "inter_cities_fairs_cup_uefa_cup_uefa_eur" WHERE "year"='1998–99' AND "team"='aston villa';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has Opponents of valencia, and a Year of 2011–12?`

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

CREATE TABLE "inter_cities_fairs_cup_uefa_cup_uefa_eur" (
  "year" text,
  "team" text,
  "progress" text,
  "score" text,
  "opponents" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has Opponents of valencia, and a Year of 2011–12?`:
```sql
                SELECT "score" FROM "inter_cities_fairs_cup_uefa_cup_uefa_eur" WHERE "opponents"='valencia' AND "year"='2011–12';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponents have a Team of arsenal, and a Year of 1963–64?`

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

CREATE TABLE "inter_cities_fairs_cup_uefa_cup_uefa_eur" (
  "year" text,
  "team" text,
  "progress" text,
  "score" text,
  "opponents" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponents have a Team of arsenal, and a Year of 1963–64?`:
```sql
                SELECT "opponents" FROM "inter_cities_fairs_cup_uefa_cup_uefa_eur" WHERE "team"='arsenal' AND "year"='1963–64';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponents have a Year of 1999–2000, and a Team of leeds united?`

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

CREATE TABLE "inter_cities_fairs_cup_uefa_cup_uefa_eur" (
  "year" text,
  "team" text,
  "progress" text,
  "score" text,
  "opponents" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponents have a Year of 1999–2000, and a Team of leeds united?`:
```sql
                SELECT "opponents" FROM "inter_cities_fairs_cup_uefa_cup_uefa_eur" WHERE "year"='1999–2000' AND "team"='leeds united';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponents have a Score of 1–2, and a Team of arsenal, and Progress of first round?`

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

CREATE TABLE "inter_cities_fairs_cup_uefa_cup_uefa_eur" (
  "year" text,
  "team" text,
  "progress" text,
  "score" text,
  "opponents" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponents have a Score of 1–2, and a Team of arsenal, and Progress of first round?`:
```sql
                SELECT "opponents" FROM "inter_cities_fairs_cup_uefa_cup_uefa_eur" WHERE "score"='1–2' AND "team"='arsenal' AND "progress"='first round';
```
## Task
Generate a SQL query to answer the following question:
`How much Rank has a Name of simon ammann, and a 2nd (m) larger than 139?`

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

CREATE TABLE "bischofshofen_5_january" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_fht_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Rank has a Name of simon ammann, and a 2nd (m) larger than 139?`:
```sql
                SELECT COUNT("rank") FROM "bischofshofen_5_january" WHERE "name"='simon ammann' AND "2nd_m">139;
```
## Task
Generate a SQL query to answer the following question:
`How much Rank has Points larger than 282.5?`

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

CREATE TABLE "bischofshofen_5_january" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_fht_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Rank has Points larger than 282.5?`:
```sql
                SELECT COUNT("rank") FROM "bischofshofen_5_january" WHERE "points">282.5;
```
## Task
Generate a SQL query to answer the following question:
`Which Rank is the highest one that has Points smaller than 256.6?`

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

CREATE TABLE "bischofshofen_5_january" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_fht_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank is the highest one that has Points smaller than 256.6?`:
```sql
                SELECT MAX("rank") FROM "bischofshofen_5_january" WHERE "points"<256.6;
```
## Task
Generate a SQL query to answer the following question:
`Which 2nd (m) is the highest one that has a Nationality of sui, and a Rank smaller than 3?`

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

CREATE TABLE "bischofshofen_5_january" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_fht_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2nd (m) is the highest one that has a Nationality of sui, and a Rank smaller than 3?`:
```sql
                SELECT MAX("2nd_m") FROM "bischofshofen_5_january" WHERE "nationality"='sui' AND "rank"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the UK broadcast date of the episode where Chris Bonington was the presenter?`

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

CREATE TABLE "series_3_1996" (
  "episode_no" text,
  "episode_title" text,
  "uk_broadcast_date" text,
  "presenter" text,
  "countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the UK broadcast date of the episode where Chris Bonington was the presenter?`:
```sql
                SELECT "uk_broadcast_date" FROM "series_3_1996" WHERE "presenter"='chris bonington';
```
## Task
Generate a SQL query to answer the following question:
`What is the episode title of the episode with Ben Okri as the presenter?`

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

CREATE TABLE "series_3_1996" (
  "episode_no" text,
  "episode_title" text,
  "uk_broadcast_date" text,
  "presenter" text,
  "countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode title of the episode with Ben Okri as the presenter?`:
```sql
                SELECT "episode_title" FROM "series_3_1996" WHERE "presenter"='ben okri';
```
## Task
Generate a SQL query to answer the following question:
`Who is the presenter of the episode broadcast in the UK on 1996-09-25?`

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

CREATE TABLE "series_3_1996" (
  "episode_no" text,
  "episode_title" text,
  "uk_broadcast_date" text,
  "presenter" text,
  "countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the presenter of the episode broadcast in the UK on 1996-09-25?`:
```sql
                SELECT "presenter" FROM "series_3_1996" WHERE "uk_broadcast_date"='1996-09-25';
```
## Task
Generate a SQL query to answer the following question:
`What is the UK broadcast date of the episode with Ben Okri as the presenter?`

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

CREATE TABLE "series_3_1996" (
  "episode_no" text,
  "episode_title" text,
  "uk_broadcast_date" text,
  "presenter" text,
  "countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the UK broadcast date of the episode with Ben Okri as the presenter?`:
```sql
                SELECT "uk_broadcast_date" FROM "series_3_1996" WHERE "presenter"='ben okri';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the team played at the bobcats?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the team played at the bobcats?`:
```sql
                SELECT "score" FROM "february" WHERE "home"='bobcats';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the Spurs' record was 43-13?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the Spurs' record was 43-13?`:
```sql
                SELECT "score" FROM "february" WHERE "record"='43-13';
```
## Task
Generate a SQL query to answer the following question:
`What is the country's name with a numeric code less than 246 and a Latin 3-letter code of slv?`

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

CREATE TABLE "gost_7_67_94" (
  "country_name" text,
  "russian_name" text,
  "cyrillic_code" text,
  "latin_3_letter_code" text,
  "latin_2_letter_code" text,
  "numeric_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country's name with a numeric code less than 246 and a Latin 3-letter code of slv?`:
```sql
                SELECT "country_name" FROM "gost_7_67_94" WHERE "numeric_code"<246 AND "latin_3_letter_code"='slv';
```
## Task
Generate a SQL query to answer the following question:
`What is the Russian name with lbr as the Latin 3-letter code?`

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

CREATE TABLE "gost_7_67_94" (
  "country_name" text,
  "russian_name" text,
  "cyrillic_code" text,
  "latin_3_letter_code" text,
  "latin_2_letter_code" text,
  "numeric_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Russian name with lbr as the Latin 3-letter code?`:
```sql
                SELECT "russian_name" FROM "gost_7_67_94" WHERE "latin_3_letter_code"='lbr';
```
## Task
Generate a SQL query to answer the following question:
`What is the country name with a numeric code less than 580 and a dk Latin 2-letter code?`

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

CREATE TABLE "gost_7_67_94" (
  "country_name" text,
  "russian_name" text,
  "cyrillic_code" text,
  "latin_3_letter_code" text,
  "latin_2_letter_code" text,
  "numeric_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country name with a numeric code less than 580 and a dk Latin 2-letter code?`:
```sql
                SELECT "country_name" FROM "gost_7_67_94" WHERE "numeric_code"<580 AND "latin_2_letter_code"='dk';
```
## Task
Generate a SQL query to answer the following question:
`What is the Cyrillic code with a cu Latin 2-letter code?`

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

CREATE TABLE "gost_7_67_94" (
  "country_name" text,
  "russian_name" text,
  "cyrillic_code" text,
  "latin_3_letter_code" text,
  "latin_2_letter_code" text,
  "numeric_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Cyrillic code with a cu Latin 2-letter code?`:
```sql
                SELECT "cyrillic_code" FROM "gost_7_67_94" WHERE "latin_2_letter_code"='cu';
```
## Task
Generate a SQL query to answer the following question:
`Name the least place for draw more than 3 and points of 8`

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

CREATE TABLE "dansk_melodi_grand_prix_2008" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least place for draw more than 3 and points of 8`:
```sql
                SELECT MIN("place") FROM "dansk_melodi_grand_prix_2008" WHERE "draw">3 AND "points"=8;
```
## Task
Generate a SQL query to answer the following question:
`Name the song for points less than 16 and draw less than 3`

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

CREATE TABLE "dansk_melodi_grand_prix_2008" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the song for points less than 16 and draw less than 3`:
```sql
                SELECT "song" FROM "dansk_melodi_grand_prix_2008" WHERE "points"<16 AND "draw"<3;
```
## Task
Generate a SQL query to answer the following question:
`what is the single of the queen`

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

CREATE TABLE "longest_run_at_number_one" (
  "position" text,
  "artist" text,
  "single" text,
  "year" text,
  "weeks" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the single of the queen`:
```sql
                SELECT "single" FROM "longest_run_at_number_one" WHERE "artist"='queen';
```
## Task
Generate a SQL query to answer the following question:
`what artist won in 1953`

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

CREATE TABLE "longest_run_at_number_one" (
  "position" text,
  "artist" text,
  "single" text,
  "year" text,
  "weeks" text
);
### SQL
Given the database schema, here is the SQL query that answers `what artist won in 1953`:
```sql
                SELECT "artist" FROM "longest_run_at_number_one" WHERE "year"='1953';
```
## Task
Generate a SQL query to answer the following question:
`what year did david whitfield win`

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

CREATE TABLE "longest_run_at_number_one" (
  "position" text,
  "artist" text,
  "single" text,
  "year" text,
  "weeks" text
);
### SQL
Given the database schema, here is the SQL query that answers `what year did david whitfield win`:
```sql
                SELECT "year" FROM "longest_run_at_number_one" WHERE "artist"='david whitfield';
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank of Roman Koudelka, who has less than 274.4 points?`

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

CREATE TABLE "garmisch_partenkirchen" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_fht_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank of Roman Koudelka, who has less than 274.4 points?`:
```sql
                SELECT AVG("rank") FROM "garmisch_partenkirchen" WHERE "points"<274.4 AND "name"='roman koudelka';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank of the player from Aut with a 1st greater than 132?`

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

CREATE TABLE "garmisch_partenkirchen" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_fht_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank of the player from Aut with a 1st greater than 132?`:
```sql
                SELECT MIN("rank") FROM "garmisch_partenkirchen" WHERE "nationality"='aut' AND "1st_m">132;
```
## Task
Generate a SQL query to answer the following question:
`What is the overall WC points of the player from Pol?`

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

CREATE TABLE "garmisch_partenkirchen" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_fht_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the overall WC points of the player from Pol?`:
```sql
                SELECT "overall_wc_points_rank" FROM "garmisch_partenkirchen" WHERE "nationality"='pol';
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank of Gregor Schlierenzauer, who had a 1st greater than 132?`

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

CREATE TABLE "garmisch_partenkirchen" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_fht_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank of Gregor Schlierenzauer, who had a 1st greater than 132?`:
```sql
                SELECT AVG("rank") FROM "garmisch_partenkirchen" WHERE "name"='gregor schlierenzauer' AND "1st_m">132;
```
## Task
Generate a SQL query to answer the following question:
`What is the winners share ($) that has atlanta classic as the tournament?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "winner_s_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winners share ($) that has atlanta classic as the tournament?`:
```sql
                SELECT "winner_s_share" FROM "tournament_results" WHERE "tournament"='atlanta classic';
```
## Task
Generate a SQL query to answer the following question:
`What is the winners share ($) that has u.s. open as the tournament?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "winner_s_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winners share ($) that has u.s. open as the tournament?`:
```sql
                SELECT "winner_s_share" FROM "tournament_results" WHERE "tournament"='u.s. open';
```
## Task
Generate a SQL query to answer the following question:
`How many points was before game 14?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points was before game 14?`:
```sql
                SELECT SUM("points") FROM "regular_season" WHERE "game"<14;
```
## Task
Generate a SQL query to answer the following question:
`What is the average points on November 6?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average points on November 6?`:
```sql
                SELECT AVG("points") FROM "regular_season" WHERE "november"=6;
```
## Task
Generate a SQL query to answer the following question:
`Which average's against score has 2 as a difference and a lost of 5?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which average's against score has 2 as a difference and a lost of 5?`:
```sql
                SELECT AVG("against") FROM "torneio_rio_s_o_paulo" WHERE "difference"='2' AND "lost"=5;
```
## Task
Generate a SQL query to answer the following question:
`How many positions had a difference of - 4 and an against of less than 24?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions had a difference of - 4 and an against of less than 24?`:
```sql
                SELECT COUNT("position") FROM "torneio_rio_s_o_paulo" WHERE "difference"='- 4' AND "against"<24;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest lost when position is larger than 6, drawn is 7, and the points stat is less than 15?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest lost when position is larger than 6, drawn is 7, and the points stat is less than 15?`:
```sql
                SELECT MIN("lost") FROM "torneio_rio_s_o_paulo" WHERE "position">6 AND "drawn"=7 AND "points"<15;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest played number when the difference is - 8 and position is more than 8?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest played number when the difference is - 8 and position is more than 8?`:
```sql
                SELECT MAX("played") FROM "torneio_rio_s_o_paulo" WHERE "difference"='- 8' AND "position">8;
```
## Task
Generate a SQL query to answer the following question:
`What is the mean drawn when the difference is 0 and the against stat is more than 31?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mean drawn when the difference is 0 and the against stat is more than 31?`:
```sql
                SELECT AVG("drawn") FROM "torneio_rio_s_o_paulo" WHERE "difference"='0' AND "against">31;
```
## Task
Generate a SQL query to answer the following question:
`what is the winner of meridiana`

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

CREATE TABLE "winners_of_the_orchid_handicap_since_199" (
  "year" real,
  "winner" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the winner of meridiana`:
```sql
                SELECT "owner" FROM "winners_of_the_orchid_handicap_since_199" WHERE "winner"='meridiana';
```
## Task
Generate a SQL query to answer the following question:
`Number of 13 that has what highest weight?`

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

CREATE TABLE "roster" (
  "number" real,
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "class" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `Number of 13 that has what highest weight?`:
```sql
                SELECT MAX("weight") FROM "roster" WHERE "number"=13;
```