cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Game is the highest one that has a Score of 3–4 ot, and Points larger than 75?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game is the highest one that has a Score of 3–4 ot, and Points larger than 75?`:
```sql
                SELECT MAX("game") FROM "regular_season" WHERE "score"='3–4 ot' AND "points">75;
```
## Task
Generate a SQL query to answer the following question:
`How much February has a Score of 5–2, and Points of 70?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much February has a Score of 5–2, and Points of 70?`:
```sql
                SELECT COUNT("february") FROM "regular_season" WHERE "score"='5–2' AND "points"=70;
```
## Task
Generate a SQL query to answer the following question:
`Which result happened more recently than week 2, and had a date of November 30, 1958?`

### 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,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which result happened more recently than week 2, and had a date of November 30, 1958?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week">2 AND "date"='november 30, 1958';
```
## Task
Generate a SQL query to answer the following question:
`what album is 4:30 long`

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

CREATE TABLE "official_versions" (
  "version" text,
  "length" text,
  "album" text,
  "remixed_by" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `what album is 4:30 long`:
```sql
                SELECT "album" FROM "official_versions" WHERE "length"='4:30';
```
## Task
Generate a SQL query to answer the following question:
`What is the Head Coach of Novy Urengoy?`

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

CREATE TABLE "teams" (
  "previous_season" text,
  "team" text,
  "town" text,
  "arena_capacity" text,
  "website" text,
  "head_coach" text,
  "foreign_players_max_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Head Coach of Novy Urengoy?`:
```sql
                SELECT "head_coach" FROM "teams" WHERE "town"='novy urengoy';
```
## Task
Generate a SQL query to answer the following question:
`What is the Arena o Kazan?`

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

CREATE TABLE "teams" (
  "previous_season" text,
  "team" text,
  "town" text,
  "arena_capacity" text,
  "website" text,
  "head_coach" text,
  "foreign_players_max_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Arena o Kazan?`:
```sql
                SELECT "arena_capacity" FROM "teams" WHERE "town"='kazan';
```
## Task
Generate a SQL query to answer the following question:
`What is the Website of Head Coach Yuriy Korotkevich?`

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

CREATE TABLE "teams" (
  "previous_season" text,
  "team" text,
  "town" text,
  "arena_capacity" text,
  "website" text,
  "head_coach" text,
  "foreign_players_max_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Website of Head Coach Yuriy Korotkevich?`:
```sql
                SELECT "website" FROM "teams" WHERE "head_coach"='yuriy korotkevich';
```
## Task
Generate a SQL query to answer the following question:
`Opponents of sebastián decoud santiago giraldo had what surface?`

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

CREATE TABLE "doubles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Opponents of sebastián decoud santiago giraldo had what surface?`:
```sql
                SELECT "surface" FROM "doubles_5" WHERE "opponents"='sebastián decoud santiago giraldo';
```
## Task
Generate a SQL query to answer the following question:
`Partnering of franco ferreiro had what tournament?`

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

CREATE TABLE "doubles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Partnering of franco ferreiro had what tournament?`:
```sql
                SELECT "tournament" FROM "doubles_5" WHERE "partnering"='franco ferreiro';
```
## Task
Generate a SQL query to answer the following question:
`Date of april 10, 2006 had what surface?`

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

CREATE TABLE "doubles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Date of april 10, 2006 had what surface?`:
```sql
                SELECT "surface" FROM "doubles_5" WHERE "date"='april 10, 2006';
```
## Task
Generate a SQL query to answer the following question:
`Surface of clay, and a Partnering of júlio silva had what score?`

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

CREATE TABLE "doubles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Surface of clay, and a Partnering of júlio silva had what score?`:
```sql
                SELECT "score" FROM "doubles_5" WHERE "surface"='clay' AND "partnering"='júlio silva';
```
## Task
Generate a SQL query to answer the following question:
`Date of november 3, 2008 had what score?`

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

CREATE TABLE "doubles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Date of november 3, 2008 had what score?`:
```sql
                SELECT "score" FROM "doubles_5" WHERE "date"='november 3, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Which Points have a Name of denis kornilov?`

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

CREATE TABLE "sapporo" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points have a Name of denis kornilov?`:
```sql
                SELECT AVG("points") FROM "sapporo" WHERE "name"='denis kornilov';
```
## Task
Generate a SQL query to answer the following question:
`Which Rank is the highest one that has a 1st (m) larger than 130, and a Name of thomas morgenstern, and a 2nd (m) larger than 139?`

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

CREATE TABLE "sapporo" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank is the highest one that has a 1st (m) larger than 130, and a Name of thomas morgenstern, and a 2nd (m) larger than 139?`:
```sql
                SELECT MAX("rank") FROM "sapporo" WHERE "1st_m">130 AND "name"='thomas morgenstern' AND "2nd_m">139;
```
## Task
Generate a SQL query to answer the following question:
`Which Rank that a Name of thomas morgenstern, and Points larger than 288.7?`

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

CREATE TABLE "sapporo" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank that a Name of thomas morgenstern, and Points larger than 288.7?`:
```sql
                SELECT SUM("rank") FROM "sapporo" WHERE "name"='thomas morgenstern' AND "points">288.7;
```
## Task
Generate a SQL query to answer the following question:
`How many Points have a Nationality of nor, and an Overall WC points (Rank) of 374 (13), and a Rank smaller than 4?`

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

CREATE TABLE "sapporo" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Points have a Nationality of nor, and an Overall WC points (Rank) of 374 (13), and a Rank smaller than 4?`:
```sql
                SELECT COUNT("points") FROM "sapporo" WHERE "nationality"='nor' AND "overall_wc_points_rank"='374 (13)' AND "rank"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the overall number for Louisiana Tech college, and a pick more than 10?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the overall number for Louisiana Tech college, and a pick more than 10?`:
```sql
                SELECT SUM("overall") FROM "jacksonville_jaguars_draft_history" WHERE "college"='louisiana tech' AND "pick_num">10;
```
## Task
Generate a SQL query to answer the following question:
`What was the pick number for Deji Karim, in a round lower than 6?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the pick number for Deji Karim, in a round lower than 6?`:
```sql
                SELECT AVG("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "name"='deji karim' AND "round"<6;
```
## Task
Generate a SQL query to answer the following question:
`Which college had an overall number more than 180?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which college had an overall number more than 180?`:
```sql
                SELECT "college" FROM "jacksonville_jaguars_draft_history" WHERE "overall">180;
```
## Task
Generate a SQL query to answer the following question:
`What is the overall number for a pick of #10, from Louisiana Tech, and a round bigger than 3?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the overall number for a pick of #10, from Louisiana Tech, and a round bigger than 3?`:
```sql
                SELECT SUM("overall") FROM "jacksonville_jaguars_draft_history" WHERE "pick_num"=10 AND "college"='louisiana tech' AND "round">3;
```
## Task
Generate a SQL query to answer the following question:
`What's the Pick average that has a School/Club Team of Alabama, with a Round that's smaller than 9?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Pick average that has a School/Club Team of Alabama, with a Round that's smaller than 9?`:
```sql
                SELECT AVG("pick") FROM "nfl_draft" WHERE "school_club_team"='alabama' AND "round"<9;
```
## Task
Generate a SQL query to answer the following question:
`What's the sum of the Pick that has the Player of Robert Ingalls?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sum of the Pick that has the Player of Robert Ingalls?`:
```sql
                SELECT COUNT("pick") FROM "nfl_draft" WHERE "player"='robert ingalls';
```
## Task
Generate a SQL query to answer the following question:
`What's the sum of the Pick that has the Position of Tackle, the Player Woody Adams, and a Round that's larger than 22?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the sum of the Pick that has the Position of Tackle, the Player Woody Adams, and a Round that's larger than 22?`:
```sql
                SELECT COUNT("pick") FROM "nfl_draft" WHERE "position"='tackle' AND "player"='woody adams' AND "round">22;
```
## Task
Generate a SQL query to answer the following question:
`What Position has a Round that's larger than 21?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Position has a Round that's larger than 21?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "round">21;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the Europe totals for players with other appearances of 0, league appearances under 328, and a position of MF?`

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

CREATE TABLE "most_official_appearances" (
  "ranking" real,
  "nationality" text,
  "name" text,
  "position" text,
  "years" text,
  "league" real,
  "europe" real,
  "others" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the Europe totals for players with other appearances of 0, league appearances under 328, and a position of MF?`:
```sql
                SELECT SUM("europe") FROM "most_official_appearances" WHERE "others"=0 AND "league"<328 AND "position"='mf';
```
## Task
Generate a SQL query to answer the following question:
`Occupational pensions of 7%, and a Working tax credit of 2%, and a Other social security benefits of 6% has what investment income?`

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

CREATE TABLE "sources_of_income" (
  "region" text,
  "employment_salaries_wages" text,
  "self_employed" text,
  "investment_income" text,
  "working_tax_credit" text,
  "state_pensions" text,
  "occupational_pensions" text,
  "disability_benefits" text,
  "other_social_security_benefits" text,
  "other_income_sources" text
);
### SQL
Given the database schema, here is the SQL query that answers `Occupational pensions of 7%, and a Working tax credit of 2%, and a Other social security benefits of 6% has what investment income?`:
```sql
                SELECT "investment_income" FROM "sources_of_income" WHERE "occupational_pensions"='7%' AND "working_tax_credit"='2%' AND "other_social_security_benefits"='6%';
```
## Task
Generate a SQL query to answer the following question:
`Region of eastern england has what investment income?`

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

CREATE TABLE "sources_of_income" (
  "region" text,
  "employment_salaries_wages" text,
  "self_employed" text,
  "investment_income" text,
  "working_tax_credit" text,
  "state_pensions" text,
  "occupational_pensions" text,
  "disability_benefits" text,
  "other_social_security_benefits" text,
  "other_income_sources" text
);
### SQL
Given the database schema, here is the SQL query that answers `Region of eastern england has what investment income?`:
```sql
                SELECT "investment_income" FROM "sources_of_income" WHERE "region"='eastern england';
```
## Task
Generate a SQL query to answer the following question:
`State pensions of 7%, and a Self employed of 7%, and a Other income sources of 2% has what investment income?`

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

CREATE TABLE "sources_of_income" (
  "region" text,
  "employment_salaries_wages" text,
  "self_employed" text,
  "investment_income" text,
  "working_tax_credit" text,
  "state_pensions" text,
  "occupational_pensions" text,
  "disability_benefits" text,
  "other_social_security_benefits" text,
  "other_income_sources" text
);
### SQL
Given the database schema, here is the SQL query that answers `State pensions of 7%, and a Self employed of 7%, and a Other income sources of 2% has what investment income?`:
```sql
                SELECT "investment_income" FROM "sources_of_income" WHERE "state_pensions"='7%' AND "self_employed"='7%' AND "other_income_sources"='2%';
```
## Task
Generate a SQL query to answer the following question:
`Other income sources of 2%, and a State pensions of 7%, and a Working tax credit of 2%, and a Employment ( salaries & wages) of 66% has what occupational pensions?`

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

CREATE TABLE "sources_of_income" (
  "region" text,
  "employment_salaries_wages" text,
  "self_employed" text,
  "investment_income" text,
  "working_tax_credit" text,
  "state_pensions" text,
  "occupational_pensions" text,
  "disability_benefits" text,
  "other_social_security_benefits" text,
  "other_income_sources" text
);
### SQL
Given the database schema, here is the SQL query that answers `Other income sources of 2%, and a State pensions of 7%, and a Working tax credit of 2%, and a Employment ( salaries & wages) of 66% has what occupational pensions?`:
```sql
                SELECT "occupational_pensions" FROM "sources_of_income" WHERE "other_income_sources"='2%' AND "state_pensions"='7%' AND "working_tax_credit"='2%' AND "employment_salaries_wages"='66%';
```
## Task
Generate a SQL query to answer the following question:
`Investment income of 2%, and an other income sources of 3%, and an employment (salaries & wages) of 71% involves which self employed?`

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

CREATE TABLE "sources_of_income" (
  "region" text,
  "employment_salaries_wages" text,
  "self_employed" text,
  "investment_income" text,
  "working_tax_credit" text,
  "state_pensions" text,
  "occupational_pensions" text,
  "disability_benefits" text,
  "other_social_security_benefits" text,
  "other_income_sources" text
);
### SQL
Given the database schema, here is the SQL query that answers `Investment income of 2%, and an other income sources of 3%, and an employment (salaries & wages) of 71% involves which self employed?`:
```sql
                SELECT "self_employed" FROM "sources_of_income" WHERE "investment_income"='2%' AND "other_income_sources"='3%' AND "employment_salaries_wages"='71%';
```
## Task
Generate a SQL query to answer the following question:
`Employment ( salaries & wages) of 64%, and a Occupational pensions of 6% has what working tax credit?`

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

CREATE TABLE "sources_of_income" (
  "region" text,
  "employment_salaries_wages" text,
  "self_employed" text,
  "investment_income" text,
  "working_tax_credit" text,
  "state_pensions" text,
  "occupational_pensions" text,
  "disability_benefits" text,
  "other_social_security_benefits" text,
  "other_income_sources" text
);
### SQL
Given the database schema, here is the SQL query that answers `Employment ( salaries & wages) of 64%, and a Occupational pensions of 6% has what working tax credit?`:
```sql
                SELECT "working_tax_credit" FROM "sources_of_income" WHERE "employment_salaries_wages"='64%' AND "occupational_pensions"='6%';
```
## Task
Generate a SQL query to answer the following question:
`How many Drawn is which has a Games smaller than 6?`

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

CREATE TABLE "world_championship_group_c_denmark" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Drawn is which has a Games smaller than 6?`:
```sql
                SELECT SUM("drawn") FROM "world_championship_group_c_denmark" WHERE "games"<6;
```
## Task
Generate a SQL query to answer the following question:
`What is the Points that has  61 - 15 Point difference and a Drawn larger than 1?`

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

CREATE TABLE "world_championship_group_c_denmark" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Points that has  61 - 15 Point difference and a Drawn larger than 1?`:
```sql
                SELECT AVG("points") FROM "world_championship_group_c_denmark" WHERE "points_difference"='61 - 15' AND "drawn">1;
```
## Task
Generate a SQL query to answer the following question:
`How many Drawn has a Games larger than 6?`

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

CREATE TABLE "world_championship_group_c_denmark" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Drawn has a Games larger than 6?`:
```sql
                SELECT SUM("drawn") FROM "world_championship_group_c_denmark" WHERE "games">6;
```
## Task
Generate a SQL query to answer the following question:
`How many jewish have a muslim less than 36,041, a total less than 161,042, a year after 2006, with a druze greater than 2,534?`

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

CREATE TABLE "births_by_mother" (
  "year" real,
  "jewish" real,
  "muslim" real,
  "christian" real,
  "druze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many jewish have a muslim less than 36,041, a total less than 161,042, a year after 2006, with a druze greater than 2,534?`:
```sql
                SELECT SUM("jewish") FROM "births_by_mother" WHERE "muslim"<'36,041' AND "total"<'161,042' AND "year">2006 AND "druze">'2,534';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest year that has a druze greater than 2,534, with a total less than 121,333?`

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

CREATE TABLE "births_by_mother" (
  "year" real,
  "jewish" real,
  "muslim" real,
  "christian" real,
  "druze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest year that has a druze greater than 2,534, with a total less than 121,333?`:
```sql
                SELECT MIN("year") FROM "births_by_mother" WHERE "druze">'2,534' AND "total"<'121,333';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest jewish that has a druze less than 2,517, and a year prior to 2007?`

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

CREATE TABLE "births_by_mother" (
  "year" real,
  "jewish" real,
  "muslim" real,
  "christian" real,
  "druze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest jewish that has a druze less than 2,517, and a year prior to 2007?`:
```sql
                SELECT MIN("jewish") FROM "births_by_mother" WHERE "druze"<'2,517' AND "year"<2007;
```
## Task
Generate a SQL query to answer the following question:
`What is the average muslim that has a druze less than 2,534, a year prior to 2005, and a jewish greater than 100,657?`

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

CREATE TABLE "births_by_mother" (
  "year" real,
  "jewish" real,
  "muslim" real,
  "christian" real,
  "druze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average muslim that has a druze less than 2,534, a year prior to 2005, and a jewish greater than 100,657?`:
```sql
                SELECT AVG("muslim") FROM "births_by_mother" WHERE "druze"<'2,534' AND "year"=2005 AND "jewish">'100,657';
```
## Task
Generate a SQL query to answer the following question:
`How many muslims have a jewish of 112,803, and a year after 2008?`

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

CREATE TABLE "births_by_mother" (
  "year" real,
  "jewish" real,
  "muslim" real,
  "christian" real,
  "druze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many muslims have a jewish of 112,803, and a year after 2008?`:
```sql
                SELECT SUM("muslim") FROM "births_by_mother" WHERE "jewish"='112,803' AND "year">2008;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest electorate with 78,076 quota and less than 13 candidates?`

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

CREATE TABLE "voting_details" (
  "constituency" text,
  "electorate" real,
  "turnout" text,
  "spoilt" text,
  "valid_poll" real,
  "quota" text,
  "seats" real,
  "candidates" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest electorate with 78,076 quota and less than 13 candidates?`:
```sql
                SELECT MIN("electorate") FROM "voting_details" WHERE "quota"='78,076' AND "candidates"<13;
```
## Task
Generate a SQL query to answer the following question:
`What is the turnout with 15 candidates and more than 377,591 valid poll?`

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

CREATE TABLE "voting_details" (
  "constituency" text,
  "electorate" real,
  "turnout" text,
  "spoilt" text,
  "valid_poll" real,
  "quota" text,
  "seats" real,
  "candidates" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the turnout with 15 candidates and more than 377,591 valid poll?`:
```sql
                SELECT "turnout" FROM "voting_details" WHERE "candidates"=15 AND "valid_poll">'377,591';
```
## Task
Generate a SQL query to answer the following question:
`What country is ranked 79?`

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

CREATE TABLE "accolades" (
  "publication" text,
  "country" text,
  "accolade" text,
  "year" real,
  "rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country is ranked 79?`:
```sql
                SELECT "country" FROM "accolades" WHERE "rank"=79;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank for an album after 1999 and an Accolade of the 100 greatest indie rock albums of all time?`

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

CREATE TABLE "accolades" (
  "publication" text,
  "country" text,
  "accolade" text,
  "year" real,
  "rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank for an album after 1999 and an Accolade of the 100 greatest indie rock albums of all time?`:
```sql
                SELECT MIN("rank") FROM "accolades" WHERE "year">1999 AND "accolade"='the 100 greatest indie rock albums of all time';
```
## Task
Generate a SQL query to answer the following question:
`Which Week is on sunday november 28?`

### 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,
  "time_et" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Week is on sunday november 28?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "date"='sunday november 28';
```
## Task
Generate a SQL query to answer the following question:
`How many weeks have an Opponent of at new york giants?`

### 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,
  "time_et" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks have an Opponent of at new york giants?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "opponent"='at new york giants';
```
## Task
Generate a SQL query to answer the following question:
`When is the Opponent of new england patriots?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "time_et" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the Opponent of new england patriots?`:
```sql
                SELECT "time_et" FROM "schedule" WHERE "opponent"='new england patriots';
```
## Task
Generate a SQL query to answer the following question:
`Which week has a Result of w 23–6?`

### 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,
  "time_et" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week has a Result of w 23–6?`:
```sql
                SELECT "week" FROM "schedule" WHERE "result"='w 23–6';
```
## Task
Generate a SQL query to answer the following question:
`How many people did Mayor Olav Martin Vik preside over?`

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

CREATE TABLE "municipalities_of_midhordland" (
  "name" text,
  "innhabitants" real,
  "area" real,
  "mayor" text,
  "party" text,
  "municipal_code" real,
  "language_form" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people did Mayor Olav Martin Vik preside over?`:
```sql
                SELECT AVG("innhabitants") FROM "municipalities_of_midhordland" WHERE "mayor"='olav martin vik';
```
## Task
Generate a SQL query to answer the following question:
`What's the area of askøy, with a Municipal code less than 1247?`

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

CREATE TABLE "municipalities_of_midhordland" (
  "name" text,
  "innhabitants" real,
  "area" real,
  "mayor" text,
  "party" text,
  "municipal_code" real,
  "language_form" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the area of askøy, with a Municipal code less than 1247?`:
```sql
                SELECT SUM("area") FROM "municipalities_of_midhordland" WHERE "name"='askøy' AND "municipal_code"<1247;
```
## Task
Generate a SQL query to answer the following question:
`What Mayor is from the KRF Party?`

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

CREATE TABLE "municipalities_of_midhordland" (
  "name" text,
  "innhabitants" real,
  "area" real,
  "mayor" text,
  "party" text,
  "municipal_code" real,
  "language_form" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Mayor is from the KRF Party?`:
```sql
                SELECT "mayor" FROM "municipalities_of_midhordland" WHERE "party"='krf';
```
## Task
Generate a SQL query to answer the following question:
`What's the Municipal code of the FRP Party with an area of 100?`

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

CREATE TABLE "municipalities_of_midhordland" (
  "name" text,
  "innhabitants" real,
  "area" real,
  "mayor" text,
  "party" text,
  "municipal_code" real,
  "language_form" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Municipal code of the FRP Party with an area of 100?`:
```sql
                SELECT SUM("municipal_code") FROM "municipalities_of_midhordland" WHERE "party"='frp' AND "area"=100;
```
## Task
Generate a SQL query to answer the following question:
`How many people does the KRF Party preside over?`

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

CREATE TABLE "municipalities_of_midhordland" (
  "name" text,
  "innhabitants" real,
  "area" real,
  "mayor" text,
  "party" text,
  "municipal_code" real,
  "language_form" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people does the KRF Party preside over?`:
```sql
                SELECT AVG("innhabitants") FROM "municipalities_of_midhordland" WHERE "party"='krf';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of overall draft picks for player whose position is C and was picked after round 9?`

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

CREATE TABLE "1980_packers_draft_selections" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of overall draft picks for player whose position is C and was picked after round 9?`:
```sql
                SELECT COUNT("overall") FROM "1980_packers_draft_selections" WHERE "position"='c' AND "round">9;
```
## Task
Generate a SQL query to answer the following question:
`What position was Jafus White who was picked after round 1?`

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

CREATE TABLE "1980_packers_draft_selections" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position was Jafus White who was picked after round 1?`:
```sql
                SELECT "position" FROM "1980_packers_draft_selections" WHERE "round">1 AND "player"='jafus white';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of overall draft picks for Fred Nixon?`

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

CREATE TABLE "1980_packers_draft_selections" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of overall draft picks for Fred Nixon?`:
```sql
                SELECT COUNT("overall") FROM "1980_packers_draft_selections" WHERE "player"='fred nixon';
```
## Task
Generate a SQL query to answer the following question:
`Who is the athlete who was picked before round 9, had an overall draft pick after number 143 and plays the position of db?`

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

CREATE TABLE "1980_packers_draft_selections" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the athlete who was picked before round 9, had an overall draft pick after number 143 and plays the position of db?`:
```sql
                SELECT "player" FROM "1980_packers_draft_selections" WHERE "round"<9 AND "overall">143 AND "position"='db';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest round of the player with an overall of 152?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round of the player with an overall of 152?`:
```sql
                SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "overall"=152;
```
## Task
Generate a SQL query to answer the following question:
`What is the average round of the defensive back player with a pick # greater than 5 and an overall less than 152?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average round of the defensive back player with a pick # greater than 5 and an overall less than 152?`:
```sql
                SELECT AVG("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num">5 AND "position"='defensive back' AND "overall"<152;
```
## Task
Generate a SQL query to answer the following question:
`What is the average overall of John Ayres, who had a pick # greater than 4?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average overall of John Ayres, who had a pick # greater than 4?`:
```sql
                SELECT AVG("overall") FROM "atlanta_falcons_draft_history" WHERE "name"='john ayres' AND "pick_num">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player with a pick # less than 5 and an overall of 284?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player with a pick # less than 5 and an overall of 284?`:
```sql
                SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "pick_num"<5 AND "overall"=284;
```
## Task
Generate a SQL query to answer the following question:
`What is the average overall of Ken Whisenhunt, who has a pick # of 5?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average overall of Ken Whisenhunt, who has a pick # of 5?`:
```sql
                SELECT AVG("overall") FROM "atlanta_falcons_draft_history" WHERE "pick_num"=5 AND "name"='ken whisenhunt';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest pick # of John Ayres?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest pick # of John Ayres?`:
```sql
                SELECT MIN("pick_num") FROM "atlanta_falcons_draft_history" WHERE "name"='john ayres';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of team with Palmeiras 4-2 portuguesa as the last match?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "last_match" text,
  "replaced_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of team with Palmeiras 4-2 portuguesa as the last match?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "last_match"='palmeiras 4-2 portuguesa';
```
## Task
Generate a SQL query to answer the following question:
`What was the manner of departure replaced by tita?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "last_match" text,
  "replaced_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the manner of departure replaced by tita?`:
```sql
                SELECT "manner_of_departure" FROM "managerial_changes" WHERE "replaced_by"='tita';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the last match that had a sacked manner of departure and a geninho outgoing manner?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "last_match" text,
  "replaced_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the last match that had a sacked manner of departure and a geninho outgoing manner?`:
```sql
                SELECT "last_match" FROM "managerial_changes" WHERE "manner_of_departure"='sacked' AND "outgoing_manager"='geninho';
```
## Task
Generate a SQL query to answer the following question:
`What is the last match with a vacancy date of round 2 and Ney Franco as outgoing manager?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "last_match" text,
  "replaced_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the last match with a vacancy date of round 2 and Ney Franco as outgoing manager?`:
```sql
                SELECT "last_match" FROM "managerial_changes" WHERE "date_of_vacancy"='round 2' AND "outgoing_manager"='ney franco';
```
## Task
Generate a SQL query to answer the following question:
`What is the last match with a resigned manner of departure and a round 1 date of vacancy?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "last_match" text,
  "replaced_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the last match with a resigned manner of departure and a round 1 date of vacancy?`:
```sql
                SELECT "last_match" FROM "managerial_changes" WHERE "manner_of_departure"='resigned' AND "date_of_vacancy"='round 1';
```
## Task
Generate a SQL query to answer the following question:
`What was the issue date for the single with a Volume:Issue of 47:8-9?`

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

CREATE TABLE "see_also" (
  "volume_issue" text,
  "issue_date_s" text,
  "weeks_on_top" real,
  "song" text,
  "artist" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the issue date for the single with a Volume:Issue of 47:8-9?`:
```sql
                SELECT "issue_date_s" FROM "see_also" WHERE "volume_issue"='47:8-9';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest effic with an avg/g of 91.9?`

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

CREATE TABLE "passing" (
  "name" text,
  "gp_gs" text,
  "effic" real,
  "att_cmp_int" text,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest effic with an avg/g of 91.9?`:
```sql
                SELECT MAX("effic") FROM "passing" WHERE "avg_g"=91.9;
```
## Task
Generate a SQL query to answer the following question:
`What is the att-cmp-int with an effic smaller than 117.88 and a gp-gs of 10-0?`

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

CREATE TABLE "passing" (
  "name" text,
  "gp_gs" text,
  "effic" real,
  "att_cmp_int" text,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the att-cmp-int with an effic smaller than 117.88 and a gp-gs of 10-0?`:
```sql
                SELECT "att_cmp_int" FROM "passing" WHERE "effic"<117.88 AND "gp_gs"='10-0';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum avg/g with an effic of 858.4?`

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

CREATE TABLE "passing" (
  "name" text,
  "gp_gs" text,
  "effic" real,
  "att_cmp_int" text,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum avg/g with an effic of 858.4?`:
```sql
                SELECT SUM("avg_g") FROM "passing" WHERE "effic"=858.4;
```
## Task
Generate a SQL query to answer the following question:
`What is the mascot for the school in 32 Hendricks County?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "mascot" text,
  "location" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mascot for the school in 32 Hendricks County?`:
```sql
                SELECT "mascot" FROM "indiana_high_school_athletics_conference" WHERE "county"='32 hendricks';
```