cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Show has an Award of indian television academy awards?`

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

CREATE TABLE "awards" (
  "year" real,
  "award" text,
  "category" text,
  "show" text,
  "character" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Show has an Award of indian television academy awards?`:
```sql
                SELECT "show" FROM "awards" WHERE "award"='indian television academy awards';
```
## Task
Generate a SQL query to answer the following question:
`What award was won after 2008?`

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

CREATE TABLE "awards" (
  "year" real,
  "award" text,
  "category" text,
  "show" text,
  "character" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What award was won after 2008?`:
```sql
                SELECT "award" FROM "awards" WHERE "year">2008;
```
## Task
Generate a SQL query to answer the following question:
`On what Date did the massacre result with 21 Injured?`

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

CREATE TABLE "school_massacres" (
  "perpetrator" text,
  "date" text,
  "year" real,
  "location" text,
  "country" text,
  "killed" real,
  "injured" text,
  "additional_notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date did the massacre result with 21 Injured?`:
```sql
                SELECT "date" FROM "school_massacres" WHERE "injured"='21';
```
## Task
Generate a SQL query to answer the following question:
`What is City / State, when Winner is "Rohan Onslow", and when Circuit is "Oran Park Raceway"?`

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

CREATE TABLE "race_calendar" (
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is City / State, when Winner is "Rohan Onslow", and when Circuit is "Oran Park Raceway"?`:
```sql
                SELECT "city_state" FROM "race_calendar" WHERE "winner"='rohan onslow' AND "circuit"='oran park raceway';
```
## Task
Generate a SQL query to answer the following question:
`What is Winner, when City / State is "Mallala , South Australia", and when Team is "Elfin Sports Cars"?`

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

CREATE TABLE "race_calendar" (
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winner, when City / State is "Mallala , South Australia", and when Team is "Elfin Sports Cars"?`:
```sql
                SELECT "winner" FROM "race_calendar" WHERE "city_state"='mallala , south australia' AND "team"='elfin sports cars';
```
## Task
Generate a SQL query to answer the following question:
`What is Circuit, when Team is "R.J.MacArthur Onslow", and when City / State is "Sydney , New South Wales"?`

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

CREATE TABLE "race_calendar" (
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Circuit, when Team is "R.J.MacArthur Onslow", and when City / State is "Sydney , New South Wales"?`:
```sql
                SELECT "circuit" FROM "race_calendar" WHERE "team"='r.j.macarthur onslow' AND "city_state"='sydney , new south wales';
```
## Task
Generate a SQL query to answer the following question:
`What is Winner, when Team is "R.J.MacArthur Onslow", and when Circuit is "Oran Park Raceway"?`

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

CREATE TABLE "race_calendar" (
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winner, when Team is "R.J.MacArthur Onslow", and when Circuit is "Oran Park Raceway"?`:
```sql
                SELECT "winner" FROM "race_calendar" WHERE "team"='r.j.macarthur onslow' AND "circuit"='oran park raceway';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when City / State is "Mallala , South Australia", and when Team is "R.J.MacArthur Onslow"?`

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

CREATE TABLE "race_calendar" (
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when City / State is "Mallala , South Australia", and when Team is "R.J.MacArthur Onslow"?`:
```sql
                SELECT "date" FROM "race_calendar" WHERE "city_state"='mallala , south australia' AND "team"='r.j.macarthur onslow';
```
## Task
Generate a SQL query to answer the following question:
`What is Winner, when Date is "20 August"?`

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

CREATE TABLE "race_calendar" (
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winner, when Date is "20 August"?`:
```sql
                SELECT "winner" FROM "race_calendar" WHERE "date"='20 august';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of points with less than 49 points in 2008-09, and 46 points in 2006-07?`

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

CREATE TABLE "relegation" (
  "team" text,
  "2006_07_pts" text,
  "2007_08_pts" text,
  "2008_09_pts" real,
  "total_pts" real,
  "total_pld" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of points with less than 49 points in 2008-09, and 46 points in 2006-07?`:
```sql
                SELECT COUNT("total_pts") FROM "relegation" WHERE "2008_09_pts"<49 AND "2006_07_pts"='46';
```
## Task
Generate a SQL query to answer the following question:
`What is the total pld that has 36 points in 2007-08, and less than 55 points in 2008-09?`

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

CREATE TABLE "relegation" (
  "team" text,
  "2006_07_pts" text,
  "2007_08_pts" text,
  "2008_09_pts" real,
  "total_pts" real,
  "total_pld" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total pld that has 36 points in 2007-08, and less than 55 points in 2008-09?`:
```sql
                SELECT SUM("total_pld") FROM "relegation" WHERE "2007_08_pts"='36' AND "2008_09_pts"<55;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest total pld with 57 points in 2006-07, and more than 39 points in 2008-09`

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

CREATE TABLE "relegation" (
  "team" text,
  "2006_07_pts" text,
  "2007_08_pts" text,
  "2008_09_pts" real,
  "total_pts" real,
  "total_pld" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest total pld with 57 points in 2006-07, and more than 39 points in 2008-09`:
```sql
                SELECT MIN("total_pld") FROM "relegation" WHERE "2006_07_pts"='57' AND "2008_09_pts">39;
```
## Task
Generate a SQL query to answer the following question:
`What actor was nominated for best actress?`

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

CREATE TABLE "for_actors_in_woody_allen_films" (
  "year" real,
  "film" text,
  "result" text,
  "category" text,
  "actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What actor was nominated for best actress?`:
```sql
                SELECT "actor" FROM "for_actors_in_woody_allen_films" WHERE "result"='nominated' AND "category"='best actress';
```
## Task
Generate a SQL query to answer the following question:
`What year was Jennifer Tilly's Film of Bullets Over Broadway up in the best supporting actress category?`

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

CREATE TABLE "for_actors_in_woody_allen_films" (
  "year" real,
  "film" text,
  "result" text,
  "category" text,
  "actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Jennifer Tilly's Film of Bullets Over Broadway up in the best supporting actress category?`:
```sql
                SELECT "year" FROM "for_actors_in_woody_allen_films" WHERE "film"='bullets over broadway' AND "category"='best supporting actress' AND "actor"='jennifer tilly';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of Samantha Morton being up for best supporting actress in a year later than 1989?`

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

CREATE TABLE "for_actors_in_woody_allen_films" (
  "year" real,
  "film" text,
  "result" text,
  "category" text,
  "actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of Samantha Morton being up for best supporting actress in a year later than 1989?`:
```sql
                SELECT "result" FROM "for_actors_in_woody_allen_films" WHERE "year">1989 AND "category"='best supporting actress' AND "actor"='samantha morton';
```
## Task
Generate a SQL query to answer the following question:
`What film was Dianne Wiest in?`

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

CREATE TABLE "for_actors_in_woody_allen_films" (
  "year" real,
  "film" text,
  "result" text,
  "category" text,
  "actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What film was Dianne Wiest in?`:
```sql
                SELECT "film" FROM "for_actors_in_woody_allen_films" WHERE "actor"='dianne wiest';
```
## Task
Generate a SQL query to answer the following question:
`Which class has fewer than 10 and number(s) names?`

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

CREATE TABLE "tank_locomotives" (
  "class" text,
  "number_s" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which class has fewer than 10 and number(s) names?`:
```sql
                SELECT "class" FROM "tank_locomotives" WHERE "quantity"<10 AND "number_s"='names';
```
## Task
Generate a SQL query to answer the following question:
`What is the type with a quantity of fewer than 6 and number(s) 5201?`

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

CREATE TABLE "tank_locomotives" (
  "class" text,
  "number_s" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type with a quantity of fewer than 6 and number(s) 5201?`:
```sql
                SELECT "type" FROM "tank_locomotives" WHERE "quantity"<6 AND "number_s"='5201';
```
## Task
Generate a SQL query to answer the following question:
`How many byes were then when there were less than 737 against?`

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

CREATE TABLE "1969_as_three_leagues_come_together" (
  "glenelg_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many byes were then when there were less than 737 against?`:
```sql
                SELECT SUM("byes") FROM "1969_as_three_leagues_come_together" WHERE "against"<737;
```
## Task
Generate a SQL query to answer the following question:
`How many wins were there when the byes were more than 3?`

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

CREATE TABLE "1969_as_three_leagues_come_together" (
  "glenelg_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins were there when the byes were more than 3?`:
```sql
                SELECT COUNT("wins") FROM "1969_as_three_leagues_come_together" WHERE "byes">3;
```
## Task
Generate a SQL query to answer the following question:
`How many wins were there when draws were more than 0?`

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

CREATE TABLE "1969_as_three_leagues_come_together" (
  "glenelg_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins were there when draws were more than 0?`:
```sql
                SELECT MIN("wins") FROM "1969_as_three_leagues_come_together" WHERE "draws">0;
```
## Task
Generate a SQL query to answer the following question:
`How many wins did Glenelg FL of bahgallah have when there were more than 3 byes?`

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

CREATE TABLE "1969_as_three_leagues_come_together" (
  "glenelg_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins did Glenelg FL of bahgallah have when there were more than 3 byes?`:
```sql
                SELECT COUNT("wins") FROM "1969_as_three_leagues_come_together" WHERE "glenelg_fl"='bahgallah' AND "byes">3;
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Opponent in Final is "Guy Forget"?`

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

CREATE TABLE "wins_15" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Opponent in Final is "Guy Forget"?`:
```sql
                SELECT "date" FROM "wins_15" WHERE "opponent_in_final"='guy forget';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent in Final, when Date is "13 January 1992"?`

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

CREATE TABLE "wins_15" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent in Final, when Date is "13 January 1992"?`:
```sql
                SELECT "opponent_in_final" FROM "wins_15" WHERE "date"='13 january 1992';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent in Final, when Surface is "Hard", and when Date is "13 January 1992"?`

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

CREATE TABLE "wins_15" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent in Final, when Surface is "Hard", and when Date is "13 January 1992"?`:
```sql
                SELECT "opponent_in_final" FROM "wins_15" WHERE "surface"='hard' AND "date"='13 january 1992';
```
## Task
Generate a SQL query to answer the following question:
`What is the Height of the Player with a Date of Birth of 1979-06-12?`

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

CREATE TABLE "australia" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height of the Player with a Date of Birth of 1979-06-12?`:
```sql
                SELECT "height" FROM "australia" WHERE "date_of_birth"='1979-06-12';
```
## Task
Generate a SQL query to answer the following question:
`What is the Height of the Player with a Date of Birth of 1982-07-05?`

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

CREATE TABLE "australia" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height of the Player with a Date of Birth of 1982-07-05?`:
```sql
                SELECT "height" FROM "australia" WHERE "date_of_birth"='1982-07-05';
```
## Task
Generate a SQL query to answer the following question:
`What is the Weight of the Player with a Date of Birth of 1979-09-26?`

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

CREATE TABLE "australia" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Weight of the Player with a Date of Birth of 1979-09-26?`:
```sql
                SELECT "weight" FROM "australia" WHERE "date_of_birth"='1979-09-26';
```
## Task
Generate a SQL query to answer the following question:
`What is Elise Norwood's Pos.?`

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

CREATE TABLE "australia" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Elise Norwood's Pos.?`:
```sql
                SELECT "pos" FROM "australia" WHERE "name"='elise norwood';
```
## Task
Generate a SQL query to answer the following question:
`What is the Club of the Player with a Date of Birth of 1977-02-03?`

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

CREATE TABLE "australia" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Club of the Player with a Date of Birth of 1977-02-03?`:
```sql
                SELECT "club" FROM "australia" WHERE "date_of_birth"='1977-02-03';
```
## Task
Generate a SQL query to answer the following question:
`What home has 1-5 as the away?`

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

CREATE TABLE "tsv_1860_munich_versus_sp_vgg_unterhachi" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home has 1-5 as the away?`:
```sql
                SELECT "home" FROM "tsv_1860_munich_versus_sp_vgg_unterhachi" WHERE "away"='1-5';
```
## Task
Generate a SQL query to answer the following question:
`What league has 2-3 as the away?`

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

CREATE TABLE "tsv_1860_munich_versus_sp_vgg_unterhachi" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What league has 2-3 as the away?`:
```sql
                SELECT "league" FROM "tsv_1860_munich_versus_sp_vgg_unterhachi" WHERE "away"='2-3';
```
## Task
Generate a SQL query to answer the following question:
`What away has 1-4 as the home?`

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

CREATE TABLE "tsv_1860_munich_versus_sp_vgg_unterhachi" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What away has 1-4 as the home?`:
```sql
                SELECT "away" FROM "tsv_1860_munich_versus_sp_vgg_unterhachi" WHERE "home"='1-4';
```
## Task
Generate a SQL query to answer the following question:
`What teams has 1-5 as the away?`

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

CREATE TABLE "tsv_1860_munich_versus_sp_vgg_unterhachi" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What teams has 1-5 as the away?`:
```sql
                SELECT "teams" FROM "tsv_1860_munich_versus_sp_vgg_unterhachi" WHERE "away"='1-5';
```
## Task
Generate a SQL query to answer the following question:
`What Date had a Series of ATCC Round 6?`

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

CREATE TABLE "race_calendar" (
  "date" text,
  "series" text,
  "circuit" text,
  "city_state" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Date had a Series of ATCC Round 6?`:
```sql
                SELECT "date" FROM "race_calendar" WHERE "series"='atcc round 6';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Winner in the AMC Round 4 at Lakeside International Raceway?`

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

CREATE TABLE "race_calendar" (
  "date" text,
  "series" text,
  "circuit" text,
  "city_state" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Winner in the AMC Round 4 at Lakeside International Raceway?`:
```sql
                SELECT "winner" FROM "race_calendar" WHERE "circuit"='lakeside international raceway' AND "series"='amc round 4';
```
## Task
Generate a SQL query to answer the following question:
`What is the week 15 result for the team that had a week 9 result of Washington (6-1)?`

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

CREATE TABLE "bcs_standings" (
  "week_9_oct_29" text,
  "week_10_nov_5" text,
  "week_11_nov_12" text,
  "week_12_nov_19" text,
  "week_13_nov_26" text,
  "week_14_dec_3" text,
  "week_15_final_dec_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 15 result for the team that had a week 9 result of Washington (6-1)?`:
```sql
                SELECT "week_15_final_dec_9" FROM "bcs_standings" WHERE "week_9_oct_29"='washington (6-1)';
```
## Task
Generate a SQL query to answer the following question:
`What is the week 10 result for the tean when the week 15 result is Illinois (10-1)?`

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

CREATE TABLE "bcs_standings" (
  "week_9_oct_29" text,
  "week_10_nov_5" text,
  "week_11_nov_12" text,
  "week_12_nov_19" text,
  "week_13_nov_26" text,
  "week_14_dec_3" text,
  "week_15_final_dec_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 10 result for the tean when the week 15 result is Illinois (10-1)?`:
```sql
                SELECT "week_10_nov_5" FROM "bcs_standings" WHERE "week_15_final_dec_9"='illinois (10-1)';
```
## Task
Generate a SQL query to answer the following question:
`What is the week 10 result where the week 9 result was Dropped: Maryland South Carolina?`

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

CREATE TABLE "bcs_standings" (
  "week_9_oct_29" text,
  "week_10_nov_5" text,
  "week_11_nov_12" text,
  "week_12_nov_19" text,
  "week_13_nov_26" text,
  "week_14_dec_3" text,
  "week_15_final_dec_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 10 result where the week 9 result was Dropped: Maryland South Carolina?`:
```sql
                SELECT "week_10_nov_5" FROM "bcs_standings" WHERE "week_9_oct_29"='dropped: maryland south carolina';
```
## Task
Generate a SQL query to answer the following question:
`What is the week 13 result where the week 14 resulted in Maryland (10-1)?`

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

CREATE TABLE "bcs_standings" (
  "week_9_oct_29" text,
  "week_10_nov_5" text,
  "week_11_nov_12" text,
  "week_12_nov_19" text,
  "week_13_nov_26" text,
  "week_14_dec_3" text,
  "week_15_final_dec_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 13 result where the week 14 resulted in Maryland (10-1)?`:
```sql
                SELECT "week_13_nov_26" FROM "bcs_standings" WHERE "week_14_dec_3"='maryland (10-1)';
```
## Task
Generate a SQL query to answer the following question:
`What happened in week 14 when week 11's result was Michigan (7-2)?`

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

CREATE TABLE "bcs_standings" (
  "week_9_oct_29" text,
  "week_10_nov_5" text,
  "week_11_nov_12" text,
  "week_12_nov_19" text,
  "week_13_nov_26" text,
  "week_14_dec_3" text,
  "week_15_final_dec_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What happened in week 14 when week 11's result was Michigan (7-2)?`:
```sql
                SELECT "week_14_dec_3" FROM "bcs_standings" WHERE "week_11_nov_12"='michigan (7-2)';
```
## Task
Generate a SQL query to answer the following question:
`What happened in week 12 when week 13 resulted in Tennessee (9-1)?`

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

CREATE TABLE "bcs_standings" (
  "week_9_oct_29" text,
  "week_10_nov_5" text,
  "week_11_nov_12" text,
  "week_12_nov_19" text,
  "week_13_nov_26" text,
  "week_14_dec_3" text,
  "week_15_final_dec_9" text
);
### SQL
Given the database schema, here is the SQL query that answers `What happened in week 12 when week 13 resulted in Tennessee (9-1)?`:
```sql
                SELECT "week_12_nov_19" FROM "bcs_standings" WHERE "week_13_nov_26"='tennessee (9-1)';
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest bronze medals when the total medals is less than 10, and the gold medals less than 0?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest bronze medals when the total medals is less than 10, and the gold medals less than 0?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "total"<10 AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`With 8 as the rank, and a total of more than 2 medals what is the average bronze medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `With 8 as the rank, and a total of more than 2 medals what is the average bronze medals?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "rank"='8' AND "total">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum total medals when the rank is 8?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum total medals when the rank is 8?`:
```sql
                SELECT MAX("total") FROM "medal_table" WHERE "rank"='8';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest number of gold medals when the bronze medals is less than 49, and there is 22 silver medals, and the total is less than 60?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number of gold medals when the bronze medals is less than 49, and there is 22 silver medals, and the total is less than 60?`:
```sql
                SELECT MAX("gold") FROM "medal_table" WHERE "bronze"<49 AND "silver"=22 AND "total"<60;
```
## Task
Generate a SQL query to answer the following question:
`When the number of gold medals is greater than 59, and the rank is total, what is the average bronze medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the number of gold medals is greater than 59, and the rank is total, what is the average bronze medals?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "rank"='total' AND "gold">59;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of medals a country with more than 14 silver has?`

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

CREATE TABLE "performances_by_nation" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of medals a country with more than 14 silver has?`:
```sql
                SELECT MIN("total") FROM "performances_by_nation" WHERE "silver">14;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of a country with more than 2 gold, less than 5 silver, and less than 31 total medals?`

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

CREATE TABLE "performances_by_nation" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of a country with more than 2 gold, less than 5 silver, and less than 31 total medals?`:
```sql
                SELECT SUM("rank") FROM "performances_by_nation" WHERE "gold">2 AND "total"<31 AND "silver"<5;
```
## Task
Generate a SQL query to answer the following question:
`WHat was the score for Phil Mickelson when he placed t3?`

### 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 was the score for Phil Mickelson when he placed t3?`:
```sql
                SELECT "score" FROM "second_round" WHERE "place"='t3' AND "player"='phil mickelson';
```
## Task
Generate a SQL query to answer the following question:
`What place did the golfer take whose country is South Africa?`

### 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 did the golfer take whose country is South Africa?`:
```sql
                SELECT "place" FROM "second_round" WHERE "country"='south africa';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game played at Jeppesen Stadium?`

### 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 was the result of the game played at Jeppesen Stadium?`:
```sql
                SELECT "result" FROM "regular_season" WHERE "game_site"='jeppesen stadium';
```
## Task
Generate a SQL query to answer the following question:
`What week was the game played on November 12, 1961, with an attendance of 7,859 played?`

### 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 week was the game played on November 12, 1961, with an attendance of 7,859 played?`:
```sql
                SELECT MIN("week") FROM "regular_season" WHERE "date"='november 12, 1961' AND "attendance"<'7,859';
```
## Task
Generate a SQL query to answer the following question:
`What decade is the artist the replacements?`

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

CREATE TABLE "track_listing" (
  "song_title" text,
  "artist" text,
  "decade" text,
  "genre" text,
  "exportable" text
);
### SQL
Given the database schema, here is the SQL query that answers `What decade is the artist the replacements?`:
```sql
                SELECT "decade" FROM "track_listing" WHERE "artist"='the replacements';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of households in the county with median income of $65,240 and population greater than 744,344?`

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

CREATE TABLE "new_york_counties_ranked_by_per_capita_i" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of households in the county with median income of $65,240 and population greater than 744,344?`:
```sql
                SELECT SUM("number_of_households") FROM "new_york_counties_ranked_by_per_capita_i" WHERE "median_family_income"='$65,240' AND "population">'744,344';
```
## Task
Generate a SQL query to answer the following question:
`What is the population of Tioga county?`

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

CREATE TABLE "new_york_counties_ranked_by_per_capita_i" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population of Tioga county?`:
```sql
                SELECT "population" FROM "new_york_counties_ranked_by_per_capita_i" WHERE "county"='tioga';
```
## Task
Generate a SQL query to answer the following question:
`Which Constructor has Laps larger than 9, and a Grid smaller than 2?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Constructor has Laps larger than 9, and a Grid smaller than 2?`:
```sql
                SELECT "constructor" FROM "race" WHERE "laps">9 AND "grid"<2;
```
## Task
Generate a SQL query to answer the following question:
`What's filiberto rivera's height?`

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

CREATE TABLE "fiba_world_olympic_qualifying_tournament" (
  "player" text,
  "height" real,
  "position" text,
  "year_born_age" text,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's filiberto rivera's height?`:
```sql
                SELECT COUNT("height") FROM "fiba_world_olympic_qualifying_tournament" WHERE "player"='filiberto rivera';
```
## Task
Generate a SQL query to answer the following question:
`Who has a position of sg?`

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

CREATE TABLE "fiba_world_olympic_qualifying_tournament" (
  "player" text,
  "height" real,
  "position" text,
  "year_born_age" text,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a position of sg?`:
```sql
                SELECT "player" FROM "fiba_world_olympic_qualifying_tournament" WHERE "position"='sg';
```
## Task
Generate a SQL query to answer the following question:
`Who has a height of 2.16?`

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

CREATE TABLE "fiba_world_olympic_qualifying_tournament" (
  "player" text,
  "height" real,
  "position" text,
  "year_born_age" text,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a height of 2.16?`:
```sql
                SELECT "player" FROM "fiba_world_olympic_qualifying_tournament" WHERE "height"=2.16;
```
## Task
Generate a SQL query to answer the following question:
`What's the tallest height for c position in current club unicaja malaga?`

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

CREATE TABLE "fiba_world_olympic_qualifying_tournament" (
  "player" text,
  "height" real,
  "position" text,
  "year_born_age" text,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the tallest height for c position in current club unicaja malaga?`:
```sql
                SELECT MAX("height") FROM "fiba_world_olympic_qualifying_tournament" WHERE "position"='c' AND "current_club"='unicaja malaga';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance when the Southend United was the home team?`

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

CREATE TABLE "first_round_proper" (
  "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 was the attendance when the Southend United was the home team?`:
```sql
                SELECT "attendance" FROM "first_round_proper" WHERE "home_team"='southend united';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team that played Northampton Town at home with a tie number of replay?`

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

CREATE TABLE "first_round_proper" (
  "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 `Who was the away team that played Northampton Town at home with a tie number of replay?`:
```sql
                SELECT "away_team" FROM "first_round_proper" WHERE "tie_no"='replay' AND "home_team"='northampton town';
```
## Task
Generate a SQL query to answer the following question:
`Which Outcome has an Opponent in the final of simone colombo?`

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

CREATE TABLE "singles_titles_2" (
  "outcome" text,
  "date" real,
  "championship" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Outcome has an Opponent in the final of simone colombo?`:
```sql
                SELECT "outcome" FROM "singles_titles_2" WHERE "opponent_in_the_final"='simone colombo';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the glyph with a binary less than 111001, an octal less than 65, and a hexadecimal less than 30?`

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

CREATE TABLE "evolution_of_symbols" (
  "binary" real,
  "octal" real,
  "decimal" real,
  "hexadecimal" real,
  "glyph" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the glyph with a binary less than 111001, an octal less than 65, and a hexadecimal less than 30?`:
```sql
                SELECT SUM("glyph") FROM "evolution_of_symbols" WHERE "binary"<111001 AND "octal"<65 AND "hexadecimal"<30;
```
## Task
Generate a SQL query to answer the following question:
`What is the average hexadecimal with a decimal less than 53, an octal less than 61, and a glyph greater than 0?`

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

CREATE TABLE "evolution_of_symbols" (
  "binary" real,
  "octal" real,
  "decimal" real,
  "hexadecimal" real,
  "glyph" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average hexadecimal with a decimal less than 53, an octal less than 61, and a glyph greater than 0?`:
```sql
                SELECT AVG("hexadecimal") FROM "evolution_of_symbols" WHERE "decimal"<53 AND "octal"<61 AND "glyph">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest octal with a 30 hexadecimal and less than 0 glyphs?`

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

CREATE TABLE "evolution_of_symbols" (
  "binary" real,
  "octal" real,
  "decimal" real,
  "hexadecimal" real,
  "glyph" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest octal with a 30 hexadecimal and less than 0 glyphs?`:
```sql
                SELECT MIN("octal") FROM "evolution_of_symbols" WHERE "hexadecimal"=30 AND "glyph"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average hexadecimal with a decimal greater than 57?`

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

CREATE TABLE "evolution_of_symbols" (
  "binary" real,
  "octal" real,
  "decimal" real,
  "hexadecimal" real,
  "glyph" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average hexadecimal with a decimal greater than 57?`:
```sql
                SELECT AVG("hexadecimal") FROM "evolution_of_symbols" WHERE "decimal">57;
```
## Task
Generate a SQL query to answer the following question:
`What is the average decimal with a 110010 binary and a glyph greater than 2?`

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

CREATE TABLE "evolution_of_symbols" (
  "binary" real,
  "octal" real,
  "decimal" real,
  "hexadecimal" real,
  "glyph" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average decimal with a 110010 binary and a glyph greater than 2?`:
```sql
                SELECT AVG("decimal") FROM "evolution_of_symbols" WHERE "binary"=110010 AND "glyph">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the glyph with a 38 hexadecimal and a binary less than 111000?`

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

CREATE TABLE "evolution_of_symbols" (
  "binary" real,
  "octal" real,
  "decimal" real,
  "hexadecimal" real,
  "glyph" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the glyph with a 38 hexadecimal and a binary less than 111000?`:
```sql
                SELECT SUM("glyph") FROM "evolution_of_symbols" WHERE "hexadecimal"=38 AND "binary"<111000;
```
## Task
Generate a SQL query to answer the following question:
`What was the record in the game where the opponent wasd the atlanta falcons?`

### 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,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record in the game where the opponent wasd the atlanta falcons?`:
```sql
                SELECT "record" FROM "schedule" WHERE "opponent"='atlanta falcons';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest attendance at a game that was played in tulane stadium?`

### 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,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest attendance at a game that was played in tulane stadium?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "game_site"='tulane stadium';
```
## Task
Generate a SQL query to answer the following question:
`What is the category for the year when Brioude started and the stage is less than 7?`

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

CREATE TABLE "appearances_in_the_tour_de_france" (
  "year" real,
  "stage" real,
  "category" real,
  "start" text,
  "finish" text,
  "leader_at_the_summit" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the category for the year when Brioude started and the stage is less than 7?`:
```sql
                SELECT COUNT("category") FROM "appearances_in_the_tour_de_france" WHERE "start"='brioude' AND "stage"<7;
```
## Task
Generate a SQL query to answer the following question:
`What is the stage number when the category is less than 1?`

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

CREATE TABLE "appearances_in_the_tour_de_france" (
  "year" real,
  "stage" real,
  "category" real,
  "start" text,
  "finish" text,
  "leader_at_the_summit" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the stage number when the category is less than 1?`:
```sql
                SELECT COUNT("stage") FROM "appearances_in_the_tour_de_france" WHERE "category"<1;
```
## Task
Generate a SQL query to answer the following question:
`For the 1948-49 season, what was the At Home record?`

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

CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the 1948-49 season, what was the At Home record?`:
```sql
                SELECT "home" FROM "fc_bayern_munich_versus_tsv_1860_munich" WHERE "season"='1948-49';
```
## Task
Generate a SQL query to answer the following question:
`In which season was the Away record 2-2 and At Home record 1-0?`

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

CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which season was the Away record 2-2 and At Home record 1-0?`:
```sql
                SELECT "season" FROM "fc_bayern_munich_versus_tsv_1860_munich" WHERE "away"='2-2' AND "home"='1-0';
```