cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which genre is the fly fm station?`

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

CREATE TABLE "radio" (
  "frequency" text,
  "station" text,
  "operator" text,
  "language" text,
  "genre" text,
  "coverage_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which genre is the fly fm station?`:
```sql
                SELECT "genre" FROM "radio" WHERE "station"='fly fm';
```
## Task
Generate a SQL query to answer the following question:
`What frequency is the xfm station, which is part of the talk music genre?`

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

CREATE TABLE "radio" (
  "frequency" text,
  "station" text,
  "operator" text,
  "language" text,
  "genre" text,
  "coverage_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What frequency is the xfm station, which is part of the talk music genre?`:
```sql
                SELECT "frequency" FROM "radio" WHERE "genre"='talk music' AND "station"='xfm';
```
## Task
Generate a SQL query to answer the following question:
`What is the coverage area of muzik fm station, which has a music genre?`

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

CREATE TABLE "radio" (
  "frequency" text,
  "station" text,
  "operator" text,
  "language" text,
  "genre" text,
  "coverage_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the coverage area of muzik fm station, which has a music genre?`:
```sql
                SELECT "coverage_area" FROM "radio" WHERE "genre"='music' AND "station"='muzik fm';
```
## Task
Generate a SQL query to answer the following question:
`What is Co-Drivers, when Laps is greater than 196, and when Year is before 2010?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Co-Drivers, when Laps is greater than 196, and when Year is before 2010?`:
```sql
                SELECT "co_drivers" FROM "24_hours_of_le_mans_results" WHERE "laps">196 AND "year"<2010;
```
## Task
Generate a SQL query to answer the following question:
`What is the Date when the week is more than 3 and the attendance shows bye?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date when the week is more than 3 and the attendance shows bye?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week">3 AND "attendance"='bye';
```
## Task
Generate a SQL query to answer the following question:
`What is the Result when the week is later than 9, and there are 65,858 people in attendance?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result when the week is later than 9, and there are 65,858 people in attendance?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week">9 AND "attendance"='65,858';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1938 that has N/A for 1948?`

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

CREATE TABLE "grand_tour_results_timeline" (
  "1935" text,
  "1936" text,
  "1937" text,
  "1938" text,
  "1939" text,
  "1940" text,
  "1941" text,
  "1943" text,
  "1945" text,
  "1946" text,
  "1947" text,
  "1948" text,
  "1949" text,
  "1950" text,
  "1951" text,
  "1952" text,
  "1953" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1938 that has N/A for 1948?`:
```sql
                SELECT "1938" FROM "grand_tour_results_timeline" WHERE "1948"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`What 1953 has 2 for 1947, and dne as 1938?`

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

CREATE TABLE "grand_tour_results_timeline" (
  "1935" text,
  "1936" text,
  "1937" text,
  "1938" text,
  "1939" text,
  "1940" text,
  "1941" text,
  "1943" text,
  "1945" text,
  "1946" text,
  "1947" text,
  "1948" text,
  "1949" text,
  "1950" text,
  "1951" text,
  "1952" text,
  "1953" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 1953 has 2 for 1947, and dne as 1938?`:
```sql
                SELECT "1953" FROM "grand_tour_results_timeline" WHERE "1947"='2' AND "1938"='dne';
```
## Task
Generate a SQL query to answer the following question:
`What 1935 has 4 as a 1953?`

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

CREATE TABLE "grand_tour_results_timeline" (
  "1935" text,
  "1936" text,
  "1937" text,
  "1938" text,
  "1939" text,
  "1940" text,
  "1941" text,
  "1943" text,
  "1945" text,
  "1946" text,
  "1947" text,
  "1948" text,
  "1949" text,
  "1950" text,
  "1951" text,
  "1952" text,
  "1953" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 1935 has 4 as a 1953?`:
```sql
                SELECT "1935" FROM "grand_tour_results_timeline" WHERE "1953"='4';
```
## Task
Generate a SQL query to answer the following question:
`What 1953 has 2 as a 1949, and 3 as 1952?`

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

CREATE TABLE "grand_tour_results_timeline" (
  "1935" text,
  "1936" text,
  "1937" text,
  "1938" text,
  "1939" text,
  "1940" text,
  "1941" text,
  "1943" text,
  "1945" text,
  "1946" text,
  "1947" text,
  "1948" text,
  "1949" text,
  "1950" text,
  "1951" text,
  "1952" text,
  "1953" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 1953 has 2 as a 1949, and 3 as 1952?`:
```sql
                SELECT "1953" FROM "grand_tour_results_timeline" WHERE "1949"='2' AND "1952"='3';
```
## Task
Generate a SQL query to answer the following question:
`What 1941 has N/A as 1945, N/A for 1948, and 9 for 1953?`

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

CREATE TABLE "grand_tour_results_timeline" (
  "1935" text,
  "1936" text,
  "1937" text,
  "1938" text,
  "1939" text,
  "1940" text,
  "1941" text,
  "1943" text,
  "1945" text,
  "1946" text,
  "1947" text,
  "1948" text,
  "1949" text,
  "1950" text,
  "1951" text,
  "1952" text,
  "1953" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 1941 has N/A as 1945, N/A for 1948, and 9 for 1953?`:
```sql
                SELECT "1941" FROM "grand_tour_results_timeline" WHERE "1945"='n/a' AND "1948"='n/a' AND "1953"='9';
```
## Task
Generate a SQL query to answer the following question:
`What 1951 has dne for 1948?`

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

CREATE TABLE "grand_tour_results_timeline" (
  "1935" text,
  "1936" text,
  "1937" text,
  "1938" text,
  "1939" text,
  "1940" text,
  "1941" text,
  "1943" text,
  "1945" text,
  "1946" text,
  "1947" text,
  "1948" text,
  "1949" text,
  "1950" text,
  "1951" text,
  "1952" text,
  "1953" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 1951 has dne for 1948?`:
```sql
                SELECT "1951" FROM "grand_tour_results_timeline" WHERE "1948"='dne';
```
## Task
Generate a SQL query to answer the following question:
`Which Cup Apps (sub) had 2 goals?`

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

CREATE TABLE "playing_career_statistics" (
  "season" text,
  "league_apps_sub" text,
  "league_goals" text,
  "cup_apps_sub" text,
  "cup_goals" text,
  "total_apps_sub" text,
  "total_goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Cup Apps (sub) had 2 goals?`:
```sql
                SELECT "cup_apps_sub" FROM "playing_career_statistics" WHERE "cup_goals"='2';
```
## Task
Generate a SQL query to answer the following question:
`Which Total Apps (sub) has 6 goals total?`

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

CREATE TABLE "playing_career_statistics" (
  "season" text,
  "league_apps_sub" text,
  "league_goals" text,
  "cup_apps_sub" text,
  "cup_goals" text,
  "total_apps_sub" text,
  "total_goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total Apps (sub) has 6 goals total?`:
```sql
                SELECT "total_apps_sub" FROM "playing_career_statistics" WHERE "total_goals"='6';
```
## Task
Generate a SQL query to answer the following question:
`What airline has a IATA of BX?`

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

CREATE TABLE "south_korea" (
  "airline" text,
  "icao" text,
  "iata" text,
  "callsign" text,
  "commenced_operations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What airline has a IATA of BX?`:
```sql
                SELECT "airline" FROM "south_korea" WHERE "iata"='bx';
```
## Task
Generate a SQL query to answer the following question:
`What is the ICAO for Asiana Airlines?`

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

CREATE TABLE "south_korea" (
  "airline" text,
  "icao" text,
  "iata" text,
  "callsign" text,
  "commenced_operations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO for Asiana Airlines?`:
```sql
                SELECT "icao" FROM "south_korea" WHERE "airline"='asiana airlines';
```
## Task
Generate a SQL query to answer the following question:
`What is the commenced operation where the ICAO is KAL?`

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

CREATE TABLE "south_korea" (
  "airline" text,
  "icao" text,
  "iata" text,
  "callsign" text,
  "commenced_operations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the commenced operation where the ICAO is KAL?`:
```sql
                SELECT "commenced_operations" FROM "south_korea" WHERE "icao"='kal';
```
## Task
Generate a SQL query to answer the following question:
`What is the ICAO for Air Busan?`

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

CREATE TABLE "south_korea" (
  "airline" text,
  "icao" text,
  "iata" text,
  "callsign" text,
  "commenced_operations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO for Air Busan?`:
```sql
                SELECT "icao" FROM "south_korea" WHERE "callsign"='air busan';
```
## Task
Generate a SQL query to answer the following question:
`What is the callsign where the ICAO is AAR?`

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

CREATE TABLE "south_korea" (
  "airline" text,
  "icao" text,
  "iata" text,
  "callsign" text,
  "commenced_operations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the callsign where the ICAO is AAR?`:
```sql
                SELECT "callsign" FROM "south_korea" WHERE "icao"='aar';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Goal for danny williams, with more than 0 Field Goals?`

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

CREATE TABLE "scorers" (
  "player" text,
  "tries" real,
  "goals" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Goal for danny williams, with more than 0 Field Goals?`:
```sql
                SELECT MAX("goals") FROM "scorers" WHERE "player"='danny williams' AND "field_goals">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Tries with less than 0 goals?`

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

CREATE TABLE "scorers" (
  "player" text,
  "tries" real,
  "goals" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Tries with less than 0 goals?`:
```sql
                SELECT AVG("tries") FROM "scorers" WHERE "goals"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Points with less than 1 tries, and more than 0 goals?`

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

CREATE TABLE "scorers" (
  "player" text,
  "tries" real,
  "goals" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Points with less than 1 tries, and more than 0 goals?`:
```sql
                SELECT COUNT("points") FROM "scorers" WHERE "tries"<1 AND "goals">0;
```
## Task
Generate a SQL query to answer the following question:
`Which club/province has more than 9 caps and Ben Franks as a player?`

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

CREATE TABLE "current_squad" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club/province has more than 9 caps and Ben Franks as a player?`:
```sql
                SELECT "club_province" FROM "current_squad" WHERE "caps">9 AND "player"='ben franks';
```
## Task
Generate a SQL query to answer the following question:
`In which tournament was Ian Baker-Finch the runner-up?`

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

CREATE TABLE "pga_tour_wins_12" (
  "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 `In which tournament was Ian Baker-Finch the runner-up?`:
```sql
                SELECT "tournament" FROM "pga_tour_wins_12" WHERE "runner_s_up"='ian baker-finch';
```
## Task
Generate a SQL query to answer the following question:
`What tournament was played on Feb 3, 1991?`

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

CREATE TABLE "pga_tour_wins_12" (
  "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 was played on Feb 3, 1991?`:
```sql
                SELECT "tournament" FROM "pga_tour_wins_12" WHERE "date"='feb 3, 1991';
```
## Task
Generate a SQL query to answer the following question:
`In the Phoenix Open, what was the winning score?`

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

CREATE TABLE "pga_tour_wins_12" (
  "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 `In the Phoenix Open, what was the winning score?`:
```sql
                SELECT "winning_score" FROM "pga_tour_wins_12" WHERE "tournament"='phoenix open';
```
## Task
Generate a SQL query to answer the following question:
`In the tournament where Stuart Appleby was the runner-up, 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_12" (
  "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 `In the tournament where Stuart Appleby was the runner-up, what was the margin of victory?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_12" WHERE "runner_s_up"='stuart appleby';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number played with more than 30 points?`

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

CREATE TABLE "campeonato_paulista" (
  "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 lowest number played with more than 30 points?`:
```sql
                SELECT MIN("played") FROM "campeonato_paulista" WHERE "points">30;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number lost with more than 29 points and an against less than 19?`

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

CREATE TABLE "campeonato_paulista" (
  "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 highest number lost with more than 29 points and an against less than 19?`:
```sql
                SELECT MAX("lost") FROM "campeonato_paulista" WHERE "points">29 AND "against"<19;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number played with a difference of 22 and less than 34 against?`

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

CREATE TABLE "campeonato_paulista" (
  "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 total number played with a difference of 22 and less than 34 against?`:
```sql
                SELECT COUNT("played") FROM "campeonato_paulista" WHERE "difference"='22' AND "against"<34;
```
## Task
Generate a SQL query to answer the following question:
`What is the western title of the pinyin new chāojí mǎlìōu xiōngdì?`

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

CREATE TABLE "i_que_ds" (
  "western_title" text,
  "chinese_title" text,
  "pinyin" text,
  "released_date" text,
  "genre" text,
  "game_modes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the western title of the pinyin new chāojí mǎlìōu xiōngdì?`:
```sql
                SELECT "western_title" FROM "i_que_ds" WHERE "pinyin"='new chāojí mǎlìōu xiōngdì';
```
## Task
Generate a SQL query to answer the following question:
`What is the genre of the Chinese title 摸摸瓦力欧制造, which has a single-player game mode?`

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

CREATE TABLE "i_que_ds" (
  "western_title" text,
  "chinese_title" text,
  "pinyin" text,
  "released_date" text,
  "genre" text,
  "game_modes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the genre of the Chinese title 摸摸瓦力欧制造, which has a single-player game mode?`:
```sql
                SELECT "genre" FROM "i_que_ds" WHERE "game_modes"='single-player' AND "chinese_title"='摸摸瓦力欧制造';
```
## Task
Generate a SQL query to answer the following question:
`What is the pinyin for the Chinese title 直感一笔?`

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

CREATE TABLE "i_que_ds" (
  "western_title" text,
  "chinese_title" text,
  "pinyin" text,
  "released_date" text,
  "genre" text,
  "game_modes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pinyin for the Chinese title 直感一笔?`:
```sql
                SELECT "pinyin" FROM "i_que_ds" WHERE "chinese_title"='直感一笔';
```
## Task
Generate a SQL query to answer the following question:
`What is the release date for the Chinese title 摸摸瓦力欧制造?`

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

CREATE TABLE "i_que_ds" (
  "western_title" text,
  "chinese_title" text,
  "pinyin" text,
  "released_date" text,
  "genre" text,
  "game_modes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release date for the Chinese title 摸摸瓦力欧制造?`:
```sql
                SELECT "released_date" FROM "i_que_ds" WHERE "chinese_title"='摸摸瓦力欧制造';
```
## Task
Generate a SQL query to answer the following question:
`What is the western title for the puzzle genre?`

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

CREATE TABLE "i_que_ds" (
  "western_title" text,
  "chinese_title" text,
  "pinyin" text,
  "released_date" text,
  "genre" text,
  "game_modes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the western title for the puzzle genre?`:
```sql
                SELECT "western_title" FROM "i_que_ds" WHERE "genre"='puzzle';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of laps for the time of +7.277 and the grid number of more than 6?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of laps for the time of +7.277 and the grid number of more than 6?`:
```sql
                SELECT SUM("laps") FROM "superbike_race_2_classification" WHERE "time"='+7.277' AND "grid">6;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest grid when the time is +8.051 and there were less than 23 laps?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest grid when the time is +8.051 and there were less than 23 laps?`:
```sql
                SELECT MIN("grid") FROM "superbike_race_2_classification" WHERE "time"='+8.051' AND "laps"<23;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of goals for players ranked above 9 and playing more than 205 matches?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of goals for players ranked above 9 and playing more than 205 matches?`:
```sql
                SELECT AVG("goals") FROM "list_of_top_association_football_goal_sc" WHERE "matches"=205 AND "rank">9;
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank for players with under 205 matches and under 100 goals?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank for players with under 205 matches and under 100 goals?`:
```sql
                SELECT AVG("rank") FROM "list_of_top_association_football_goal_sc" WHERE "matches"<205 AND "goals"<100;
```
## Task
Generate a SQL query to answer the following question:
`What years played did the player with a rank under 10, more than 271 matches, and 152 goals have?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What years played did the player with a rank under 10, more than 271 matches, and 152 goals have?`:
```sql
                SELECT "years" FROM "list_of_top_association_football_goal_sc" WHERE "rank"<10 AND "matches">271 AND "goals"=152;
```
## Task
Generate a SQL query to answer the following question:
`Who's the Republican ticket with a Communist ticket of elizabeth gurley flynn?`

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

CREATE TABLE "1942_state_election_results" (
  "republican_ticket" text,
  "democratic_ticket" text,
  "american_labor_ticket" text,
  "communist_ticket" text,
  "socialist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Republican ticket with a Communist ticket of elizabeth gurley flynn?`:
```sql
                SELECT "republican_ticket" FROM "1942_state_election_results" WHERE "communist_ticket"='elizabeth gurley flynn';
```
## Task
Generate a SQL query to answer the following question:
`Who's the Communist ticket with an American Labor ticket of joseph v. o'leary?`

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

CREATE TABLE "1942_state_election_results" (
  "republican_ticket" text,
  "democratic_ticket" text,
  "american_labor_ticket" text,
  "communist_ticket" text,
  "socialist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Communist ticket with an American Labor ticket of joseph v. o'leary?`:
```sql
                SELECT "communist_ticket" FROM "1942_state_election_results" WHERE "american_labor_ticket"='joseph v. o''leary';
```
## Task
Generate a SQL query to answer the following question:
`Who's the Republican ticket with a Democratic ticket of flora d. johnson?`

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

CREATE TABLE "1942_state_election_results" (
  "republican_ticket" text,
  "democratic_ticket" text,
  "american_labor_ticket" text,
  "communist_ticket" text,
  "socialist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Republican ticket with a Democratic ticket of flora d. johnson?`:
```sql
                SELECT "republican_ticket" FROM "1942_state_election_results" WHERE "democratic_ticket"='flora d. johnson';
```
## Task
Generate a SQL query to answer the following question:
`Who's the Republican ticket with a Communist ticket of (none), and a Socialist ticket of joseph g. glass?`

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

CREATE TABLE "1942_state_election_results" (
  "republican_ticket" text,
  "democratic_ticket" text,
  "american_labor_ticket" text,
  "communist_ticket" text,
  "socialist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Republican ticket with a Communist ticket of (none), and a Socialist ticket of joseph g. glass?`:
```sql
                SELECT "republican_ticket" FROM "1942_state_election_results" WHERE "communist_ticket"='(none)' AND "socialist_ticket"='joseph g. glass';
```
## Task
Generate a SQL query to answer the following question:
`Who's the Republican ticket with a Democratic ticket of matthew j. merritt?`

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

CREATE TABLE "1942_state_election_results" (
  "republican_ticket" text,
  "democratic_ticket" text,
  "american_labor_ticket" text,
  "communist_ticket" text,
  "socialist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Republican ticket with a Democratic ticket of matthew j. merritt?`:
```sql
                SELECT "republican_ticket" FROM "1942_state_election_results" WHERE "democratic_ticket"='matthew j. merritt';
```
## Task
Generate a SQL query to answer the following question:
`What is the giant slalom with a 37 super g?`

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

CREATE TABLE "season_standings" (
  "season" real,
  "overall" text,
  "slalom" text,
  "giant_slalom" text,
  "super_g" text,
  "downhill" text,
  "combined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the giant slalom with a 37 super g?`:
```sql
                SELECT "giant_slalom" FROM "season_standings" WHERE "super_g"='37';
```
## Task
Generate a SQL query to answer the following question:
`What season had a game in the first round with a result of 4–1, 0–1?`

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

CREATE TABLE "european_history" (
  "season" text,
  "round" text,
  "country" text,
  "opponent" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season had a game in the first round with a result of 4–1, 0–1?`:
```sql
                SELECT "season" FROM "european_history" WHERE "round"='first round' AND "result"='4–1, 0–1';
```
## Task
Generate a SQL query to answer the following question:
`What country had an opponent of Sampdoria?`

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

CREATE TABLE "european_history" (
  "season" text,
  "round" text,
  "country" text,
  "opponent" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country had an opponent of Sampdoria?`:
```sql
                SELECT "country" FROM "european_history" WHERE "opponent"='sampdoria';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent during the second round?`

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

CREATE TABLE "european_history" (
  "season" text,
  "round" text,
  "country" text,
  "opponent" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent during the second round?`:
```sql
                SELECT "opponent" FROM "european_history" WHERE "round"='second round';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the second round?`

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

CREATE TABLE "european_history" (
  "season" text,
  "round" text,
  "country" text,
  "opponent" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the second round?`:
```sql
                SELECT "result" FROM "european_history" WHERE "round"='second round';
```
## Task
Generate a SQL query to answer the following question:
`What Opponent has an Attendance that is 26,880?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Opponent has an Attendance that is 26,880?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "attendance"='26,880';
```
## Task
Generate a SQL query to answer the following question:
`What nation has a Record of 5.06m(16ft7in)?`

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

CREATE TABLE "record_progression" (
  "record" text,
  "athlete" text,
  "nation" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nation has a Record of 5.06m(16ft7in)?`:
```sql
                SELECT "nation" FROM "record_progression" WHERE "record"='5.06m(16ft7in)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date when Russia was the nation and the venue was madrid , spain?`

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

CREATE TABLE "record_progression" (
  "record" text,
  "athlete" text,
  "nation" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date when Russia was the nation and the venue was madrid , spain?`:
```sql
                SELECT "date" FROM "record_progression" WHERE "nation"='russia' AND "venue"='madrid , spain';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date when yelena isinbayeva was the Athlete, with a Record of 4.90m(16ft0¾in)?`

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

CREATE TABLE "record_progression" (
  "record" text,
  "athlete" text,
  "nation" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date when yelena isinbayeva was the Athlete, with a Record of 4.90m(16ft0¾in)?`:
```sql
                SELECT "date" FROM "record_progression" WHERE "athlete"='yelena isinbayeva' AND "record"='4.90m(16ft0¾in)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Nation when the Athlete was emma george, and a Record of 4.58m(15ft0¼in)?`

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

CREATE TABLE "record_progression" (
  "record" text,
  "athlete" text,
  "nation" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Nation when the Athlete was emma george, and a Record of 4.58m(15ft0¼in)?`:
```sql
                SELECT "nation" FROM "record_progression" WHERE "athlete"='emma george' AND "record"='4.58m(15ft0¼in)';
```
## Task
Generate a SQL query to answer the following question:
`Who tied with 8 losses and 50% wins?`

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

CREATE TABLE "summary_of_results" (
  "played" text,
  "wins" text,
  "losses" text,
  "tied" text,
  "win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who tied with 8 losses and 50% wins?`:
```sql
                SELECT "tied" FROM "summary_of_results" WHERE "losses"='8' AND "win_pct"='50%';
```
## Task
Generate a SQL query to answer the following question:
`Which win has a loss of IPL?`

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

CREATE TABLE "summary_of_results" (
  "played" text,
  "wins" text,
  "losses" text,
  "tied" text,
  "win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which win has a loss of IPL?`:
```sql
                SELECT "wins" FROM "summary_of_results" WHERE "losses"='ipl';
```
## Task
Generate a SQL query to answer the following question:
`Which win has 38.67% wins?`

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

CREATE TABLE "summary_of_results" (
  "played" text,
  "wins" text,
  "losses" text,
  "tied" text,
  "win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which win has 38.67% wins?`:
```sql
                SELECT "wins" FROM "summary_of_results" WHERE "win_pct"='38.67%';
```
## Task
Generate a SQL query to answer the following question:
`What percentage of wins has 48 losses?`

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

CREATE TABLE "summary_of_results" (
  "played" text,
  "wins" text,
  "losses" text,
  "tied" text,
  "win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of wins has 48 losses?`:
```sql
                SELECT "win_pct" FROM "summary_of_results" WHERE "losses"='48';
```
## Task
Generate a SQL query to answer the following question:
`What was tied at 15 played?`

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

CREATE TABLE "summary_of_results" (
  "played" text,
  "wins" text,
  "losses" text,
  "tied" text,
  "win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was tied at 15 played?`:
```sql
                SELECT "tied" FROM "summary_of_results" WHERE "played"='15';
```
## Task
Generate a SQL query to answer the following question:
`What was the average round for john markham draft pick?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average round for john markham draft pick?`:
```sql
                SELECT AVG("round") FROM "nfl_draft" WHERE "player"='john markham';
```
## Task
Generate a SQL query to answer the following question:
`What school did draft pick before 125, will allen go to?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school did draft pick before 125, will allen go to?`:
```sql
                SELECT "school" FROM "nfl_draft" WHERE "pick"<125 AND "player"='will allen';
```
## Task
Generate a SQL query to answer the following question:
`What school did draft pick from round 3 go to?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school did draft pick from round 3 go to?`:
```sql
                SELECT "school" FROM "nfl_draft" WHERE "round"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of FA Trophy matches for a player with a total number of matches under 22 and less than 0 league cups.`

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

CREATE TABLE "topscorers_in_order_of_league_goals" (
  "player" text,
  "club" text,
  "league" real,
  "fa_cup" real,
  "fa_trophy" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of FA Trophy matches for a player with a total number of matches under 22 and less than 0 league cups.`:
```sql
                SELECT MIN("fa_trophy") FROM "topscorers_in_order_of_league_goals" WHERE "total"<22 AND "league_cup"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest games lost by Paulistano with more than 39 points?`

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

CREATE TABLE "campeonato_paulista" (
  "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 fewest games lost by Paulistano with more than 39 points?`:
```sql
                SELECT MIN("lost") FROM "campeonato_paulista" WHERE "team"='paulistano' AND "points">39;
```
## Task
Generate a SQL query to answer the following question:
`How many games were played against when the team played more than 22 total?`

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

CREATE TABLE "campeonato_paulista" (
  "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 games were played against when the team played more than 22 total?`:
```sql
                SELECT SUM("against") FROM "campeonato_paulista" WHERE "played">22;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of against when the difference was 58 and the total played was more than 22?`

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

CREATE TABLE "campeonato_paulista" (
  "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 was the highest number of against when the difference was 58 and the total played was more than 22?`:
```sql
                SELECT MAX("against") FROM "campeonato_paulista" WHERE "difference"='58' AND "played">22;
```
## Task
Generate a SQL query to answer the following question:
`What is the Score with a Winning team that is san antonio spurs?`

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

CREATE TABLE "national_basketball_association" (
  "year" real,
  "winning_team" text,
  "losing_team" text,
  "score" text,
  "site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score with a Winning team that is san antonio spurs?`:
```sql
                SELECT "score" FROM "national_basketball_association" WHERE "winning_team"='san antonio spurs';
```
## Task
Generate a SQL query to answer the following question:
`Which Result has an Attendance of 60,705?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Result has an Attendance of 60,705?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance"='60,705';
```
## Task
Generate a SQL query to answer the following question:
`How many Weeks have a Result of w 17–13?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Weeks have a Result of w 17–13?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "result"='w 17–13';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent that has a Week larger than 3 on october 6, 1991?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent that has a Week larger than 3 on october 6, 1991?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week">3 AND "date"='october 6, 1991';
```
## Task
Generate a SQL query to answer the following question:
`When has Attendances of 45,795?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has Attendances of 45,795?`:
```sql
                SELECT "date" FROM "schedule" WHERE "attendance"='45,795';
```
## Task
Generate a SQL query to answer the following question:
`In what Week has a Result of l 24–20, and a Opponent of at new england patriots?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Week has a Result of l 24–20, and a Opponent of at new england patriots?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "result"='l 24–20' AND "opponent"='at new england patriots';
```
## Task
Generate a SQL query to answer the following question:
`What years were the goals less then 160?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What years were the goals less then 160?`:
```sql
                SELECT "years" FROM "list_of_top_association_football_goal_sc" WHERE "goals"<160;
```
## Task
Generate a SQL query to answer the following question:
`What is the IATA code for the airport with an ICAO code of HLLS?`

### 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 IATA code for the airport with an ICAO code of HLLS?`:
```sql
                SELECT "iata" FROM "destinations" WHERE "icao"='hlls';
```
## Task
Generate a SQL query to answer the following question:
`What airport is in Sabha?`

### 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 airport is in Sabha?`:
```sql
                SELECT "airport" FROM "destinations" WHERE "city"='sabha';
```
## Task
Generate a SQL query to answer the following question:
`What is the ICAO code for the airport with RBA as its IATA code?`

### 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 code for the airport with RBA as its IATA code?`:
```sql
                SELECT "icao" FROM "destinations" WHERE "iata"='rba';
```
## Task
Generate a SQL query to answer the following question:
`What country is Istanbul in?`

### 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 country is Istanbul in?`:
```sql
                SELECT "country" FROM "destinations" WHERE "city"='istanbul';
```
## Task
Generate a SQL query to answer the following question:
`Which airport has SEB as its IATA code?`

### 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 airport has SEB as its IATA code?`:
```sql
                SELECT "airport" FROM "destinations" WHERE "iata"='seb';
```