cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Against has more than 11 wins, and a Geelong FL of st josephs?`

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

CREATE TABLE "2012_ladder" (
  "geelong_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Against has more than 11 wins, and a Geelong FL of st josephs?`:
```sql
                SELECT MIN("against") FROM "2012_ladder" WHERE "wins">11 AND "geelong_fl"='st josephs';
```
## Task
Generate a SQL query to answer the following question:
`What is the Attendance of the game with a Loss of Hiller (3–2)?`

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

CREATE TABLE "postseason" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text,
  "arena" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance of the game with a Loss of Hiller (3–2)?`:
```sql
                SELECT MAX("attendance") FROM "postseason" WHERE "loss"='hiller (3–2)';
```
## Task
Generate a SQL query to answer the following question:
`Who is the away team that tottenham hotspur played?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the away team that tottenham hotspur played?`:
```sql
                SELECT "away_team" FROM "fourth_round_proper" WHERE "home_team"='tottenham hotspur';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game with away team chelsea on 29 january 1983?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game with away team chelsea on 29 january 1983?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "date"='29 january 1983' AND "away_team"='chelsea';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game that home team torquay united played?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game that home team torquay united played?`:
```sql
                SELECT "date" FROM "fourth_round_proper" WHERE "home_team"='torquay united';
```
## Task
Generate a SQL query to answer the following question:
`Who is the team that played away team watford?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the team that played away team watford?`:
```sql
                SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='watford';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game when home team crystal palace played?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game when home team crystal palace played?`:
```sql
                SELECT "date" FROM "fourth_round_proper" WHERE "home_team"='crystal palace';
```
## Task
Generate a SQL query to answer the following question:
`What country is Retief Goosen from?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is Retief Goosen from?`:
```sql
                SELECT "country" FROM "second_round" WHERE "player"='retief goosen';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of high checkout with fewer than 13 legs won, a 180s lower than 2 and an LWAT of more than 1?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "lwat" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of high checkout with fewer than 13 legs won, a 180s lower than 2 and an LWAT of more than 1?`:
```sql
                SELECT COUNT("high_checkout") FROM "statistics" WHERE "legs_won"<13 AND "180s"<2 AND "lwat">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total 140+ with a high checkout of 74 and a 100+ higher than 17?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "lwat" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total 140+ with a high checkout of 74 and a 100+ higher than 17?`:
```sql
                SELECT SUM("140") FROM "statistics" WHERE "high_checkout"=74 AND "100">17;
```
## Task
Generate a SQL query to answer the following question:
`How many played are there with a 3-dart average of more than 90.8, an LWAT higher than 5 and fewer than 17 legs lost?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "lwat" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many played are there with a 3-dart average of more than 90.8, an LWAT higher than 5 and fewer than 17 legs lost?`:
```sql
                SELECT AVG("played") FROM "statistics" WHERE "3_dart_average">90.8 AND "lwat">5 AND "legs_lost"<17;
```
## Task
Generate a SQL query to answer the following question:
`What Player is in Place 1?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Player is in Place 1?`:
```sql
                SELECT "player" FROM "third_round" WHERE "place"='1';
```
## Task
Generate a SQL query to answer the following question:
`What is the Country of the Player in Place 1?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Country of the Player in Place 1?`:
```sql
                SELECT "country" FROM "third_round" WHERE "place"='1';
```
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player with a To par of –10 and a Score of 67-67-66=200?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Place of the Player with a To par of –10 and a Score of 67-67-66=200?`:
```sql
                SELECT "place" FROM "third_round" WHERE "to_par"='–10' AND "score"='67-67-66=200';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the total number of Rank that has the Points larger than 99, and the Club of barcelona?`

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

CREATE TABLE "most_points_in_a_la_liga_season_at_least" (
  "rank" real,
  "club" text,
  "season" text,
  "points" real,
  "apps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the total number of Rank that has the Points larger than 99, and the Club of barcelona?`:
```sql
                SELECT COUNT("rank") FROM "most_points_in_a_la_liga_season_at_least" WHERE "points">99 AND "club"='barcelona';
```
## Task
Generate a SQL query to answer the following question:
`How many people on average attended when Eastwood Town was the away team, and the tie number was less than 8?`

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

CREATE TABLE "replays" (
  "tie_no" real,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people on average attended when Eastwood Town was the away team, and the tie number was less than 8?`:
```sql
                SELECT AVG("attendance") FROM "replays" WHERE "tie_no"<8 AND "away_team"='eastwood town';
```
## Task
Generate a SQL query to answer the following question:
`The game with home team Crowborough Athletic, with an attendance less than 848 had what as the score?`

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

CREATE TABLE "replays" (
  "tie_no" real,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `The game with home team Crowborough Athletic, with an attendance less than 848 had what as the score?`:
```sql
                SELECT "score" FROM "replays" WHERE "attendance"<848 AND "home_team"='crowborough athletic';
```
## Task
Generate a SQL query to answer the following question:
`The game with Bashley as the home team had what maximum attendance?`

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

CREATE TABLE "replays" (
  "tie_no" real,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `The game with Bashley as the home team had what maximum attendance?`:
```sql
                SELECT MAX("attendance") FROM "replays" WHERE "home_team"='bashley';
```
## Task
Generate a SQL query to answer the following question:
`What is the tie number total when Harlow Town is the away team?`

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

CREATE TABLE "replays" (
  "tie_no" real,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tie number total when Harlow Town is the away team?`:
```sql
                SELECT COUNT("tie_no") FROM "replays" WHERE "away_team"='harlow town';
```
## Task
Generate a SQL query to answer the following question:
`Which artist has a draw greater than 15?`

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

CREATE TABLE "results" (
  "draw" real,
  "language" text,
  "artist" text,
  "song" text,
  "english_translation" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which artist has a draw greater than 15?`:
```sql
                SELECT "artist" FROM "results" WHERE "draw">15;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest place a song by Jacques Raymond reached, with a draw over 14?`

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

CREATE TABLE "results" (
  "draw" real,
  "language" text,
  "artist" text,
  "song" text,
  "english_translation" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest place a song by Jacques Raymond reached, with a draw over 14?`:
```sql
                SELECT MAX("place") FROM "results" WHERE "artist"='jacques raymond' AND "draw">14;
```
## Task
Generate a SQL query to answer the following question:
`What is the Craft used at Coniston Water?`

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

CREATE TABLE "donald_campbell_s_unlimited_world_water_" (
  "speed" text,
  "craft" text,
  "pilot" text,
  "location" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Craft used at Coniston Water?`:
```sql
                SELECT "craft" FROM "donald_campbell_s_unlimited_world_water_" WHERE "location"='coniston water';
```
## Task
Generate a SQL query to answer the following question:
`What is the Speed at Lake Mead?`

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

CREATE TABLE "donald_campbell_s_unlimited_world_water_" (
  "speed" text,
  "craft" text,
  "pilot" text,
  "location" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Speed at Lake Mead?`:
```sql
                SELECT "speed" FROM "donald_campbell_s_unlimited_world_water_" WHERE "location"='lake mead';
```
## Task
Generate a SQL query to answer the following question:
`Which Goals have a Ratio of 0.29?`

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

CREATE TABLE "top_ten_goalscorers_still_active_primera" (
  "rank" real,
  "name" text,
  "years" text,
  "current_club" text,
  "goals" real,
  "apps" real,
  "ratio" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Goals have a Ratio of 0.29?`:
```sql
                SELECT "goals" FROM "top_ten_goalscorers_still_active_primera" WHERE "ratio"=0.29;
```
## Task
Generate a SQL query to answer the following question:
`Which Goals have a Current Club of real madrid, and a Ratio smaller than 1.08, and a Rank smaller than 5?`

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

CREATE TABLE "top_ten_goalscorers_still_active_primera" (
  "rank" real,
  "name" text,
  "years" text,
  "current_club" text,
  "goals" real,
  "apps" real,
  "ratio" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Goals have a Current Club of real madrid, and a Ratio smaller than 1.08, and a Rank smaller than 5?`:
```sql
                SELECT MAX("goals") FROM "top_ten_goalscorers_still_active_primera" WHERE "current_club"='real madrid' AND "ratio"<1.08 AND "rank"<5;
```
## Task
Generate a SQL query to answer the following question:
`Which Current Club has a Rank of 4?`

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

CREATE TABLE "top_ten_goalscorers_still_active_primera" (
  "rank" real,
  "name" text,
  "years" text,
  "current_club" text,
  "goals" real,
  "apps" real,
  "ratio" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Current Club has a Rank of 4?`:
```sql
                SELECT "current_club" FROM "top_ten_goalscorers_still_active_primera" WHERE "rank"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the second party that has a conservative first party in the 1834 election?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the second party that has a conservative first party in the 1834 election?`:
```sql
                SELECT "second_party" FROM "m_ps_1832_1885" WHERE "first_party"='conservative' AND "election"='1834';
```
## Task
Generate a SQL query to answer the following question:
`Who is the second member with first member Sir Rowland Hill, BT, and a conservative second party?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the second member with first member Sir Rowland Hill, BT, and a conservative second party?`:
```sql
                SELECT "second_member" FROM "m_ps_1832_1885" WHERE "first_member"='sir rowland hill, bt' AND "second_party"='conservative';
```
## Task
Generate a SQL query to answer the following question:
`What is the first party with second member Hon. Rowland Hill, in the 1857 election?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first party with second member Hon. Rowland Hill, in the 1857 election?`:
```sql
                SELECT "first_party" FROM "m_ps_1832_1885" WHERE "second_member"='hon. rowland hill' AND "election"='1857';
```
## Task
Generate a SQL query to answer the following question:
`Who is the second member that is a second party Whig in the 1834 election?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the second member that is a second party Whig in the 1834 election?`:
```sql
                SELECT "second_member" FROM "m_ps_1832_1885" WHERE "second_party"='whig' AND "election"='1834';
```
## Task
Generate a SQL query to answer the following question:
`What is the second party that has a conservative first party and second member John Cotes?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the second party that has a conservative first party and second member John Cotes?`:
```sql
                SELECT "second_party" FROM "m_ps_1832_1885" WHERE "first_party"='conservative' AND "second_member"='john cotes';
```
## Task
Generate a SQL query to answer the following question:
`What place is the player with a score of 69-68=137?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place is the player with a score of 69-68=137?`:
```sql
                SELECT "place" FROM "second_round" WHERE "score"='69-68=137';
```
## Task
Generate a SQL query to answer the following question:
`What's the score for the t10 player from zimbabwe?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the score for the t10 player from zimbabwe?`:
```sql
                SELECT "score" FROM "second_round" WHERE "place"='t10' AND "country"='zimbabwe';
```
## Task
Generate a SQL query to answer the following question:
`What's the score of the t10 player from australia?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the score of the t10 player from australia?`:
```sql
                SELECT "score" FROM "second_round" WHERE "place"='t10' AND "country"='australia';
```
## Task
Generate a SQL query to answer the following question:
`What's bob tway's score?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's bob tway's score?`:
```sql
                SELECT "score" FROM "second_round" WHERE "player"='bob tway';
```
## Task
Generate a SQL query to answer the following question:
`What Player has a Place of t10, a Country of united states, and a Score of 67-73=140?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Player has a Place of t10, a Country of united states, and a Score of 67-73=140?`:
```sql
                SELECT "player" FROM "second_round" WHERE "place"='t10' AND "country"='united states' AND "score"='67-73=140';
```
## Task
Generate a SQL query to answer the following question:
`What Place has a Player of seve ballesteros?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Place has a Player of seve ballesteros?`:
```sql
                SELECT "place" FROM "second_round" WHERE "player"='seve ballesteros';
```
## Task
Generate a SQL query to answer the following question:
`What Country has a Player of nick faldo?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Country has a Player of nick faldo?`:
```sql
                SELECT "country" FROM "second_round" WHERE "player"='nick faldo';
```
## Task
Generate a SQL query to answer the following question:
`What To par has a Place of t10, and a Score of 67-73=140?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What To par has a Place of t10, and a Score of 67-73=140?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "place"='t10' AND "score"='67-73=140';
```
## Task
Generate a SQL query to answer the following question:
`What Score has a Place of t6, a Country of united states, and a Player of fred couples?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Score has a Place of t6, a Country of united states, and a Player of fred couples?`:
```sql
                SELECT "score" FROM "second_round" WHERE "place"='t6' AND "country"='united states' AND "player"='fred couples';
```
## Task
Generate a SQL query to answer the following question:
`What To par has a Score of 68-66=134?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What To par has a Score of 68-66=134?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "score"='68-66=134';
```
## Task
Generate a SQL query to answer the following question:
`Name the  Provider that has a pay in 2006–, and a Transmission of iptv and digital terrestrial?`

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

CREATE TABLE "current_providers" (
  "provider" text,
  "years" text,
  "free_or_pay" text,
  "transmission" text,
  "on_demand" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the  Provider that has a pay in 2006–, and a Transmission of iptv and digital terrestrial?`:
```sql
                SELECT "provider" FROM "current_providers" WHERE "free_or_pay"='pay' AND "years"='2006–' AND "transmission"='iptv and digital terrestrial';
```
## Task
Generate a SQL query to answer the following question:
`Name the Years which have Transmission of digital satellite, an On demand of no, and a Free or pay of free + ppv?`

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

CREATE TABLE "current_providers" (
  "provider" text,
  "years" text,
  "free_or_pay" text,
  "transmission" text,
  "on_demand" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Years which have Transmission of digital satellite, an On demand of no, and a Free or pay of free + ppv?`:
```sql
                SELECT "years" FROM "current_providers" WHERE "transmission"='digital satellite' AND "on_demand"='no' AND "free_or_pay"='free + ppv';
```
## Task
Generate a SQL query to answer the following question:
`What kind of Free or pay has Years of 2006– and a Provider of bt tv (formerly bt vision)?`

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

CREATE TABLE "current_providers" (
  "provider" text,
  "years" text,
  "free_or_pay" text,
  "transmission" text,
  "on_demand" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Free or pay has Years of 2006– and a Provider of bt tv (formerly bt vision)?`:
```sql
                SELECT "free_or_pay" FROM "current_providers" WHERE "years"='2006–' AND "provider"='bt tv (formerly bt vision)';
```
## Task
Generate a SQL query to answer the following question:
`Name the Years that have a  free + pay?`

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

CREATE TABLE "current_providers" (
  "provider" text,
  "years" text,
  "free_or_pay" text,
  "transmission" text,
  "on_demand" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Years that have a  free + pay?`:
```sql
                SELECT "years" FROM "current_providers" WHERE "free_or_pay"='free + pay';
```
## Task
Generate a SQL query to answer the following question:
`Which On demandhas a Free or pay of free and a Provider of freesat?`

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

CREATE TABLE "current_providers" (
  "provider" text,
  "years" text,
  "free_or_pay" text,
  "transmission" text,
  "on_demand" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which On demandhas a Free or pay of free and a Provider of freesat?`:
```sql
                SELECT "on_demand" FROM "current_providers" WHERE "free_or_pay"='free' AND "provider"='freesat';
```
## Task
Generate a SQL query to answer the following question:
`Which On demand has a pay and a Provider of virgin media (formerly ntl:telewest)?`

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

CREATE TABLE "current_providers" (
  "provider" text,
  "years" text,
  "free_or_pay" text,
  "transmission" text,
  "on_demand" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which On demand has a pay and a Provider of virgin media (formerly ntl:telewest)?`:
```sql
                SELECT "on_demand" FROM "current_providers" WHERE "free_or_pay"='pay' AND "provider"='virgin media (formerly ntl:telewest)';
```
## Task
Generate a SQL query to answer the following question:
`What is the region for tv uskana?`

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

CREATE TABLE "regional_free_to_air_dvb_t_television_ch" (
  "name" text,
  "region" text,
  "programming" text,
  "type" text,
  "encryption" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the region for tv uskana?`:
```sql
                SELECT "region" FROM "regional_free_to_air_dvb_t_television_ch" WHERE "name"='tv uskana';
```
## Task
Generate a SQL query to answer the following question:
`What is the region for tv vtv?`

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

CREATE TABLE "regional_free_to_air_dvb_t_television_ch" (
  "name" text,
  "region" text,
  "programming" text,
  "type" text,
  "encryption" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the region for tv vtv?`:
```sql
                SELECT "region" FROM "regional_free_to_air_dvb_t_television_ch" WHERE "name"='tv vtv';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Week with the Opponent Buffalo Bills?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Week with the Opponent Buffalo Bills?`:
```sql
                SELECT MAX("week") FROM "regular_season" WHERE "opponent"='buffalo bills';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has an Attendance greater than 14,431 during Week 3 at Bears Stadium Game site?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has an Attendance greater than 14,431 during Week 3 at Bears Stadium Game site?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "attendance">'14,431' AND "game_site"='bears stadium' AND "week"=3;
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance is larger than 1,000, with a Competition of world cup, and a Venue of dublin?`

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

CREATE TABLE "2000s" (
  "date" text,
  "result" text,
  "competition" text,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance is larger than 1,000, with a Competition of world cup, and a Venue of dublin?`:
```sql
                SELECT "date" FROM "2000s" WHERE "attendance">'1,000' AND "competition"='world cup' AND "venue"='dublin';
```
## Task
Generate a SQL query to answer the following question:
`Which Venue that has an Attendance larger than 1,000, and a Result of scotland 12-20 samoa?`

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

CREATE TABLE "2000s" (
  "date" text,
  "result" text,
  "competition" text,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Venue that has an Attendance larger than 1,000, and a Result of scotland 12-20 samoa?`:
```sql
                SELECT "venue" FROM "2000s" WHERE "attendance">'1,000' AND "result"='scotland 12-20 samoa';
```
## Task
Generate a SQL query to answer the following question:
`Which Competition has a Result of france 46-16 scotland?`

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

CREATE TABLE "2000s" (
  "date" text,
  "result" text,
  "competition" text,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Competition has a Result of france 46-16 scotland?`:
```sql
                SELECT "competition" FROM "2000s" WHERE "result"='france 46-16 scotland';
```
## Task
Generate a SQL query to answer the following question:
`Which Percentage has a District larger than 2, and a Party of independent?`

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

CREATE TABLE "results" (
  "district" real,
  "seat" text,
  "candidate" text,
  "party" text,
  "vote" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Percentage has a District larger than 2, and a Party of independent?`:
```sql
                SELECT "percentage" FROM "results" WHERE "district">2 AND "party"='independent';
```
## Task
Generate a SQL query to answer the following question:
`How many votes have a Seat of house A, and a Percentage of 75.44%, and a District smaller than 11?`

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

CREATE TABLE "results" (
  "district" real,
  "seat" text,
  "candidate" text,
  "party" text,
  "vote" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes have a Seat of house A, and a Percentage of 75.44%, and a District smaller than 11?`:
```sql
                SELECT COUNT("vote") FROM "results" WHERE "seat"='house a' AND "percentage"='75.44%' AND "district"<11;
```
## Task
Generate a SQL query to answer the following question:
`What nation has more than 1 bronze and less than 3 silver?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What nation has more than 1 bronze and less than 3 silver?`:
```sql
                SELECT "nation" FROM "medal_table" WHERE "bronze">1 AND "silver"<3;
```
## Task
Generate a SQL query to answer the following question:
`What's the highest number of silver for 9 bronze and less than 27 total?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest number of silver for 9 bronze and less than 27 total?`:
```sql
                SELECT MAX("silver") FROM "medal_table" WHERE "bronze"=9 AND "total"<27;
```
## Task
Generate a SQL query to answer the following question:
`What is the Market Share that has Assets of 25 Million and a rank of 23?`

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

CREATE TABLE "tier_i_financial_institutions" (
  "rank" text,
  "bank" text,
  "assets_usd_millions" real,
  "market_share" text,
  "number_of_branches" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Market Share that has Assets of 25 Million and a rank of 23?`:
```sql
                SELECT "market_share" FROM "tier_i_financial_institutions" WHERE "assets_usd_millions"=25 AND "rank"='23';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Assets (USD) Millions from Equity Bank and less than 44 branches?`

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

CREATE TABLE "tier_i_financial_institutions" (
  "rank" text,
  "bank" text,
  "assets_usd_millions" real,
  "market_share" text,
  "number_of_branches" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Assets (USD) Millions from Equity Bank and less than 44 branches?`:
```sql
                SELECT MAX("assets_usd_millions") FROM "tier_i_financial_institutions" WHERE "bank"='equity bank' AND "number_of_branches"<44;
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Attendance is "349"?`

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

CREATE TABLE "replays" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Attendance is "349"?`:
```sql
                SELECT "score" FROM "replays" WHERE "attendance"='349';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Away Team is "Newcastle Benfield"?`

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

CREATE TABLE "replays" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Away Team is "Newcastle Benfield"?`:
```sql
                SELECT "score" FROM "replays" WHERE "away_team"='newcastle benfield';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Tie No is "30"?`

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

CREATE TABLE "replays" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Tie No is "30"?`:
```sql
                SELECT "score" FROM "replays" WHERE "tie_no"='30';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Tie No is "109"?`

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

CREATE TABLE "replays" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Tie No is "109"?`:
```sql
                SELECT "score" FROM "replays" WHERE "tie_no"='109';
```
## Task
Generate a SQL query to answer the following question:
`What is Away Team, when Tie No is "37"?`

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

CREATE TABLE "replays" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Away Team, when Tie No is "37"?`:
```sql
                SELECT "away_team" FROM "replays" WHERE "tie_no"='37';
```
## Task
Generate a SQL query to answer the following question:
`What is the Australian for the American ɑ?`

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

CREATE TABLE "vowel_plus_consonant_cluster" (
  "letter" text,
  "american" text,
  "british" text,
  "australian" text,
  "examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Australian for the American ɑ?`:
```sql
                SELECT "australian" FROM "vowel_plus_consonant_cluster" WHERE "american"='ɑ';
```
## Task
Generate a SQL query to answer the following question:
`What is the Australian equivalent to i /ɪ/?`

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

CREATE TABLE "vowel_plus_consonant_cluster" (
  "letter" text,
  "american" text,
  "british" text,
  "australian" text,
  "examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Australian equivalent to i /ɪ/?`:
```sql
                SELECT "australian" FROM "vowel_plus_consonant_cluster" WHERE "letter"='i /ɪ/';
```
## Task
Generate a SQL query to answer the following question:
`What is the British for the Australian ɔ?`

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

CREATE TABLE "vowel_plus_consonant_cluster" (
  "letter" text,
  "american" text,
  "british" text,
  "australian" text,
  "examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the British for the Australian ɔ?`:
```sql
                SELECT "british" FROM "vowel_plus_consonant_cluster" WHERE "australian"='ɔ';
```
## Task
Generate a SQL query to answer the following question:
`What is the American version of the British ə?`

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

CREATE TABLE "vowel_plus_consonant_cluster" (
  "letter" text,
  "american" text,
  "british" text,
  "australian" text,
  "examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the American version of the British ə?`:
```sql
                SELECT "american" FROM "vowel_plus_consonant_cluster" WHERE "british"='ə';
```
## Task
Generate a SQL query to answer the following question:
`What are the examples for the Australian æ?`

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

CREATE TABLE "vowel_plus_consonant_cluster" (
  "letter" text,
  "american" text,
  "british" text,
  "australian" text,
  "examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the examples for the Australian æ?`:
```sql
                SELECT "examples" FROM "vowel_plus_consonant_cluster" WHERE "australian"='æ';
```
## Task
Generate a SQL query to answer the following question:
`What is the letter for the Brisish ɒ?`

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

CREATE TABLE "vowel_plus_consonant_cluster" (
  "letter" text,
  "american" text,
  "british" text,
  "australian" text,
  "examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the letter for the Brisish ɒ?`:
```sql
                SELECT "letter" FROM "vowel_plus_consonant_cluster" WHERE "british"='ɒ';
```
## Task
Generate a SQL query to answer the following question:
`What's the 7am show that has local programs at 7:30am and 6:30pm?`

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

CREATE TABLE "spring_2001" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "10_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "4_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 7am show that has local programs at 7:30am and 6:30pm?`:
```sql
                SELECT "7_00_am" FROM "spring_2001" WHERE "6_30_pm"='local programs' AND "7_30_am"='local programs';
```
## Task
Generate a SQL query to answer the following question:
`What is the 3pm show that has Men In Black (mon-thu) Pokémon (fri) at 7am?`

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

CREATE TABLE "spring_2001" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "10_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "4_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 3pm show that has Men In Black (mon-thu) Pokémon (fri) at 7am?`:
```sql
                SELECT "3_00_pm" FROM "spring_2001" WHERE "7_00_am"='men in black (mon-thu) pokémon (fri)';
```
## Task
Generate a SQL query to answer the following question:
`What is the 7am show that has All My Children at 1:30pm?`

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

CREATE TABLE "spring_2001" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "10_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "4_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 7am show that has All My Children at 1:30pm?`:
```sql
                SELECT "7_00_am" FROM "spring_2001" WHERE "1_30_pm"='all my children';
```
## Task
Generate a SQL query to answer the following question:
`What is the 8am show that has Passions showing at 2pm?`

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

CREATE TABLE "spring_2001" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "10_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "4_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 8am show that has Passions showing at 2pm?`:
```sql
                SELECT "8_00_am" FROM "spring_2001" WHERE "2_00_pm"='passions';
```
## Task
Generate a SQL query to answer the following question:
`What is the 6:30pm show that has The Early Show at 8am and Local Programs at 9am?`

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

CREATE TABLE "spring_2001" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "10_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "4_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 6:30pm show that has The Early Show at 8am and Local Programs at 9am?`:
```sql
                SELECT "6_30_pm" FROM "spring_2001" WHERE "9_00_am"='local programs' AND "8_00_am"='the early show';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1pm show that has Local Programs at 2pm and Digimon: Digital Monsters at 4:30pm?`

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

CREATE TABLE "spring_2001" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "10_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "4_00_pm" text,
  "4_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1pm show that has Local Programs at 2pm and Digimon: Digital Monsters at 4:30pm?`:
```sql
                SELECT "1_00_pm" FROM "spring_2001" WHERE "2_00_pm"='local programs' AND "4_30_pm"='digimon: digital monsters';
```