cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the earliest year in which the result is championship US Open (2)?`

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

CREATE TABLE "mixed_doubles_9_7_2" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year in which the result is championship US Open (2)?`:
```sql
                SELECT MIN("year") FROM "mixed_doubles_9_7_2" WHERE "championship"='US Open (2)';
```
## Task
Generate a SQL query to answer the following question:
`Who was Bob Bryan's partner in the Championship where the result is US Open (2)?`

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

CREATE TABLE "mixed_doubles_9_7_2" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Bob Bryan's partner in the Championship where the result is US Open (2)?`:
```sql
                SELECT "partner" FROM "mixed_doubles_9_7_2" WHERE "championship"='US Open (2)';
```
## Task
Generate a SQL query to answer the following question:
`What are the results of those matches where the championship is French Open?`

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

CREATE TABLE "mixed_doubles_9_7_2" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the results of those matches where the championship is French Open?`:
```sql
                SELECT "score" FROM "mixed_doubles_9_7_2" WHERE "championship"='French Open';
```
## Task
Generate a SQL query to answer the following question:
`on how many days did the episode written by harold hayes jr. & craig s. phillips originally air`

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

CREATE TABLE "table1_29196086_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `on how many days did the episode written by harold hayes jr. & craig s. phillips originally air`:
```sql
                SELECT COUNT("original_air_date") FROM "table1_29196086_4" WHERE "written_by"='Harold Hayes Jr. & Craig S. Phillips';
```
## Task
Generate a SQL query to answer the following question:
`who directed "grampires"(part 1)`

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

CREATE TABLE "table1_29196086_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `who directed "grampires"(part 1)`:
```sql
                SELECT "directed_by" FROM "table1_29196086_4" WHERE "title"='\"Grampires\"(Part 1)';
```
## Task
Generate a SQL query to answer the following question:
`how many episodes originally aired january19,2013`

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

CREATE TABLE "table1_29196086_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many episodes originally aired january19,2013`:
```sql
                SELECT COUNT("no_in_series") FROM "table1_29196086_4" WHERE "original_air_date"='January19,2013';
```
## Task
Generate a SQL query to answer the following question:
`which episode of the season aired on october20,2012`

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

CREATE TABLE "table1_29196086_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `which episode of the season aired on october20,2012`:
```sql
                SELECT MAX("no_in_season") FROM "table1_29196086_4" WHERE "original_air_date"='October20,2012';
```
## Task
Generate a SQL query to answer the following question:
`Which team was the opponent in game 5?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team was the opponent in game 5?`:
```sql
                SELECT "team" FROM "game_log" WHERE "game"=5;
```
## Task
Generate a SQL query to answer the following question:
`When did the official rating 4+ reach 4 633 925?`

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

CREATE TABLE "rating_figures" (
  "episode" real,
  "date" text,
  "official_rating_4" text,
  "share_4" text,
  "official_rating_16_39" text,
  "share_16_39" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the official rating 4+ reach 4 633 925?`:
```sql
                SELECT "date" FROM "rating_figures" WHERE "official_rating_4"='4 633 925';
```
## Task
Generate a SQL query to answer the following question:
`Lis the series for game 5.`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Lis the series for game 5.`:
```sql
                SELECT "series" FROM "game_log" WHERE "game"=5;
```
## Task
Generate a SQL query to answer the following question:
`What was the final in the game that boris diaw (34) scored the most points?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final in the game that boris diaw (34) scored the most points?`:
```sql
                SELECT "score" FROM "game_log" WHERE "high_points"='Boris Diaw (34)';
```
## Task
Generate a SQL query to answer the following question:
`What is the figure for December 28 for ang tanging ina mo (last na 'to!)?`

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

CREATE TABLE "reaction" (
  "movies" text,
  "december_25" text,
  "december_26" text,
  "december_27" text,
  "december_28" text,
  "december_25_28_total" text,
  "total_2_week_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the figure for December 28 for ang tanging ina mo (last na 'to!)?`:
```sql
                SELECT "december_28" FROM "reaction" WHERE "movies"='Ang Tanging Ina Mo (Last na ''To!)';
```
## Task
Generate a SQL query to answer the following question:
`What is the figure for December 27 for ang tanging ina mo (last na 'to!)?`

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

CREATE TABLE "reaction" (
  "movies" text,
  "december_25" text,
  "december_26" text,
  "december_27" text,
  "december_28" text,
  "december_25_28_total" text,
  "total_2_week_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the figure for December 27 for ang tanging ina mo (last na 'to!)?`:
```sql
                SELECT "december_27" FROM "reaction" WHERE "movies"='Ang Tanging Ina Mo (Last na ''To!)';
```
## Task
Generate a SQL query to answer the following question:
`How many figures are provided for December 28 for Rosario?`

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

CREATE TABLE "reaction" (
  "movies" text,
  "december_25" text,
  "december_26" text,
  "december_27" text,
  "december_28" text,
  "december_25_28_total" text,
  "total_2_week_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many figures are provided for December 28 for Rosario?`:
```sql
                SELECT COUNT("december_28") FROM "reaction" WHERE "movies"='Rosario';
```
## Task
Generate a SQL query to answer the following question:
`What is the figure for December 25 for the film that totalled p15.3 million for December 25-28 total?`

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

CREATE TABLE "reaction" (
  "movies" text,
  "december_25" text,
  "december_26" text,
  "december_27" text,
  "december_28" text,
  "december_25_28_total" text,
  "total_2_week_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the figure for December 25 for the film that totalled p15.3 million for December 25-28 total?`:
```sql
                SELECT "december_25" FROM "reaction" WHERE "december_25_28_total"='P15.3 million';
```
## Task
Generate a SQL query to answer the following question:
`What film earmed p3.2 million on December 25?`

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

CREATE TABLE "reaction" (
  "movies" text,
  "december_25" text,
  "december_26" text,
  "december_27" text,
  "december_28" text,
  "december_25_28_total" text,
  "total_2_week_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What film earmed p3.2 million on December 25?`:
```sql
                SELECT "movies" FROM "reaction" WHERE "december_25"='P3.2 million';
```
## Task
Generate a SQL query to answer the following question:
`What was the Friday June 3 practice time of the rider who did 20' 50.45 108.623mph on Thursday, June 2?`

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

CREATE TABLE "practice_times_and_leaderboard_600cc" (
  "rank" real,
  "rider" text,
  "mon_30_may" text,
  "tues_31_may" text,
  "wed_1_june" text,
  "thurs_2_june" text,
  "fri_3_june" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Friday June 3 practice time of the rider who did 20' 50.45 108.623mph on Thursday, June 2?`:
```sql
                SELECT "fri_3_june" FROM "practice_times_and_leaderboard_600cc" WHERE "thurs_2_june"='20'' 50.45 108.623mph';
```
## Task
Generate a SQL query to answer the following question:
`What's the Wednesday, June 1 practice time for the rider that did 21' 05.87 107.300mph on Thursday, June 2?`

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

CREATE TABLE "practice_times_and_leaderboard_600cc" (
  "rank" real,
  "rider" text,
  "mon_30_may" text,
  "tues_31_may" text,
  "wed_1_june" text,
  "thurs_2_june" text,
  "fri_3_june" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Wednesday, June 1 practice time for the rider that did 21' 05.87 107.300mph on Thursday, June 2?`:
```sql
                SELECT "wed_1_june" FROM "practice_times_and_leaderboard_600cc" WHERE "thurs_2_june"='21'' 05.87 107.300mph';
```
## Task
Generate a SQL query to answer the following question:
`How many people wrote episode 9 in the season that was directed by Ernest Dickerson?`

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

CREATE TABLE "table1_29219286_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people wrote episode 9 in the season that was directed by Ernest Dickerson?`:
```sql
                SELECT COUNT("written_by") FROM "table1_29219286_1" WHERE "directed_by"='Ernest Dickerson' AND "no_in_season"=9;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode that was directed by Milan Cheylov?`

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

CREATE TABLE "table1_29219286_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode that was directed by Milan Cheylov?`:
```sql
                SELECT "written_by" FROM "table1_29219286_1" WHERE "directed_by"='Milan Cheylov';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes in the season had the title, "first blood"?`

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

CREATE TABLE "table1_29219286_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes in the season had the title, "first blood"?`:
```sql
                SELECT COUNT("no_in_season") FROM "table1_29219286_1" WHERE "title"='\"First Blood\"';
```
## Task
Generate a SQL query to answer the following question:
`Who was the EP winning team when the CP winning team was Dave Clark and the GM winning team was Stuart Northrup?`

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

CREATE TABLE "table1_29225103_2" (
  "rnd" text,
  "circuit" text,
  "ap_winning_team" text,
  "bp_winning_team" text,
  "cm_winning_team" text,
  "cp_winning_team" text,
  "dm_winning_team" text,
  "dp_winning_team" text,
  "em_winning_team" text,
  "ep_winning_team" text,
  "fm_winning_team" text,
  "fp_winning_team" text,
  "gm_winning_team" text,
  "gp_winning_team" text,
  "hm_winning_team" text,
  "hp_winning_team" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the EP winning team when the CP winning team was Dave Clark and the GM winning team was Stuart Northrup?`:
```sql
                SELECT "ep_winning_team" FROM "table1_29225103_2" WHERE "cp_winning_team"='Dave Clark' AND "gm_winning_team"='Stuart Northrup';
```
## Task
Generate a SQL query to answer the following question:
`Who was the CM winning team when the FM winning team was #17 Elva - Ford?`

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

CREATE TABLE "table1_29225103_2" (
  "rnd" text,
  "circuit" text,
  "ap_winning_team" text,
  "bp_winning_team" text,
  "cm_winning_team" text,
  "cp_winning_team" text,
  "dm_winning_team" text,
  "dp_winning_team" text,
  "em_winning_team" text,
  "ep_winning_team" text,
  "fm_winning_team" text,
  "fp_winning_team" text,
  "gm_winning_team" text,
  "gp_winning_team" text,
  "hm_winning_team" text,
  "hp_winning_team" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the CM winning team when the FM winning team was #17 Elva - Ford?`:
```sql
                SELECT "cm_winning_team" FROM "table1_29225103_2" WHERE "fm_winning_team"='#17 Elva - Ford';
```
## Task
Generate a SQL query to answer the following question:
`Who the GM winning team when the EP winning team was #37 Porsche? `

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

CREATE TABLE "table1_29225103_2" (
  "rnd" text,
  "circuit" text,
  "ap_winning_team" text,
  "bp_winning_team" text,
  "cm_winning_team" text,
  "cp_winning_team" text,
  "dm_winning_team" text,
  "dp_winning_team" text,
  "em_winning_team" text,
  "ep_winning_team" text,
  "fm_winning_team" text,
  "fp_winning_team" text,
  "gm_winning_team" text,
  "gp_winning_team" text,
  "hm_winning_team" text,
  "hp_winning_team" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who the GM winning team when the EP winning team was #37 Porsche? `:
```sql
                SELECT "gm_winning_team" FROM "table1_29225103_2" WHERE "ep_winning_team"='#37 Porsche';
```
## Task
Generate a SQL query to answer the following question:
`Who was the EP winning team when the FM winning team was Brabham - Ford and the HM winning team was Osca?`

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

CREATE TABLE "table1_29225103_2" (
  "rnd" text,
  "circuit" text,
  "ap_winning_team" text,
  "bp_winning_team" text,
  "cm_winning_team" text,
  "cp_winning_team" text,
  "dm_winning_team" text,
  "dp_winning_team" text,
  "em_winning_team" text,
  "ep_winning_team" text,
  "fm_winning_team" text,
  "fp_winning_team" text,
  "gm_winning_team" text,
  "gp_winning_team" text,
  "hm_winning_team" text,
  "hp_winning_team" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the EP winning team when the FM winning team was Brabham - Ford and the HM winning team was Osca?`:
```sql
                SELECT "ep_winning_team" FROM "table1_29225103_2" WHERE "fm_winning_team"='Brabham - Ford' AND "hm_winning_team"='Osca';
```
## Task
Generate a SQL query to answer the following question:
`Who was the HP winning team when the EP winning team was Hans Zereis and the GM winning team was Charles Gibson? `

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

CREATE TABLE "table1_29225103_2" (
  "rnd" text,
  "circuit" text,
  "ap_winning_team" text,
  "bp_winning_team" text,
  "cm_winning_team" text,
  "cp_winning_team" text,
  "dm_winning_team" text,
  "dp_winning_team" text,
  "em_winning_team" text,
  "ep_winning_team" text,
  "fm_winning_team" text,
  "fp_winning_team" text,
  "gm_winning_team" text,
  "gp_winning_team" text,
  "hm_winning_team" text,
  "hp_winning_team" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the HP winning team when the EP winning team was Hans Zereis and the GM winning team was Charles Gibson? `:
```sql
                SELECT "hp_winning_team" FROM "table1_29225103_2" WHERE "ep_winning_team"='Hans Zereis' AND "gm_winning_team"='Charles Gibson';
```
## Task
Generate a SQL query to answer the following question:
`what was the name of the team opponent to elfsborg`

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

CREATE TABLE "norwegian_clubs_performance_in_europe" (
  "team" text,
  "contest_and_round" text,
  "opponent" text,
  "1st_leg_score" text,
  "2nd_leg_score" text,
  "aggregate_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the name of the team opponent to elfsborg`:
```sql
                SELECT "team" FROM "norwegian_clubs_performance_in_europe" WHERE "opponent"='Elfsborg';
```
## Task
Generate a SQL query to answer the following question:
`what is the score in the 1st leg where the contest and round was in europa league play off round`

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

CREATE TABLE "norwegian_clubs_performance_in_europe" (
  "team" text,
  "contest_and_round" text,
  "opponent" text,
  "1st_leg_score" text,
  "2nd_leg_score" text,
  "aggregate_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score in the 1st leg where the contest and round was in europa league play off round`:
```sql
                SELECT COUNT("1st_leg_score") FROM "norwegian_clubs_performance_in_europe" WHERE "contest_and_round"='Europa League Play Off Round';
```
## Task
Generate a SQL query to answer the following question:
`what is the name of the team which aggregate score is l 1–2`

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

CREATE TABLE "norwegian_clubs_performance_in_europe" (
  "team" text,
  "contest_and_round" text,
  "opponent" text,
  "1st_leg_score" text,
  "2nd_leg_score" text,
  "aggregate_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the team which aggregate score is l 1–2`:
```sql
                SELECT "team" FROM "norwegian_clubs_performance_in_europe" WHERE "aggregate_score"='L 1–2';
```
## Task
Generate a SQL query to answer the following question:
`what is the aggregate score for the europa league play off round contest and round`

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

CREATE TABLE "norwegian_clubs_performance_in_europe" (
  "team" text,
  "contest_and_round" text,
  "opponent" text,
  "1st_leg_score" text,
  "2nd_leg_score" text,
  "aggregate_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the aggregate score for the europa league play off round contest and round`:
```sql
                SELECT "aggregate_score" FROM "norwegian_clubs_performance_in_europe" WHERE "contest_and_round"='Europa League Play Off Round';
```
## Task
Generate a SQL query to answer the following question:
`How many dollars is listed under Sydney when the distance is 10km?`

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

CREATE TABLE "public_transport_pricing" (
  "distance" text,
  "adelaide" text,
  "brisbane" text,
  "canberra" text,
  "melbourne" text,
  "perth" text,
  "sydney" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dollars is listed under Sydney when the distance is 10km?`:
```sql
                SELECT "sydney" FROM "public_transport_pricing" WHERE "distance"='10km';
```
## Task
Generate a SQL query to answer the following question:
`How many distance places have brisbane at $3.80?`

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

CREATE TABLE "public_transport_pricing" (
  "distance" text,
  "adelaide" text,
  "brisbane" text,
  "canberra" text,
  "melbourne" text,
  "perth" text,
  "sydney" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many distance places have brisbane at $3.80?`:
```sql
                SELECT COUNT("distance") FROM "public_transport_pricing" WHERE "brisbane"='$3.80';
```
## Task
Generate a SQL query to answer the following question:
`How many listings under Melbourne has a distance at 15km?`

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

CREATE TABLE "public_transport_pricing" (
  "distance" text,
  "adelaide" text,
  "brisbane" text,
  "canberra" text,
  "melbourne" text,
  "perth" text,
  "sydney" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many listings under Melbourne has a distance at 15km?`:
```sql
                SELECT COUNT("melbourne") FROM "public_transport_pricing" WHERE "distance"='15km';
```
## Task
Generate a SQL query to answer the following question:
`What is the distance when brisbane is $4.80?`

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

CREATE TABLE "public_transport_pricing" (
  "distance" text,
  "adelaide" text,
  "brisbane" text,
  "canberra" text,
  "melbourne" text,
  "perth" text,
  "sydney" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distance when brisbane is $4.80?`:
```sql
                SELECT "distance" FROM "public_transport_pricing" WHERE "brisbane"='$4.80';
```
## Task
Generate a SQL query to answer the following question:
`What is the distance when brisbane is $5.20?`

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

CREATE TABLE "public_transport_pricing" (
  "distance" text,
  "adelaide" text,
  "brisbane" text,
  "canberra" text,
  "melbourne" text,
  "perth" text,
  "sydney" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distance when brisbane is $5.20?`:
```sql
                SELECT "distance" FROM "public_transport_pricing" WHERE "brisbane"='$5.20';
```
## Task
Generate a SQL query to answer the following question:
`How many scores did Helen Sildna give when Iiris Vesik gave a 3?`

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

CREATE TABLE "table1_29261215_4" (
  "artist" text,
  "jaanu_n_gisto" real,
  "iiris_vesik" real,
  "erik_morna" real,
  "veronika_portsmuth" real,
  "chalice" real,
  "kristo_rajasaare" real,
  "hannaliisa_uusmaa" real,
  "siim_nestor" real,
  "peeter_v_hi" real,
  "helen_sildna" real,
  "ott_lepland" real,
  "total" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many scores did Helen Sildna give when Iiris Vesik gave a 3?`:
```sql
                SELECT COUNT("helen_sildna") FROM "table1_29261215_4" WHERE "iiris_vesik"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum points received when Peeter Vähl gave a 9?`

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

CREATE TABLE "table1_29261215_4" (
  "artist" text,
  "jaanu_n_gisto" real,
  "iiris_vesik" real,
  "erik_morna" real,
  "veronika_portsmuth" real,
  "chalice" real,
  "kristo_rajasaare" real,
  "hannaliisa_uusmaa" real,
  "siim_nestor" real,
  "peeter_v_hi" real,
  "helen_sildna" real,
  "ott_lepland" real,
  "total" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum points received when Peeter Vähl gave a 9?`:
```sql
                SELECT MIN("points") FROM "table1_29261215_4" WHERE "peeter_v_hi"=9;
```
## Task
Generate a SQL query to answer the following question:
`Who is the manager for the fc inter club?`

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

CREATE TABLE "team_summaries" (
  "club" text,
  "location" text,
  "stadium" text,
  "capacity" real,
  "manager" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the manager for the fc inter club?`:
```sql
                SELECT "manager" FROM "team_summaries" WHERE "club"='FC Inter';
```
## Task
Generate a SQL query to answer the following question:
`Which club is at the location of kuopio?`

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

CREATE TABLE "team_summaries" (
  "club" text,
  "location" text,
  "stadium" text,
  "capacity" real,
  "manager" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club is at the location of kuopio?`:
```sql
                SELECT "club" FROM "team_summaries" WHERE "location"='Kuopio';
```
## Task
Generate a SQL query to answer the following question:
`How many stadiums have haka as the club?`

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

CREATE TABLE "team_summaries" (
  "club" text,
  "location" text,
  "stadium" text,
  "capacity" real,
  "manager" text,
  "captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many stadiums have haka as the club?`:
```sql
                SELECT COUNT("stadium") FROM "team_summaries" WHERE "club"='Haka';
```
## Task
Generate a SQL query to answer the following question:
`Who is the artist 2 on the setlist where the artist 1 is Sparfunk & D-Code?`

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

CREATE TABLE "table1_29264319_1" (
  "song_1_title" text,
  "artist_1" text,
  "song_2_title" text,
  "artist_2" text,
  "mix_artist" text,
  "venue" text,
  "battle_mix" text,
  "setlist" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the artist 2 on the setlist where the artist 1 is Sparfunk & D-Code?`:
```sql
                SELECT "artist_2" FROM "table1_29264319_1" WHERE "artist_1"='Sparfunk & D-Code';
```
## Task
Generate a SQL query to answer the following question:
`Who is the mix artist for the closing party setlist where artist 1 is Dillinja and Skibadee?`

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

CREATE TABLE "table1_29264319_1" (
  "song_1_title" text,
  "artist_1" text,
  "song_2_title" text,
  "artist_2" text,
  "mix_artist" text,
  "venue" text,
  "battle_mix" text,
  "setlist" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the mix artist for the closing party setlist where artist 1 is Dillinja and Skibadee?`:
```sql
                SELECT "mix_artist" FROM "table1_29264319_1" WHERE "setlist"='Closing Party' AND "artist_1"='Dillinja and Skibadee';
```
## Task
Generate a SQL query to answer the following question:
`Who is the artist 1 on the setlist where the song 1 title is "Bounce (Remix)"?`

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

CREATE TABLE "table1_29264319_1" (
  "song_1_title" text,
  "artist_1" text,
  "song_2_title" text,
  "artist_2" text,
  "mix_artist" text,
  "venue" text,
  "battle_mix" text,
  "setlist" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the artist 1 on the setlist where the song 1 title is "Bounce (Remix)"?`:
```sql
                SELECT "artist_1" FROM "table1_29264319_1" WHERE "song_1_title"='\"Bounce (Remix)\"';
```
## Task
Generate a SQL query to answer the following question:
`On how many different dates was the episode written by Charlie Day aired for the first time?`

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

CREATE TABLE "table1_29273115_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `On how many different dates was the episode written by Charlie Day aired for the first time?`:
```sql
                SELECT COUNT("original_air_date") FROM "table1_29273115_1" WHERE "written_by"='Charlie Day';
```
## Task
Generate a SQL query to answer the following question:
`Who are the writers of the episode with production code IP02009?`

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

CREATE TABLE "table1_29273115_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the writers of the episode with production code IP02009?`:
```sql
                SELECT "written_by" FROM "table1_29273115_1" WHERE "production_code"='IP02009';
```
## Task
Generate a SQL query to answer the following question:
`Who are the writers of the episode titled "Mac Bangs Dennis' Mom"?`

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

CREATE TABLE "table1_29273115_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the writers of the episode titled "Mac Bangs Dennis' Mom"?`:
```sql
                SELECT "written_by" FROM "table1_29273115_1" WHERE "title"='\"Mac Bangs Dennis'' Mom\"';
```
## Task
Generate a SQL query to answer the following question:
`How many different titles does the episode with production code IP02003 have?`

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

CREATE TABLE "table1_29273115_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different titles does the episode with production code IP02003 have?`:
```sql
                SELECT COUNT("title") FROM "table1_29273115_1" WHERE "production_code"='IP02003';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with a production code of ip03007?`

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

CREATE TABLE "table1_29273182_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with a production code of ip03007?`:
```sql
                SELECT "written_by" FROM "table1_29273182_1" WHERE "production_code"='IP03007';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of episode number 29 in the series?`

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

CREATE TABLE "table1_29273182_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of episode number 29 in the series?`:
```sql
                SELECT "title" FROM "table1_29273182_1" WHERE "no_in_series"=29;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with ip03012 as the production code?`

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

CREATE TABLE "table1_29273182_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with ip03012 as the production code?`:
```sql
                SELECT "written_by" FROM "table1_29273182_1" WHERE "production_code"='IP03012';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with production code ip03010?`

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

CREATE TABLE "table1_29273182_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with production code ip03010?`:
```sql
                SELECT "directed_by" FROM "table1_29273182_1" WHERE "production_code"='IP03010';
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount in each season? `

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

CREATE TABLE "table1_29273390_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount in each season? `:
```sql
                SELECT MIN("no_in_season") FROM "table1_29273390_1";
```
## Task
Generate a SQL query to answer the following question:
`What is the least number in a season?`

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

CREATE TABLE "table1_29273390_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least number in a season?`:
```sql
                SELECT MIN("no_in_season") FROM "table1_29273390_1";
```
## Task
Generate a SQL query to answer the following question:
`Who directed an episode with 1.19 million? `

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

CREATE TABLE "table1_29273390_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed an episode with 1.19 million? `:
```sql
                SELECT "directed_by" FROM "table1_29273390_1" WHERE "u_s_viewers_million"='1.19';
```
## Task
Generate a SQL query to answer the following question:
`At what location was the March 17 race held?`

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

CREATE TABLE "race_calendar_and_results" (
  "rnd" real,
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "most_laps_led" text,
  "winning_driver" text,
  "winning_team" text,
  "supporting" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what location was the March 17 race held?`:
```sql
                SELECT "location" FROM "race_calendar_and_results" WHERE "date"='March 17';
```
## Task
Generate a SQL query to answer the following question:
`What location did Zach Veach have the fastest lap?`

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

CREATE TABLE "race_calendar_and_results" (
  "rnd" real,
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "most_laps_led" text,
  "winning_driver" text,
  "winning_team" text,
  "supporting" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location did Zach Veach have the fastest lap?`:
```sql
                SELECT "location" FROM "race_calendar_and_results" WHERE "fastest_lap"='Zach Veach';
```
## Task
Generate a SQL query to answer the following question:
`Where was the race with Luke Ellery as fastest lap and Wayne Boyd as winning driver?`

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

CREATE TABLE "race_calendar_and_results" (
  "rnd" real,
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "most_laps_led" text,
  "winning_driver" text,
  "winning_team" text,
  "supporting" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the race with Luke Ellery as fastest lap and Wayne Boyd as winning driver?`:
```sql
                SELECT "location" FROM "race_calendar_and_results" WHERE "fastest_lap"='Luke Ellery' AND "winning_driver"='Wayne Boyd';
```
## Task
Generate a SQL query to answer the following question:
`When 318676 is the population of 2010 and 1st class is the income classification what is the area in kilometers squared?`

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

CREATE TABLE "table1_29289372_1" (
  "city_municipality" text,
  "population_2010" real,
  "area_km" text,
  "pop_density_per_km" text,
  "income_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 318676 is the population of 2010 and 1st class is the income classification what is the area in kilometers squared?`:
```sql
                SELECT "area_km" FROM "table1_29289372_1" WHERE "income_classification"='1st Class' AND "population_2010"=318676;
```
## Task
Generate a SQL query to answer the following question:
`When itogon, benguet is the city/municipality and 1st class is the income classification how many measurements of population in 2010?`

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

CREATE TABLE "table1_29289372_1" (
  "city_municipality" text,
  "population_2010" real,
  "area_km" text,
  "pop_density_per_km" text,
  "income_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When itogon, benguet is the city/municipality and 1st class is the income classification how many measurements of population in 2010?`:
```sql
                SELECT COUNT("population_2010") FROM "table1_29289372_1" WHERE "income_classification"='1st Class' AND "city_municipality"='Itogon, Benguet';
```
## Task
Generate a SQL query to answer the following question:
`When 82.74 is the area in kilometers squared what is the pop.density (per km2)?`

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

CREATE TABLE "table1_29289372_1" (
  "city_municipality" text,
  "population_2010" real,
  "area_km" text,
  "pop_density_per_km" text,
  "income_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 82.74 is the area in kilometers squared what is the pop.density (per km2)?`:
```sql
                SELECT "pop_density_per_km" FROM "table1_29289372_1" WHERE "area_km"='82.74';
```
## Task
Generate a SQL query to answer the following question:
`When 106 is the area in kilometers squared what is the city/municipality?`

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

CREATE TABLE "table1_29289372_1" (
  "city_municipality" text,
  "population_2010" real,
  "area_km" text,
  "pop_density_per_km" text,
  "income_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 106 is the area in kilometers squared what is the city/municipality?`:
```sql
                SELECT "city_municipality" FROM "table1_29289372_1" WHERE "area_km"='106';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes have the production code ip04004?`

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

CREATE TABLE "table1_29273243_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes have the production code ip04004?`:
```sql
                SELECT COUNT("title") FROM "table1_29273243_1" WHERE "production_code"='IP04004';
```
## Task
Generate a SQL query to answer the following question:
`What season number is the episode "The Gang Cracks The Liberty Bell"?`

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

CREATE TABLE "table1_29273243_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season number is the episode "The Gang Cracks The Liberty Bell"?`:
```sql
                SELECT MIN("no_in_season") FROM "table1_29273243_1" WHERE "title"='\"The Gang Cracks the Liberty Bell\"';
```
## Task
Generate a SQL query to answer the following question:
`How many people wrote "Paddy's Pub: The Worst Bar in Philadelphia"?`

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

CREATE TABLE "table1_29273243_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people wrote "Paddy's Pub: The Worst Bar in Philadelphia"?`:
```sql
                SELECT COUNT("written_by") FROM "table1_29273243_1" WHERE "title"='\"Paddy''s Pub: The Worst Bar in Philadelphia\"';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote episode number 11?`

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

CREATE TABLE "table1_29273243_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote episode number 11?`:
```sql
                SELECT "written_by" FROM "table1_29273243_1" WHERE "no_in_season"=11;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode "The Gang Gets Extreme: Home Makeover Edition"?`

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

CREATE TABLE "table1_29273243_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode "The Gang Gets Extreme: Home Makeover Edition"?`:
```sql
                SELECT "written_by" FROM "table1_29273243_1" WHERE "title"='\"The Gang Gets Extreme: Home Makeover Edition\"';
```
## Task
Generate a SQL query to answer the following question:
`Who was the challenger when guillaume brahimi was the iron chef?`

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

CREATE TABLE "results" (
  "episode" real,
  "airdate" text,
  "iron_chef" text,
  "challenger" text,
  "theme_ingredient" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the challenger when guillaume brahimi was the iron chef?`:
```sql
                SELECT "challenger" FROM "results" WHERE "iron_chef"='Guillaume Brahimi';
```
## Task
Generate a SQL query to answer the following question:
`Who was the iron chef when herb Faust was the challenger?`

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

CREATE TABLE "results" (
  "episode" real,
  "airdate" text,
  "iron_chef" text,
  "challenger" text,
  "theme_ingredient" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the iron chef when herb Faust was the challenger?`:
```sql
                SELECT "iron_chef" FROM "results" WHERE "challenger"='Herb Faust';
```
## Task
Generate a SQL query to answer the following question:
`What date did the episode air when guy grossi won?`

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

CREATE TABLE "results" (
  "episode" real,
  "airdate" text,
  "iron_chef" text,
  "challenger" text,
  "theme_ingredient" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode air when guy grossi won?`:
```sql
                SELECT "airdate" FROM "results" WHERE "winner"='Guy Grossi';
```
## Task
Generate a SQL query to answer the following question:
`In the 2010 revival, who played the character that was played by Morgan Albrecht in the New Zealand 2012 production?`

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

CREATE TABLE "characters" (
  "character" text,
  "original_cast_2009" text,
  "revival_cast_2010" text,
  "wales_cast_2012" text,
  "new_zealand_cast_2012" text,
  "australian_cast_2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the 2010 revival, who played the character that was played by Morgan Albrecht in the New Zealand 2012 production?`:
```sql
                SELECT "revival_cast_2010" FROM "characters" WHERE "new_zealand_cast_2012"='Morgan Albrecht';
```