cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the partially deleted result for a deleted of m– in Valley?`

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

CREATE TABLE "superfund_sites" (
  "cerclis_id" text,
  "name" text,
  "county" text,
  "proposed" text,
  "listed" text,
  "construction_completed" text,
  "partially_deleted" text,
  "deleted" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the partially deleted result for a deleted of m– in Valley?`:
```sql
                SELECT "partially_deleted" FROM "superfund_sites" WHERE "deleted"='–' AND "county"='valley';
```
## Task
Generate a SQL query to answer the following question:
`How many matches ended with more than 22 points?`

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

CREATE TABLE "second_league" (
  "team" text,
  "match" real,
  "points" real,
  "draw" real,
  "lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many matches ended with more than 22 points?`:
```sql
                SELECT SUM("match") FROM "second_league" WHERE "points">22;
```
## Task
Generate a SQL query to answer the following question:
`What is the value in 1965 when 7 is the value for 1967?`

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

CREATE TABLE "grand_tour_results_timeline" (
  "1965" text,
  "1966" text,
  "1967" text,
  "1968" text,
  "1969" text,
  "1970" text,
  "1971" text,
  "1972" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value in 1965 when 7 is the value for 1967?`:
```sql
                SELECT "1965" FROM "grand_tour_results_timeline" WHERE "1967"='7';
```
## Task
Generate a SQL query to answer the following question:
`What is the value in 1971 when 30 is the value for 1969?`

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

CREATE TABLE "grand_tour_results_timeline" (
  "1965" text,
  "1966" text,
  "1967" text,
  "1968" text,
  "1969" text,
  "1970" text,
  "1971" text,
  "1972" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value in 1971 when 30 is the value for 1969?`:
```sql
                SELECT "1971" FROM "grand_tour_results_timeline" WHERE "1969"='30';
```
## Task
Generate a SQL query to answer the following question:
`What was the value in 1966 with a 0 value in 1969?`

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

CREATE TABLE "grand_tour_results_timeline" (
  "1965" text,
  "1966" text,
  "1967" text,
  "1968" text,
  "1969" text,
  "1970" text,
  "1971" text,
  "1972" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the value in 1966 with a 0 value in 1969?`:
```sql
                SELECT "1966" FROM "grand_tour_results_timeline" WHERE "1969"='0';
```
## Task
Generate a SQL query to answer the following question:
`Who was the player moving to Arminia Bielefeld?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the player moving to Arminia Bielefeld?`:
```sql
                SELECT "name" FROM "squad_changes" WHERE "moving_to"='arminia bielefeld';
```
## Task
Generate a SQL query to answer the following question:
`What tournament had a Winning score of –9 (69-72-68-70=279)?`

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

CREATE TABLE "pga_tour_wins_13" (
  "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 tournament had a Winning score of –9 (69-72-68-70=279)?`:
```sql
                SELECT "tournament" FROM "pga_tour_wins_13" WHERE "winning_score"='–9 (69-72-68-70=279)';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning score of the Greater Vancouver Open tournament?`

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

CREATE TABLE "pga_tour_wins_13" (
  "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 was the winning score of the Greater Vancouver Open tournament?`:
```sql
                SELECT "winning_score" FROM "pga_tour_wins_13" WHERE "tournament"='greater vancouver open';
```
## Task
Generate a SQL query to answer the following question:
`Which runner(s)-up had a Winning score of –13 (68-70-66-71=275) and a Margin of victory of 3 strokes?`

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

CREATE TABLE "pga_tour_wins_13" (
  "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 runner(s)-up had a Winning score of –13 (68-70-66-71=275) and a Margin of victory of 3 strokes?`:
```sql
                SELECT "runner_s_up" FROM "pga_tour_wins_13" WHERE "margin_of_victory"='3 strokes' AND "winning_score"='–13 (68-70-66-71=275)';
```
## Task
Generate a SQL query to answer the following question:
`What was the Margin of victory in the southwest golf classic Tournament?`

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

CREATE TABLE "pga_tour_wins_13" (
  "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 was the Margin of victory in the southwest golf classic Tournament?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_13" WHERE "tournament"='southwest golf classic';
```
## Task
Generate a SQL query to answer the following question:
`When the Winning score was –9 (69-72-68-70=279), what was the Margin of victory?`

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

CREATE TABLE "pga_tour_wins_13" (
  "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 `When the Winning score was –9 (69-72-68-70=279), what was the Margin of victory?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_13" WHERE "winning_score"='–9 (69-72-68-70=279)';
```
## Task
Generate a SQL query to answer the following question:
`What height has a floor count less than 25?`

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

CREATE TABLE "tallest_buildings_by_state_or_territory" (
  "state_territory" text,
  "building" text,
  "height" text,
  "floor_count" real,
  "completed" real
);
### SQL
Given the database schema, here is the SQL query that answers `What height has a floor count less than 25?`:
```sql
                SELECT "height" FROM "tallest_buildings_by_state_or_territory" WHERE "floor_count"<25;
```
## Task
Generate a SQL query to answer the following question:
`What state/territory has 121 m as the height?`

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

CREATE TABLE "tallest_buildings_by_state_or_territory" (
  "state_territory" text,
  "building" text,
  "height" text,
  "floor_count" real,
  "completed" real
);
### SQL
Given the database schema, here is the SQL query that answers `What state/territory has 121 m as the height?`:
```sql
                SELECT "state_territory" FROM "tallest_buildings_by_state_or_territory" WHERE "height"='121 m';
```
## Task
Generate a SQL query to answer the following question:
`What state/territory has lovett tower as the building?`

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

CREATE TABLE "tallest_buildings_by_state_or_territory" (
  "state_territory" text,
  "building" text,
  "height" text,
  "floor_count" real,
  "completed" real
);
### SQL
Given the database schema, here is the SQL query that answers `What state/territory has lovett tower as the building?`:
```sql
                SELECT "state_territory" FROM "tallest_buildings_by_state_or_territory" WHERE "building"='lovett tower';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game against Oakland Raiders?`

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

CREATE TABLE "season_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 date of the game against Oakland Raiders?`:
```sql
                SELECT "date" FROM "season_schedule" WHERE "opponent"='oakland raiders';
```
## Task
Generate a SQL query to answer the following question:
`What year has 2 wins?`

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

CREATE TABLE "performance_summary_in_champions_league" (
  "year" text,
  "matches" text,
  "wins" text,
  "losses" text,
  "no_result" text,
  "success_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year has 2 wins?`:
```sql
                SELECT "year" FROM "performance_summary_in_champions_league" WHERE "wins"='2';
```
## Task
Generate a SQL query to answer the following question:
`What is the success rate for the year 2012?`

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

CREATE TABLE "performance_summary_in_champions_league" (
  "year" text,
  "matches" text,
  "wins" text,
  "losses" text,
  "no_result" text,
  "success_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the success rate for the year 2012?`:
```sql
                SELECT "success_rate" FROM "performance_summary_in_champions_league" WHERE "year"='2012';
```
## Task
Generate a SQL query to answer the following question:
`What was the win for 4 matches with a success rate of 25%?`

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

CREATE TABLE "performance_summary_in_champions_league" (
  "year" text,
  "matches" text,
  "wins" text,
  "losses" text,
  "no_result" text,
  "success_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the win for 4 matches with a success rate of 25%?`:
```sql
                SELECT "wins" FROM "performance_summary_in_champions_league" WHERE "matches"='4' AND "success_rate"='25%';
```
## Task
Generate a SQL query to answer the following question:
`what was the win for the 6 matches?`

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

CREATE TABLE "performance_summary_in_champions_league" (
  "year" text,
  "matches" text,
  "wins" text,
  "losses" text,
  "no_result" text,
  "success_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the win for the 6 matches?`:
```sql
                SELECT "wins" FROM "performance_summary_in_champions_league" WHERE "matches"='6';
```
## Task
Generate a SQL query to answer the following question:
`What is the losses for the 5 matches?`

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

CREATE TABLE "performance_summary_in_champions_league" (
  "year" text,
  "matches" text,
  "wins" text,
  "losses" text,
  "no_result" text,
  "success_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the losses for the 5 matches?`:
```sql
                SELECT "losses" FROM "performance_summary_in_champions_league" WHERE "matches"='5';
```
## Task
Generate a SQL query to answer the following question:
`What is the losses for the year 2012?`

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

CREATE TABLE "performance_summary_in_champions_league" (
  "year" text,
  "matches" text,
  "wins" text,
  "losses" text,
  "no_result" text,
  "success_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the losses for the year 2012?`:
```sql
                SELECT "losses" FROM "performance_summary_in_champions_league" WHERE "year"='2012';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Total with a Gold that is larger than 4?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Total with a Gold that is larger than 4?`:
```sql
                SELECT AVG("total") FROM "medal_table" WHERE "gold">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Total with a Bronze that is larger than 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Total with a Bronze that is larger than 1?`:
```sql
                SELECT AVG("total") FROM "medal_table" WHERE "bronze">1;
```
## Task
Generate a SQL query to answer the following question:
`Who were the Brazil scorers for the World Cup Competition with a 1-2 score?`

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

CREATE TABLE "brazil_national_team" (
  "date" text,
  "result" text,
  "score" text,
  "brazil_scorers" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the Brazil scorers for the World Cup Competition with a 1-2 score?`:
```sql
                SELECT "brazil_scorers" FROM "brazil_national_team" WHERE "competition"='world cup' AND "score"='1-2';
```
## Task
Generate a SQL query to answer the following question:
`Which competition had a 4-3 score?`

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

CREATE TABLE "brazil_national_team" (
  "date" text,
  "result" text,
  "score" text,
  "brazil_scorers" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition had a 4-3 score?`:
```sql
                SELECT "competition" FROM "brazil_national_team" WHERE "score"='4-3';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Top-5 that has 18 or more events with a Top-25 of 23?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Top-5 that has 18 or more events with a Top-25 of 23?`:
```sql
                SELECT MAX("top_5") FROM "summary" WHERE "events">18 AND "top_25"=23;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest cuts made that had a Top-25 less than 6 and wins greater than 0?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest cuts made that had a Top-25 less than 6 and wins greater than 0?`:
```sql
                SELECT MIN("cuts_made") FROM "summary" WHERE "top_25"<6 AND "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What race did Glenn Seton win on the Sandown International Raceway circuit?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What race did Glenn Seton win on the Sandown International Raceway circuit?`:
```sql
                SELECT "race_title" FROM "race_calendar" WHERE "winner"='glenn seton' AND "circuit"='sandown international raceway';
```
## Task
Generate a SQL query to answer the following question:
`What date was the race at Oran Park ran?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the race at Oran Park ran?`:
```sql
                SELECT "date" FROM "race_calendar" WHERE "race_title"='oran park';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest number of assists for the second rank when there were less than 2 games?`

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

CREATE TABLE "assists" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number of assists for the second rank when there were less than 2 games?`:
```sql
                SELECT MAX("assists") FROM "assists" WHERE "rank"=2 AND "games"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest rank when there are more than 2 games?`

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

CREATE TABLE "assists" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest rank when there are more than 2 games?`:
```sql
                SELECT MIN("rank") FROM "assists" WHERE "games">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the mean number of games for pablo prigioni when there are more than 14 assists?`

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

CREATE TABLE "assists" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mean number of games for pablo prigioni when there are more than 14 assists?`:
```sql
                SELECT AVG("games") FROM "assists" WHERE "name"='pablo prigioni' AND "assists">14;
```
## Task
Generate a SQL query to answer the following question:
`What region has 57 vehicles?`

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

CREATE TABLE "list_of_trolleybus_systems_in_russia" (
  "region" text,
  "location" text,
  "from" text,
  "depots_12_09" real,
  "routes_12_09" real,
  "vehicles_12_09" real
);
### SQL
Given the database schema, here is the SQL query that answers `What region has 57 vehicles?`:
```sql
                SELECT "region" FROM "list_of_trolleybus_systems_in_russia" WHERE "vehicles_12_09"=57;
```
## Task
Generate a SQL query to answer the following question:
`What was the Score after 1991 in Category IVA?`

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

CREATE TABLE "doubles" (
  "year" real,
  "category" text,
  "champions" text,
  "runners_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Score after 1991 in Category IVA?`:
```sql
                SELECT "score" FROM "doubles" WHERE "year">1991 AND "category"='iva';
```
## Task
Generate a SQL query to answer the following question:
`What was the Score in 2002?`

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

CREATE TABLE "doubles" (
  "year" real,
  "category" text,
  "champions" text,
  "runners_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Score in 2002?`:
```sql
                SELECT "score" FROM "doubles" WHERE "year"=2002;
```
## Task
Generate a SQL query to answer the following question:
`What was the Category before 1995?`

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

CREATE TABLE "doubles" (
  "year" real,
  "category" text,
  "champions" text,
  "runners_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Category before 1995?`:
```sql
                SELECT "category" FROM "doubles" WHERE "year"<1995;
```
## Task
Generate a SQL query to answer the following question:
`What was the Category after 1991 with a Score of 7-5, 6-7, 6-2?`

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

CREATE TABLE "doubles" (
  "year" real,
  "category" text,
  "champions" text,
  "runners_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Category after 1991 with a Score of 7-5, 6-7, 6-2?`:
```sql
                SELECT "category" FROM "doubles" WHERE "year">1991 AND "score"='7-5, 6-7, 6-2';
```
## Task
Generate a SQL query to answer the following question:
`What was the issue date for the song by Paul Mccartney and Michael Jackson?`

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

CREATE TABLE "see_also" (
  "volume_issue" text,
  "issue_date_s" text,
  "weeks_on_top" real,
  "song" text,
  "artist" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the issue date for the song by Paul Mccartney and Michael Jackson?`:
```sql
                SELECT "issue_date_s" FROM "see_also" WHERE "artist"='paul mccartney and michael jackson';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of seats with INC as an election winner and BJP incumbent?`

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

CREATE TABLE "chhattisgarh_result" (
  "state" text,
  "seats_a_cs" real,
  "date_of_counting" text,
  "incumbent" text,
  "election_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of seats with INC as an election winner and BJP incumbent?`:
```sql
                SELECT MIN("seats_a_cs") FROM "chhattisgarh_result" WHERE "election_winner"='inc' AND "incumbent"='bjp';
```
## Task
Generate a SQL query to answer the following question:
`Who was the election winner with a BJP incumbent in Chhattisgarh?`

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

CREATE TABLE "chhattisgarh_result" (
  "state" text,
  "seats_a_cs" real,
  "date_of_counting" text,
  "incumbent" text,
  "election_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the election winner with a BJP incumbent in Chhattisgarh?`:
```sql
                SELECT "election_winner" FROM "chhattisgarh_result" WHERE "incumbent"='bjp' AND "state"='chhattisgarh';
```
## Task
Generate a SQL query to answer the following question:
`When was the date of counting with less than 87 seats, INC as incumbent and INC as election winner?`

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

CREATE TABLE "chhattisgarh_result" (
  "state" text,
  "seats_a_cs" real,
  "date_of_counting" text,
  "incumbent" text,
  "election_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the date of counting with less than 87 seats, INC as incumbent and INC as election winner?`:
```sql
                SELECT "date_of_counting" FROM "chhattisgarh_result" WHERE "seats_a_cs"<87 AND "incumbent"='inc' AND "election_winner"='inc';
```
## Task
Generate a SQL query to answer the following question:
`Which country has an IATA of EVN?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has an IATA of EVN?`:
```sql
                SELECT "country" FROM "destinations" WHERE "iata"='evn';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the airport located in Russia with an IATA of AER?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the airport located in Russia with an IATA of AER?`:
```sql
                SELECT "airport" FROM "destinations" WHERE "country"='russia' AND "iata"='aer';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the airport located in Russia with an IATA of KRR?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the airport located in Russia with an IATA of KRR?`:
```sql
                SELECT "airport" FROM "destinations" WHERE "country"='russia' AND "iata"='krr';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the airport with an ICAO of ULLI?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the airport with an ICAO of ULLI?`:
```sql
                SELECT "airport" FROM "destinations" WHERE "icao"='ulli';
```
## Task
Generate a SQL query to answer the following question:
`What is the ICAO for the destination in Armenia?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO for the destination in Armenia?`:
```sql
                SELECT "icao" FROM "destinations" WHERE "country"='armenia';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the airport with an IATA of KUF?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the airport with an IATA of KUF?`:
```sql
                SELECT "airport" FROM "destinations" WHERE "iata"='kuf';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of Author Del Corro?`

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

CREATE TABLE "newly_named_dinosaurs" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of Author Del Corro?`:
```sql
                SELECT "status" FROM "newly_named_dinosaurs" WHERE "authors"='del corro';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the authors of Molnar?`

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

CREATE TABLE "newly_named_dinosaurs" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the authors of Molnar?`:
```sql
                SELECT "location" FROM "newly_named_dinosaurs" WHERE "authors"='molnar';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of Prenocephale?`

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

CREATE TABLE "newly_named_dinosaurs" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of Prenocephale?`:
```sql
                SELECT "status" FROM "newly_named_dinosaurs" WHERE "name"='prenocephale';
```
## Task
Generate a SQL query to answer the following question:
`What is the novel that has a valid status, located in Mongolia, and named Prenocephale?`

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

CREATE TABLE "newly_named_dinosaurs" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the novel that has a valid status, located in Mongolia, and named Prenocephale?`:
```sql
                SELECT "novelty" FROM "newly_named_dinosaurs" WHERE "status"='valid' AND "location"='mongolia' AND "name"='prenocephale';
```
## Task
Generate a SQL query to answer the following question:
`What is the novelty of Tylocephale?`

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

CREATE TABLE "newly_named_dinosaurs" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the novelty of Tylocephale?`:
```sql
                SELECT "novelty" FROM "newly_named_dinosaurs" WHERE "name"='tylocephale';
```
## Task
Generate a SQL query to answer the following question:
`Which team 1 has vfl gummersbach as team 2?`

### 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 `Which team 1 has vfl gummersbach as team 2?`:
```sql
                SELECT "team_1" FROM "round_of_16" WHERE "team_2"='vfl gummersbach';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg that has 31-37 as the 1st leg?`

### 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 2nd leg that has 31-37 as the 1st leg?`:
```sql
                SELECT "2nd_leg" FROM "round_of_16" WHERE "1st_leg"='31-37';
```
## Task
Generate a SQL query to answer the following question:
`Which team 1 has cbm valladolid as team 2?`

### 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 `Which team 1 has cbm valladolid as team 2?`:
```sql
                SELECT "team_1" FROM "round_of_16" WHERE "team_2"='cbm valladolid';
```
## Task
Generate a SQL query to answer the following question:
`What 2nd leg has rk gold club kozina as team 1?`

### 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 2nd leg has rk gold club kozina as team 1?`:
```sql
                SELECT "2nd_leg" FROM "round_of_16" WHERE "team_1"='rk gold club kozina';
```
## Task
Generate a SQL query to answer the following question:
`What 1st leg has 52-70 as the agg.?`

### 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 1st leg has 52-70 as the agg.?`:
```sql
                SELECT "1st_leg" FROM "round_of_16" WHERE "agg"='52-70';
```
## Task
Generate a SQL query to answer the following question:
`What was the surface for October 10, 2004?`

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

CREATE TABLE "singles_13_7_6" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface for October 10, 2004?`:
```sql
                SELECT "surface" FROM "singles_13_7_6" WHERE "date"='october 10, 2004';
```
## Task
Generate a SQL query to answer the following question:
`What was the surface for the opponent Roger Federer?`

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

CREATE TABLE "singles_13_7_6" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface for the opponent Roger Federer?`:
```sql
                SELECT "surface" FROM "singles_13_7_6" WHERE "opponent"='roger federer';
```
## Task
Generate a SQL query to answer the following question:
`How many years was the 400 m event in the olympic games?`

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

CREATE TABLE "competition_record" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was the 400 m event in the olympic games?`:
```sql
                SELECT COUNT("year") FROM "competition_record" WHERE "competition"='olympic games' AND "event"='400 m';
```
## Task
Generate a SQL query to answer the following question:
`How many were in attendance of the game with l 26-21 result?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in attendance of the game with l 26-21 result?`:
```sql
                SELECT "attendance" FROM "season_schedule" WHERE "result"='l 26-21';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent for the game with 37,845 people in attendance?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent for the game with 37,845 people in attendance?`:
```sql
                SELECT "opponent" FROM "season_schedule" WHERE "attendance"='37,845';
```
## Task
Generate a SQL query to answer the following question:
`How many silver medals were there with 2 gold medals and more than 2 bronze medals?`

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

CREATE TABLE "all_time_medal_tables" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many silver medals were there with 2 gold medals and more than 2 bronze medals?`:
```sql
                SELECT "silver" FROM "all_time_medal_tables" WHERE "gold"=2 AND "bronze">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest total number of medals for rank 11 and more than 0 silver medals?`

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

CREATE TABLE "all_time_medal_tables" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest total number of medals for rank 11 and more than 0 silver medals?`:
```sql
                SELECT MIN("total") FROM "all_time_medal_tables" WHERE "rank"='11' AND "silver">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of all total medals with more than 2 bronze medals and more than 1 gold medal for the United States?`

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

CREATE TABLE "all_time_medal_tables" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of all total medals with more than 2 bronze medals and more than 1 gold medal for the United States?`:
```sql
                SELECT SUM("total") FROM "all_time_medal_tables" WHERE "bronze">2 AND "nation"='united states' AND "gold">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest number of gold medals for Canada with more than 7 bronze medals?`

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

CREATE TABLE "all_time_medal_tables" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number of gold medals for Canada with more than 7 bronze medals?`:
```sql
                SELECT MAX("gold") FROM "all_time_medal_tables" WHERE "nation"='canada' AND "bronze">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of all silver medals with less than 23 medals in total and more than 3 bronze medals for the United States?`

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

CREATE TABLE "all_time_medal_tables" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of all silver medals with less than 23 medals in total and more than 3 bronze medals for the United States?`:
```sql
                SELECT SUM("silver") FROM "all_time_medal_tables" WHERE "total"<23 AND "nation"='united states' AND "bronze">3;
```
## Task
Generate a SQL query to answer the following question:
`When was Steve Williams in Zurich and his result was 10.07?`

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

CREATE TABLE "100_meters" (
  "year" real,
  "result" real,
  "world_rank" text,
  "location" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Steve Williams in Zurich and his result was 10.07?`:
```sql
                SELECT "date" FROM "100_meters" WHERE "location"='zurich' AND "result"=10.07;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest number lost with 0 draws and less than 12 points for Gwardia Katowice?`

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

CREATE TABLE "south_group" (
  "team" text,
  "match" real,
  "points" real,
  "draw" real,
  "lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number lost with 0 draws and less than 12 points for Gwardia Katowice?`:
```sql
                SELECT MAX("lost") FROM "south_group" WHERE "draw"=0 AND "team"='gwardia katowice' AND "points"<12;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of draws with 6 losses and less than 15 points?`

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

CREATE TABLE "south_group" (
  "team" text,
  "match" real,
  "points" real,
  "draw" real,
  "lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of draws with 6 losses and less than 15 points?`:
```sql
                SELECT MAX("draw") FROM "south_group" WHERE "lost"=6 AND "points"<15;
```
## Task
Generate a SQL query to answer the following question:
`How many draws correspond to more than 11 losses in a match less than 14?`

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

CREATE TABLE "south_group" (
  "team" text,
  "match" real,
  "points" real,
  "draw" real,
  "lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many draws correspond to more than 11 losses in a match less than 14?`:
```sql
                SELECT COUNT("draw") FROM "south_group" WHERE "lost">11 AND "match"<14;
```
## Task
Generate a SQL query to answer the following question:
`What is the Director of Children of Sarajevo?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Director of Children of Sarajevo?`:
```sql
                SELECT "director" FROM "submissions" WHERE "film_title_used_in_nomination"='children of sarajevo';
```
## Task
Generate a SQL query to answer the following question:
`What is the Result of the 2010 (83rd) Ceremony?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result of the 2010 (83rd) Ceremony?`:
```sql
                SELECT "result" FROM "submissions" WHERE "year_ceremony"='2010 (83rd)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Result of the 2013 (86th) Ceremony?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result of the 2013 (86th) Ceremony?`:
```sql
                SELECT "result" FROM "submissions" WHERE "year_ceremony"='2013 (86th)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Original title of Children of Sarajevo?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Original title of Children of Sarajevo?`:
```sql
                SELECT "original_title" FROM "submissions" WHERE "film_title_used_in_nomination"='children of sarajevo';
```
## Task
Generate a SQL query to answer the following question:
`In the 2012 (85th) Ceremony, what was the Original title of the film not nominated?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the 2012 (85th) Ceremony, what was the Original title of the film not nominated?`:
```sql
                SELECT "original_title" FROM "submissions" WHERE "result"='not nominated' AND "year_ceremony"='2012 (85th)';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest draw number for the song ranked 6th with more than 43 points?`

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

CREATE TABLE "references" (
  "draw" real,
  "song" text,
  "performer" text,
  "points" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest draw number for the song ranked 6th with more than 43 points?`:
```sql
                SELECT MIN("draw") FROM "references" WHERE "points">43 AND "rank"='6th';
```
## Task
Generate a SQL query to answer the following question:
`What is the total sum of points for songs performed by Partners in Crime?`

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

CREATE TABLE "references" (
  "draw" real,
  "song" text,
  "performer" text,
  "points" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total sum of points for songs performed by Partners in Crime?`:
```sql
                SELECT SUM("points") FROM "references" WHERE "performer"='partners in crime';
```
## Task
Generate a SQL query to answer the following question:
`What is the class of facility ID 150935?`

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

CREATE TABLE "broadcast_translators_of_wzxv" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "facility_id" real,
  "erp_w" real,
  "height_m_ft" text,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class of facility ID 150935?`:
```sql
                SELECT "class" FROM "broadcast_translators_of_wzxv" WHERE "facility_id"=150935;
```
## Task
Generate a SQL query to answer the following question:
`Which city has a facility ID greater than 150833?`

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

CREATE TABLE "broadcast_translators_of_wzxv" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "facility_id" real,
  "erp_w" real,
  "height_m_ft" text,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has a facility ID greater than 150833?`:
```sql
                SELECT "city_of_license" FROM "broadcast_translators_of_wzxv" WHERE "facility_id">150833;
```
## Task
Generate a SQL query to answer the following question:
`What position does the player from the Toronto Argonauts play?`

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

CREATE TABLE "round_one" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the player from the Toronto Argonauts play?`:
```sql
                SELECT "position" FROM "round_one" WHERE "cfl_team"='toronto argonauts';
```