cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who is the outgoing manager who was replaced by jürgen klopp?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the outgoing manager who was replaced by jürgen klopp?`:
```sql
                SELECT "outgoing_manager" FROM "managerial_changes" WHERE "replaced_by"='jürgen klopp';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of appointment of the manager who was replaced by markus babbel?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of appointment of the manager who was replaced by markus babbel?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "replaced_by"='markus babbel';
```
## Task
Generate a SQL query to answer the following question:
`What was the manner of depature of the manager with a date of appointment on 23 November 2008?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the manner of depature of the manager with a date of appointment on 23 November 2008?`:
```sql
                SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_appointment"='23 november 2008';
```
## Task
Generate a SQL query to answer the following question:
`Who replaced the manager of team arminia bielefeld?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who replaced the manager of team arminia bielefeld?`:
```sql
                SELECT "replaced_by" FROM "managerial_changes" WHERE "team"='arminia bielefeld';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of vacancy of team fc bayern munich, which had a date of appointment on 27 April 2009?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of vacancy of team fc bayern munich, which had a date of appointment on 27 April 2009?`:
```sql
                SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "team"='fc bayern munich' AND "date_of_appointment"='27 april 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of appointment of outgoing manager fred rutten, who had a sacked manner of departure?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of appointment of outgoing manager fred rutten, who had a sacked manner of departure?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "manner_of_departure"='sacked' AND "outgoing_manager"='fred rutten';
```
## Task
Generate a SQL query to answer the following question:
`What was the length when James Swallow had a release longer than 2.1?`

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

CREATE TABLE "external_links" (
  "title" text,
  "series" text,
  "release" real,
  "featuring" text,
  "writer" text,
  "director" text,
  "length" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the length when James Swallow had a release longer than 2.1?`:
```sql
                SELECT "length" FROM "external_links" WHERE "writer"='james swallow' AND "release">2.1;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote Infiltration?`

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

CREATE TABLE "external_links" (
  "title" text,
  "series" text,
  "release" real,
  "featuring" text,
  "writer" text,
  "director" text,
  "length" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote Infiltration?`:
```sql
                SELECT "writer" FROM "external_links" WHERE "title"='infiltration';
```
## Task
Generate a SQL query to answer the following question:
`What was the earliest release for Pathogen directed by Sharon Gosling?`

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

CREATE TABLE "external_links" (
  "title" text,
  "series" text,
  "release" real,
  "featuring" text,
  "writer" text,
  "director" text,
  "length" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest release for Pathogen directed by Sharon Gosling?`:
```sql
                SELECT MIN("release") FROM "external_links" WHERE "director"='sharon gosling' AND "title"='pathogen';
```
## Task
Generate a SQL query to answer the following question:
`What was the length of release 3.6?`

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

CREATE TABLE "external_links" (
  "title" text,
  "series" text,
  "release" real,
  "featuring" text,
  "writer" text,
  "director" text,
  "length" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the length of release 3.6?`:
```sql
                SELECT "length" FROM "external_links" WHERE "release"=3.6;
```
## Task
Generate a SQL query to answer the following question:
`What day was the score for tournament of alcobaça 6–3, 2–6, 7–5?`

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

CREATE TABLE "singles_12" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was the score for tournament of alcobaça 6–3, 2–6, 7–5?`:
```sql
                SELECT "date" FROM "singles_12" WHERE "tournament"='alcobaça' AND "score"='6–3, 2–6, 7–5';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for alcobaça when the opponent was in the final of xinyun han?`

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

CREATE TABLE "singles_12" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for alcobaça when the opponent was in the final of xinyun han?`:
```sql
                SELECT "score" FROM "singles_12" WHERE "tournament"='alcobaça' AND "opponent_in_the_final"='xinyun han';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the opponent was irena pavlovic and the surface was hard?`

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

CREATE TABLE "singles_12" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the opponent was irena pavlovic and the surface was hard?`:
```sql
                SELECT "score" FROM "singles_12" WHERE "surface"='hard' AND "opponent_in_the_final"='irena pavlovic';
```
## Task
Generate a SQL query to answer the following question:
`What was the opponent in the final when the score was 6–3, 2–6, 7–5?`

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

CREATE TABLE "singles_12" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the opponent in the final when the score was 6–3, 2–6, 7–5?`:
```sql
                SELECT "opponent_in_the_final" FROM "singles_12" WHERE "score"='6–3, 2–6, 7–5';
```
## Task
Generate a SQL query to answer the following question:
`What day was the surface clay and the score 6–1, 6–4?`

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

CREATE TABLE "singles_12" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was the surface clay and the score 6–1, 6–4?`:
```sql
                SELECT "date" FROM "singles_12" WHERE "surface"='clay' AND "score"='6–1, 6–4';
```
## Task
Generate a SQL query to answer the following question:
`What is the Phoenician letter for the Hangul of ㄹ?`

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

CREATE TABLE "cognates_of_core_hangul_letters" (
  "hangul" text,
  "phagspa" text,
  "tibetan" text,
  "phoenician" text,
  "greek" text,
  "latin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Phoenician letter for the Hangul of ㄹ?`:
```sql
                SELECT "phoenician" FROM "cognates_of_core_hangul_letters" WHERE "hangul"='ㄹ';
```
## Task
Generate a SQL query to answer the following question:
`What is the Latin letter for the Tibetan of ས?`

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

CREATE TABLE "cognates_of_core_hangul_letters" (
  "hangul" text,
  "phagspa" text,
  "tibetan" text,
  "phoenician" text,
  "greek" text,
  "latin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Latin letter for the Tibetan of ས?`:
```sql
                SELECT "latin" FROM "cognates_of_core_hangul_letters" WHERE "tibetan"='ས';
```
## Task
Generate a SQL query to answer the following question:
`to the Latin of f, y, u/v/w?`

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

CREATE TABLE "cognates_of_core_hangul_letters" (
  "hangul" text,
  "phagspa" text,
  "tibetan" text,
  "phoenician" text,
  "greek" text,
  "latin" text
);
### SQL
Given the database schema, here is the SQL query that answers `to the Latin of f, y, u/v/w?`:
```sql
                SELECT "greek" FROM "cognates_of_core_hangul_letters" WHERE "latin"='f, y, u/v/w';
```
## Task
Generate a SQL query to answer the following question:
`What is the Hangul equivalent of the Greek ϝ, υ?`

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

CREATE TABLE "cognates_of_core_hangul_letters" (
  "hangul" text,
  "phagspa" text,
  "tibetan" text,
  "phoenician" text,
  "greek" text,
  "latin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Hangul equivalent of the Greek ϝ, υ?`:
```sql
                SELECT "hangul" FROM "cognates_of_core_hangul_letters" WHERE "greek"='ϝ, υ';
```
## Task
Generate a SQL query to answer the following question:
`What is the Latin equivalent for the Phagspa of ꡙ?`

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

CREATE TABLE "cognates_of_core_hangul_letters" (
  "hangul" text,
  "phagspa" text,
  "tibetan" text,
  "phoenician" text,
  "greek" text,
  "latin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Latin equivalent for the Phagspa of ꡙ?`:
```sql
                SELECT "latin" FROM "cognates_of_core_hangul_letters" WHERE "phagspa"='ꡙ';
```
## Task
Generate a SQL query to answer the following question:
`What was the surface played on for the match than began before 1897?`

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

CREATE TABLE "tournaments" (
  "tournament" text,
  "country" text,
  "location" text,
  "current_venue" text,
  "began" real,
  "court_surface" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface played on for the match than began before 1897?`:
```sql
                SELECT "court_surface" FROM "tournaments" WHERE "began"<1897;
```
## Task
Generate a SQL query to answer the following question:
`For the Indian Wells Masters tournament, what was the country?`

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

CREATE TABLE "tournaments" (
  "tournament" text,
  "country" text,
  "location" text,
  "current_venue" text,
  "began" real,
  "court_surface" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the Indian Wells Masters tournament, what was the country?`:
```sql
                SELECT "country" FROM "tournaments" WHERE "tournament"='indian wells masters';
```
## Task
Generate a SQL query to answer the following question:
`Which location was in China, and played on a hard court?`

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

CREATE TABLE "tournaments" (
  "tournament" text,
  "country" text,
  "location" text,
  "current_venue" text,
  "began" real,
  "court_surface" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location was in China, and played on a hard court?`:
```sql
                SELECT "location" FROM "tournaments" WHERE "court_surface"='hard' AND "country"='china';
```
## Task
Generate a SQL query to answer the following question:
`What country was the Paris Masters tournament played in?`

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

CREATE TABLE "tournaments" (
  "tournament" text,
  "country" text,
  "location" text,
  "current_venue" text,
  "began" real,
  "court_surface" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country was the Paris Masters tournament played in?`:
```sql
                SELECT "country" FROM "tournaments" WHERE "tournament"='paris masters';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when the H/A was H and the scorer was Ferguson?`

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

CREATE TABLE "pre_season_and_friendlies" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when the H/A was H and the scorer was Ferguson?`:
```sql
                SELECT "opponents" FROM "pre_season_and_friendlies" WHERE "h_a"='h' AND "scorers"='ferguson';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on 11 August 1991 when the H/A was H?`

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

CREATE TABLE "pre_season_and_friendlies" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on 11 August 1991 when the H/A was H?`:
```sql
                SELECT "opponents" FROM "pre_season_and_friendlies" WHERE "h_a"='h' AND "date"='11 august 1991';
```
## Task
Generate a SQL query to answer the following question:
`What was the H/A when the scorer was Hughes?`

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

CREATE TABLE "pre_season_and_friendlies" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the H/A when the scorer was Hughes?`:
```sql
                SELECT "h_a" FROM "pre_season_and_friendlies" WHERE "scorers"='hughes';
```
## Task
Generate a SQL query to answer the following question:
`What was the film that grossed $26,010,864 ranked?`

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

CREATE TABLE "top_grossing_films_u_s" (
  "rank" real,
  "title" text,
  "studio" text,
  "director_s" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the film that grossed $26,010,864 ranked?`:
```sql
                SELECT MIN("rank") FROM "top_grossing_films_u_s" WHERE "gross"='$26,010,864';
```
## Task
Generate a SQL query to answer the following question:
`How much did Universal Studio's film Xanadu gross?`

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

CREATE TABLE "top_grossing_films_u_s" (
  "rank" real,
  "title" text,
  "studio" text,
  "director_s" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much did Universal Studio's film Xanadu gross?`:
```sql
                SELECT "gross" FROM "top_grossing_films_u_s" WHERE "studio"='universal' AND "title"='xanadu';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of Bronco Billy?`

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

CREATE TABLE "top_grossing_films_u_s" (
  "rank" real,
  "title" text,
  "studio" text,
  "director_s" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of Bronco Billy?`:
```sql
                SELECT AVG("rank") FROM "top_grossing_films_u_s" WHERE "title"='bronco billy';
```
## Task
Generate a SQL query to answer the following question:
`Name the lowest Founded with the Name cougars?`

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

CREATE TABLE "central_conference" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lowest Founded with the Name cougars?`:
```sql
                SELECT MIN("founded") FROM "central_conference" WHERE "nickname"='cougars';
```
## Task
Generate a SQL query to answer the following question:
`Which Affiliation has a Nickname of cougars?`

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

CREATE TABLE "central_conference" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Affiliation has a Nickname of cougars?`:
```sql
                SELECT "affiliation" FROM "central_conference" WHERE "nickname"='cougars';
```
## Task
Generate a SQL query to answer the following question:
`Name the Founded which has a Affiliation of private/methodist?`

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

CREATE TABLE "central_conference" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Founded which has a Affiliation of private/methodist?`:
```sql
                SELECT MAX("founded") FROM "central_conference" WHERE "affiliation"='private/methodist';
```
## Task
Generate a SQL query to answer the following question:
`What is Label, when Date is 1987?`

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

CREATE TABLE "release_history_and_variations" (
  "date" text,
  "region" text,
  "label" text,
  "catalogue" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Label, when Date is 1987?`:
```sql
                SELECT "label" FROM "release_history_and_variations" WHERE "date"='1987';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Format is Vinyl, and when Label is Mercury?`

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

CREATE TABLE "release_history_and_variations" (
  "date" text,
  "region" text,
  "label" text,
  "catalogue" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Format is Vinyl, and when Label is Mercury?`:
```sql
                SELECT "date" FROM "release_history_and_variations" WHERE "format"='vinyl' AND "label"='mercury';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Region is Yugoslavia?`

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

CREATE TABLE "release_history_and_variations" (
  "date" text,
  "region" text,
  "label" text,
  "catalogue" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Region is Yugoslavia?`:
```sql
                SELECT "date" FROM "release_history_and_variations" WHERE "region"='yugoslavia';
```
## Task
Generate a SQL query to answer the following question:
`What is Format, when Label is Bronze, when Date is 1982, and when Catalogue is 204 636?`

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

CREATE TABLE "release_history_and_variations" (
  "date" text,
  "region" text,
  "label" text,
  "catalogue" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Format, when Label is Bronze, when Date is 1982, and when Catalogue is 204 636?`:
```sql
                SELECT "format" FROM "release_history_and_variations" WHERE "label"='bronze' AND "date"='1982' AND "catalogue"='204 636';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Label is Jugoton?`

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

CREATE TABLE "release_history_and_variations" (
  "date" text,
  "region" text,
  "label" text,
  "catalogue" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Label is Jugoton?`:
```sql
                SELECT "date" FROM "release_history_and_variations" WHERE "label"='jugoton';
```
## Task
Generate a SQL query to answer the following question:
`What is Premier Date, when Cycle is less than 2?`

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

CREATE TABLE "cycles" (
  "cycle" real,
  "premiere_date" text,
  "winner" text,
  "runner_up" text,
  "number_of_contestants" text,
  "international_destinations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Premier Date, when Cycle is less than 2?`:
```sql
                SELECT "premiere_date" FROM "cycles" WHERE "cycle"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Cycle, when Number Of Contestants is 11, and when International Destinations is Paris Gran Canaria?`

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

CREATE TABLE "cycles" (
  "cycle" real,
  "premiere_date" text,
  "winner" text,
  "runner_up" text,
  "number_of_contestants" text,
  "international_destinations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Cycle, when Number Of Contestants is 11, and when International Destinations is Paris Gran Canaria?`:
```sql
                SELECT MIN("cycle") FROM "cycles" WHERE "number_of_contestants"='11' AND "international_destinations"='paris gran canaria';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Cycle, when the Number of Constestants is 11, and when Premiere Date is September 3, 2012?`

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

CREATE TABLE "cycles" (
  "cycle" real,
  "premiere_date" text,
  "winner" text,
  "runner_up" text,
  "number_of_contestants" text,
  "international_destinations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Cycle, when the Number of Constestants is 11, and when Premiere Date is September 3, 2012?`:
```sql
                SELECT MAX("cycle") FROM "cycles" WHERE "number_of_contestants"='11' AND "premiere_date"='september 3, 2012';
```
## Task
Generate a SQL query to answer the following question:
`What is Number of Contestants, when Cycle is 4?`

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

CREATE TABLE "cycles" (
  "cycle" real,
  "premiere_date" text,
  "winner" text,
  "runner_up" text,
  "number_of_contestants" text,
  "international_destinations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Number of Contestants, when Cycle is 4?`:
```sql
                SELECT "number_of_contestants" FROM "cycles" WHERE "cycle"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is Number of Contestants, when International Destinations is London Lisbon?`

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

CREATE TABLE "cycles" (
  "cycle" real,
  "premiere_date" text,
  "winner" text,
  "runner_up" text,
  "number_of_contestants" text,
  "international_destinations" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Number of Contestants, when International Destinations is London Lisbon?`:
```sql
                SELECT "number_of_contestants" FROM "cycles" WHERE "international_destinations"='london lisbon';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest pick with fewer than 3 rounds and more than 4 overall?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest pick with fewer than 3 rounds and more than 4 overall?`:
```sql
                SELECT MIN("pick") FROM "washington_redskins_draft_history" WHERE "round"<3 AND "overall">4;
```
## Task
Generate a SQL query to answer the following question:
`Which round has more than 79 overall and a position of QB?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round has more than 79 overall and a position of QB?`:
```sql
                SELECT "round" FROM "washington_redskins_draft_history" WHERE "position"='qb' AND "overall">79;
```
## Task
Generate a SQL query to answer the following question:
`Which Notre Dame position has a pick lower than 5 and round 7?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Notre Dame position has a pick lower than 5 and round 7?`:
```sql
                SELECT "position" FROM "washington_redskins_draft_history" WHERE "pick"<5 AND "college"='notre dame' AND "round"=7;
```
## Task
Generate a SQL query to answer the following question:
`What was week 17's date?`

### 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 was week 17's date?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=17;
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Result of l 24–3?`

### 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 has a Result of l 24–3?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "result"='l 24–3';
```
## Task
Generate a SQL query to answer the following question:
`What was week 5's result?`

### 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 was week 5's result?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week"=5;
```
## Task
Generate a SQL query to answer the following question:
`What was the score for Groves High School when the high assist was Giovanni Riley (9)?`

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

CREATE TABLE "2009_season_schedule" (
  "date" text,
  "opponent" text,
  "home_away" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for Groves High School when the high assist was Giovanni Riley (9)?`:
```sql
                SELECT "score" FROM "2009_season_schedule" WHERE "location_attendance"='groves high school' AND "high_assists"='giovanni riley (9)';
```
## Task
Generate a SQL query to answer the following question:
`What was the high points for opponent Mid-Michigan destroyers on January 3?`

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

CREATE TABLE "2009_season_schedule" (
  "date" text,
  "opponent" text,
  "home_away" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the high points for opponent Mid-Michigan destroyers on January 3?`:
```sql
                SELECT "high_points" FROM "2009_season_schedule" WHERE "opponent"='mid-michigan destroyers' AND "date"='january 3';
```
## Task
Generate a SQL query to answer the following question:
`What opponent is at Richmond Academy?`

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

CREATE TABLE "2009_season_schedule" (
  "date" text,
  "opponent" text,
  "home_away" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent is at Richmond Academy?`:
```sql
                SELECT "opponent" FROM "2009_season_schedule" WHERE "location_attendance"='richmond academy';
```
## Task
Generate a SQL query to answer the following question:
`What were the high points on March 29?`

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

CREATE TABLE "2009_season_schedule" (
  "date" text,
  "opponent" text,
  "home_away" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the high points on March 29?`:
```sql
                SELECT "high_points" FROM "2009_season_schedule" WHERE "date"='march 29';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent scored 95-101?`

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

CREATE TABLE "2009_season_schedule" (
  "date" text,
  "opponent" text,
  "home_away" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent scored 95-101?`:
```sql
                SELECT "opponent" FROM "2009_season_schedule" WHERE "score"='95-101';
```
## Task
Generate a SQL query to answer the following question:
`Who was the (M) Best & Fairest when ray kaduck was president and richard keane was coach?`

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

CREATE TABLE "club_honour_board" (
  "year" real,
  "president" text,
  "m_finishing_position" text,
  "m_coach" text,
  "m_best_fairest" text,
  "m_leading_goalkicker" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the (M) Best & Fairest when ray kaduck was president and richard keane was coach?`:
```sql
                SELECT "m_best_fairest" FROM "club_honour_board" WHERE "president"='ray kaduck' AND "m_coach"='richard keane';
```
## Task
Generate a SQL query to answer the following question:
`What was the (M) Finishe position when ray kaduck was president and corey bowen was coach?`

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

CREATE TABLE "club_honour_board" (
  "year" real,
  "president" text,
  "m_finishing_position" text,
  "m_coach" text,
  "m_best_fairest" text,
  "m_leading_goalkicker" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the (M) Finishe position when ray kaduck was president and corey bowen was coach?`:
```sql
                SELECT "m_finishing_position" FROM "club_honour_board" WHERE "president"='ray kaduck' AND "m_coach"='corey bowen';
```
## Task
Generate a SQL query to answer the following question:
`Which Game has a Score of l 102–114 (ot)?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a Score of l 102–114 (ot)?`:
```sql
                SELECT AVG("game") FROM "game_log" WHERE "score"='l 102–114 (ot)';
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a Date of january 31?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Date of january 31?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='january 31';
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a Game larger than 34, and a Date of january 9?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Game larger than 34, and a Date of january 9?`:
```sql
                SELECT "record" FROM "game_log" WHERE "game">34 AND "date"='january 9';
```
## Task
Generate a SQL query to answer the following question:
`Which Location Attendance has a Record of 11–34?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location Attendance has a Record of 11–34?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "record"='11–34';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for the w 100-99 score?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the w 100-99 score?`:
```sql
                SELECT "record" FROM "game_log" WHERE "score"='w 100-99';
```
## Task
Generate a SQL query to answer the following question:
`What is the location for the 23-17 record?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location for the 23-17 record?`:
```sql
                SELECT "location" FROM "game_log" WHERE "record"='23-17';
```
## Task
Generate a SQL query to answer the following question:
`What is the location before game 44, and a 20-16 record?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location before game 44, and a 20-16 record?`:
```sql
                SELECT "location" FROM "game_log" WHERE "game"<44 AND "record"='20-16';
```
## Task
Generate a SQL query to answer the following question:
`What was the result for the match with entry Match Reports?`

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

CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
  "match" text,
  "date" text,
  "location" text,
  "lineup" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for the match with entry Match Reports?`:
```sql
                SELECT "result" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "match"='match reports';
```
## Task
Generate a SQL query to answer the following question:
`What was the location of the match that had a result of 3-3?`

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

CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
  "match" text,
  "date" text,
  "location" text,
  "lineup" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location of the match that had a result of 3-3?`:
```sql
                SELECT "location" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "result"='3-3';
```
## Task
Generate a SQL query to answer the following question:
`What was the lineup for match 12 that had a competition of Group Stage?`

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

CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
  "match" text,
  "date" text,
  "location" text,
  "lineup" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lineup for match 12 that had a competition of Group Stage?`:
```sql
                SELECT "lineup" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "competition"='group stage' AND "match"='12';
```
## Task
Generate a SQL query to answer the following question:
`What was the result for the match held in Boston?`

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

CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
  "match" text,
  "date" text,
  "location" text,
  "lineup" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for the match held in Boston?`:
```sql
                SELECT "result" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "location"='boston';
```
## Task
Generate a SQL query to answer the following question:
`How many total games were played against @ St. Louis Hawks this season?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total games were played against @ St. Louis Hawks this season?`:
```sql
                SELECT SUM("game") FROM "game_log" WHERE "opponent"='@ st. louis hawks';
```
## Task
Generate a SQL query to answer the following question:
`On what day was Game 48 played?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what day was Game 48 played?`:
```sql
                SELECT "date" FROM "game_log" WHERE "game"=48;
```
## Task
Generate a SQL query to answer the following question:
`What is the pick number later than round 1, for Reyshawn Terry?`

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

CREATE TABLE "team_players_drafted_into_the_nba" (
  "year" real,
  "round" real,
  "pick" real,
  "player" text,
  "nba_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick number later than round 1, for Reyshawn Terry?`:
```sql
                SELECT AVG("pick") FROM "team_players_drafted_into_the_nba" WHERE "round">1 AND "player"='reyshawn terry';
```
## Task
Generate a SQL query to answer the following question:
`What round was the player Ty Lawson with a pick earlier than 18?`

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

CREATE TABLE "team_players_drafted_into_the_nba" (
  "year" real,
  "round" real,
  "pick" real,
  "player" text,
  "nba_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was the player Ty Lawson with a pick earlier than 18?`:
```sql
                SELECT AVG("round") FROM "team_players_drafted_into_the_nba" WHERE "player"='ty lawson' AND "pick"<18;
```
## Task
Generate a SQL query to answer the following question:
`What is the pick number for Danny Green in a round less than 2?`

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

CREATE TABLE "team_players_drafted_into_the_nba" (
  "year" real,
  "round" real,
  "pick" real,
  "player" text,
  "nba_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick number for Danny Green in a round less than 2?`:
```sql
                SELECT COUNT("pick") FROM "team_players_drafted_into_the_nba" WHERE "player"='danny green' AND "round"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the pick number in a year earlier than 2009, with a round higher than 1?`

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

CREATE TABLE "team_players_drafted_into_the_nba" (
  "year" real,
  "round" real,
  "pick" real,
  "player" text,
  "nba_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick number in a year earlier than 2009, with a round higher than 1?`:
```sql
                SELECT COUNT("pick") FROM "team_players_drafted_into_the_nba" WHERE "year"<2009 AND "round">1;
```
## Task
Generate a SQL query to answer the following question:
`What are the notes for the Mandarin Chinese program on CTV earlier than 2013?`

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

CREATE TABLE "variety" (
  "year" real,
  "network" text,
  "title" text,
  "notes" text,
  "language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes for the Mandarin Chinese program on CTV earlier than 2013?`:
```sql
                SELECT "notes" FROM "variety" WHERE "year"<2013 AND "language"='mandarin chinese' AND "network"='ctv';
```
## Task
Generate a SQL query to answer the following question:
`What is the language for Strong Heart?`

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

CREATE TABLE "variety" (
  "year" real,
  "network" text,
  "title" text,
  "notes" text,
  "language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the language for Strong Heart?`:
```sql
                SELECT "language" FROM "variety" WHERE "title"='strong heart';
```
## Task
Generate a SQL query to answer the following question:
`What is the title for the Korean progran on KBS2?`

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

CREATE TABLE "variety" (
  "year" real,
  "network" text,
  "title" text,
  "notes" text,
  "language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title for the Korean progran on KBS2?`:
```sql
                SELECT "title" FROM "variety" WHERE "language"='korean' AND "network"='kbs2';
```
## Task
Generate a SQL query to answer the following question:
`What is the network that aired Star King prior to 2011?`

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

CREATE TABLE "variety" (
  "year" real,
  "network" text,
  "title" text,
  "notes" text,
  "language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the network that aired Star King prior to 2011?`:
```sql
                SELECT "network" FROM "variety" WHERE "year"<2011 AND "title"='star king';
```
## Task
Generate a SQL query to answer the following question:
`What are the notes for Happy Camp?`

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

CREATE TABLE "variety" (
  "year" real,
  "network" text,
  "title" text,
  "notes" text,
  "language" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes for Happy Camp?`:
```sql
                SELECT "notes" FROM "variety" WHERE "title"='happy camp';
```