cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the catalog with an LP Format and under the Simply Vinyl label?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "format" text,
  "country" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the catalog with an LP Format and under the Simply Vinyl label?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "format"='lp' AND "label"='simply vinyl';
```
## Task
Generate a SQL query to answer the following question:
`What date had a CD format, under Columbia/Legacy from the UK?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "format" text,
  "country" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date had a CD format, under Columbia/Legacy from the UK?`:
```sql
                SELECT "date" FROM "release_history" WHERE "format"='cd' AND "label"='columbia/legacy' AND "country"='uk';
```
## Task
Generate a SQL query to answer the following question:
`What country has an LP format, catalog s 31503?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "format" text,
  "country" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has an LP format, catalog s 31503?`:
```sql
                SELECT "country" FROM "release_history" WHERE "format"='lp' AND "catalog"='s 31503';
```
## Task
Generate a SQL query to answer the following question:
`What is the format for Catalog CL 2372?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "format" text,
  "country" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the format for Catalog CL 2372?`:
```sql
                SELECT "format" FROM "release_history" WHERE "catalog"='cl 2372';
```
## Task
Generate a SQL query to answer the following question:
`What event has european championships as the tournament, with 2006 as the year?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "event" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event has european championships as the tournament, with 2006 as the year?`:
```sql
                SELECT "event" FROM "achievements" WHERE "tournament"='european championships' AND "year"=2006;
```
## Task
Generate a SQL query to answer the following question:
`What average year has international meeting & national championships as the tournament?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "event" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What average year has international meeting & national championships as the tournament?`:
```sql
                SELECT AVG("year") FROM "achievements" WHERE "tournament"='international meeting & national championships';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest year that has hypo-meeting as the tournament, with 8002 as the points?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "event" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest year that has hypo-meeting as the tournament, with 8002 as the points?`:
```sql
                SELECT MIN("year") FROM "achievements" WHERE "tournament"='hypo-meeting' AND "points"='8002';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in the match that lasted 4:17?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in the match that lasted 4:17?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='4:17';
```
## Task
Generate a SQL query to answer the following question:
`Where was the match that lasted less than 3 rounds and was won by submission (triangle choke)?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the match that lasted less than 3 rounds and was won by submission (triangle choke)?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "round"<3 AND "method"='submission (triangle choke)';
```
## Task
Generate a SQL query to answer the following question:
`Which event had Carlos Alexandre Pereira as opponent?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event had Carlos Alexandre Pereira as opponent?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='carlos alexandre pereira';
```
## Task
Generate a SQL query to answer the following question:
`Where was the match that resulted in a win in 4:16 held?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the match that resulted in a win in 4:16 held?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "time"='4:16';
```
## Task
Generate a SQL query to answer the following question:
`What's the population that has a median family income of $50,553?`

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

CREATE TABLE "texas_counties_ranked_by_per_capita_inco" (
  "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's the population that has a median family income of $50,553?`:
```sql
                SELECT COUNT("population") FROM "texas_counties_ranked_by_per_capita_inco" WHERE "median_family_income"='$50,553';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank for the team of egypt?`

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

CREATE TABLE "heat_6" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank for the team of egypt?`:
```sql
                SELECT MAX("rank") FROM "heat_6" WHERE "country"='egypt';
```
## Task
Generate a SQL query to answer the following question:
`Who was the athlete from egypt with q in the notes?`

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

CREATE TABLE "heat_6" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the athlete from egypt with q in the notes?`:
```sql
                SELECT "athlete" FROM "heat_6" WHERE "notes"='q' AND "country"='egypt';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2FM for SW Ireland?`

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

CREATE TABLE "main_sites" (
  "transmitter" text,
  "service_area" text,
  "radio_1_m_hz" real,
  "2_fm_m_hz" text,
  "rna_g_m_hz" text,
  "lyric_fm_m_hz" text,
  "erp_k_w" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2FM for SW Ireland?`:
```sql
                SELECT "2_fm_m_hz" FROM "main_sites" WHERE "service_area"='sw ireland';
```
## Task
Generate a SQL query to answer the following question:
`Name Event of Medal of gold and a Name of duncan white?`

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

CREATE TABLE "list_of_medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name Event of Medal of gold and a Name of duncan white?`:
```sql
                SELECT "event" FROM "list_of_medalists" WHERE "medal"='gold' AND "name"='duncan white';
```
## Task
Generate a SQL query to answer the following question:
`Name the Event of the Games of 1950 auckland and a Medal of bronze?`

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

CREATE TABLE "list_of_medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Event of the Games of 1950 auckland and a Medal of bronze?`:
```sql
                SELECT "event" FROM "list_of_medalists" WHERE "games"='1950 auckland' AND "medal"='bronze';
```
## Task
Generate a SQL query to answer the following question:
`Which Medal has a Name of alex obeyesekera?`

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

CREATE TABLE "list_of_medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Medal has a Name of alex obeyesekera?`:
```sql
                SELECT "medal" FROM "list_of_medalists" WHERE "name"='alex obeyesekera';
```
## Task
Generate a SQL query to answer the following question:
`Which Event has a Medal of gold and a Name of barney henricus?`

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

CREATE TABLE "list_of_medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Event has a Medal of gold and a Name of barney henricus?`:
```sql
                SELECT "event" FROM "list_of_medalists" WHERE "medal"='gold' AND "name"='barney henricus';
```
## Task
Generate a SQL query to answer the following question:
`Name the Event of sudesh peiris?`

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

CREATE TABLE "list_of_medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Event of sudesh peiris?`:
```sql
                SELECT "event" FROM "list_of_medalists" WHERE "name"='sudesh peiris';
```
## Task
Generate a SQL query to answer the following question:
`What year was the developer(s) Bioware?`

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

CREATE TABLE "game_trailers" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the developer(s) Bioware?`:
```sql
                SELECT AVG("year") FROM "game_trailers" WHERE "developer_s"='bioware';
```
## Task
Generate a SQL query to answer the following question:
`What is the genre for 2009 on Playstation 3?`

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

CREATE TABLE "game_trailers" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the genre for 2009 on Playstation 3?`:
```sql
                SELECT "genre" FROM "game_trailers" WHERE "year">2009 AND "platform_s"='playstation 3';
```
## Task
Generate a SQL query to answer the following question:
`Which result has a recipients and nominees of outstanding achievement in drama with 1995 as the year?`

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

CREATE TABLE "writers_guild_of_america" (
  "year" real,
  "category" text,
  "recipients_and_nominees" text,
  "role_episode" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which result has a recipients and nominees of outstanding achievement in drama with 1995 as the year?`:
```sql
                SELECT "result" FROM "writers_guild_of_america" WHERE "recipients_and_nominees"='outstanding achievement in drama' AND "year"=1995;
```
## Task
Generate a SQL query to answer the following question:
`What recipients and nominees have outstanding achievement in drama as the category with 1994 as the year?`

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

CREATE TABLE "writers_guild_of_america" (
  "year" real,
  "category" text,
  "recipients_and_nominees" text,
  "role_episode" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What recipients and nominees have outstanding achievement in drama as the category with 1994 as the year?`:
```sql
                SELECT "recipients_and_nominees" FROM "writers_guild_of_america" WHERE "category"='outstanding achievement in drama' AND "year"=1994;
```
## Task
Generate a SQL query to answer the following question:
`What result has outstanding achievement in drama, as the role/episode with a year prior to 1995?`

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

CREATE TABLE "writers_guild_of_america" (
  "year" real,
  "category" text,
  "recipients_and_nominees" text,
  "role_episode" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What result has outstanding achievement in drama, as the role/episode with a year prior to 1995?`:
```sql
                SELECT "result" FROM "writers_guild_of_america" WHERE "role_episode"='outstanding achievement in drama' AND "year"<1995;
```
## Task
Generate a SQL query to answer the following question:
`What is the total for Danny Pinheiro Rodrigues ( fra ), in a Position smaller than 7?`

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

CREATE TABLE "qualified_competitors" (
  "position" real,
  "gymnast" text,
  "a_score" real,
  "b_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for Danny Pinheiro Rodrigues ( fra ), in a Position smaller than 7?`:
```sql
                SELECT AVG("total") FROM "qualified_competitors" WHERE "gymnast"='danny pinheiro rodrigues ( fra )' AND "position"<7;
```
## Task
Generate a SQL query to answer the following question:
`What is the total for Chen Yibing ( chn ), when his B Score was smaller than 9.225?`

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

CREATE TABLE "qualified_competitors" (
  "position" real,
  "gymnast" text,
  "a_score" real,
  "b_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for Chen Yibing ( chn ), when his B Score was smaller than 9.225?`:
```sql
                SELECT COUNT("total") FROM "qualified_competitors" WHERE "gymnast"='chen yibing ( chn )' AND "b_score"<9.225;
```
## Task
Generate a SQL query to answer the following question:
`What is the A Score when the B Score is more than 9.05, and the total is less than 16.525?`

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

CREATE TABLE "qualified_competitors" (
  "position" real,
  "gymnast" text,
  "a_score" real,
  "b_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the A Score when the B Score is more than 9.05, and the total is less than 16.525?`:
```sql
                SELECT COUNT("a_score") FROM "qualified_competitors" WHERE "b_score">9.05 AND "total"<16.525;
```
## Task
Generate a SQL query to answer the following question:
`What is the position for Oleksandr Vorobiov ( ukr ), when the total was larger than 16.25?`

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

CREATE TABLE "qualified_competitors" (
  "position" real,
  "gymnast" text,
  "a_score" real,
  "b_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position for Oleksandr Vorobiov ( ukr ), when the total was larger than 16.25?`:
```sql
                SELECT COUNT("position") FROM "qualified_competitors" WHERE "gymnast"='oleksandr vorobiov ( ukr )' AND "total">16.25;
```
## Task
Generate a SQL query to answer the following question:
`What is the total for Robert Stanescu ( rou ), when the B Score is larger than 8.75?`

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

CREATE TABLE "qualified_competitors" (
  "position" real,
  "gymnast" text,
  "a_score" real,
  "b_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for Robert Stanescu ( rou ), when the B Score is larger than 8.75?`:
```sql
                SELECT SUM("total") FROM "qualified_competitors" WHERE "gymnast"='robert stanescu ( rou )' AND "b_score">8.75;
```
## Task
Generate a SQL query to answer the following question:
`Poland has what notes?`

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

CREATE TABLE "repechage" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Poland has what notes?`:
```sql
                SELECT "notes" FROM "repechage" WHERE "country"='poland';
```
## Task
Generate a SQL query to answer the following question:
`What is Croatia's rank?`

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

CREATE TABLE "repechage" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Croatia's rank?`:
```sql
                SELECT "rank" FROM "repechage" WHERE "country"='croatia';
```
## Task
Generate a SQL query to answer the following question:
`When rank is 5, what is the rowers?`

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

CREATE TABLE "repechage" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `When rank is 5, what is the rowers?`:
```sql
                SELECT "rowers" FROM "repechage" WHERE "rank"=5;
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank for Denmark?`

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

CREATE TABLE "repechage" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank for Denmark?`:
```sql
                SELECT AVG("rank") FROM "repechage" WHERE "country"='denmark';
```
## Task
Generate a SQL query to answer the following question:
`What is the end of the term for Kadima that started on 18 January 2006?`

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

CREATE TABLE "list_of_housing_and_construction_ministe" (
  "minister" text,
  "party" text,
  "governments" text,
  "term_start" text,
  "term_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the end of the term for Kadima that started on 18 January 2006?`:
```sql
                SELECT "term_end" FROM "list_of_housing_and_construction_ministe" WHERE "party"='kadima' AND "term_start"='18 january 2006';
```
## Task
Generate a SQL query to answer the following question:
`Whose term started on 4 May 2006?`

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

CREATE TABLE "list_of_housing_and_construction_ministe" (
  "minister" text,
  "party" text,
  "governments" text,
  "term_start" text,
  "term_end" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whose term started on 4 May 2006?`:
```sql
                SELECT "minister" FROM "list_of_housing_and_construction_ministe" WHERE "term_start"='4 may 2006';
```
## Task
Generate a SQL query to answer the following question:
`Which 2005/ 06 has a 2006/ 07 of ur?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2005/ 06 has a 2006/ 07 of ur?`:
```sql
                SELECT "2005_06" FROM "performance_and_rankings_timeline" WHERE "2006_07"='ur';
```
## Task
Generate a SQL query to answer the following question:
`Which 2005/ 06 has a 2011/ 12 of ranking tournaments`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2005/ 06 has a 2011/ 12 of ranking tournaments`:
```sql
                SELECT "2005_06" FROM "performance_and_rankings_timeline" WHERE "2011_12"='ranking tournaments';
```
## Task
Generate a SQL query to answer the following question:
`Which the 2007/ 08 has a 2006/ 07 of 1r?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which the 2007/ 08 has a 2006/ 07 of 1r?`:
```sql
                SELECT "2007_08" FROM "performance_and_rankings_timeline" WHERE "2006_07"='1r';
```
## Task
Generate a SQL query to answer the following question:
`Which 2010/ 11 has a 2011/ 12 of wr?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2010/ 11 has a 2011/ 12 of wr?`:
```sql
                SELECT "2010_11" FROM "performance_and_rankings_timeline" WHERE "2011_12"='wr';
```
## Task
Generate a SQL query to answer the following question:
`Which in 2007/ 08 has a 2009/ 10 of non-ranking?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which in 2007/ 08 has a 2009/ 10 of non-ranking?`:
```sql
                SELECT "2007_08" FROM "performance_and_rankings_timeline" WHERE "2009_10"='non-ranking';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2010/ 11 which has a 2006/ 07 of not held, and a 2011/ 12 of a, and a 2012/ 13 of a?`

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

CREATE TABLE "performance_and_rankings_timeline" (
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2010/ 11 which has a 2006/ 07 of not held, and a 2011/ 12 of a, and a 2012/ 13 of a?`:
```sql
                SELECT "2010_11" FROM "performance_and_rankings_timeline" WHERE "2006_07"='not held' AND "2011_12"='a' AND "2012_13"='a';
```
## Task
Generate a SQL query to answer the following question:
`What's the number of bronze when they are ranked 29, had a total more than 3 and less than 2 golds?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of bronze when they are ranked 29, had a total more than 3 and less than 2 golds?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "gold"<2 AND "rank"='29' AND "total">3;
```
## Task
Generate a SQL query to answer the following question:
`What's the bronze medal count for Rank 33 when the silver count was less than 2 and the total was more than 4?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the bronze medal count for Rank 33 when the silver count was less than 2 and the total was more than 4?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "silver"<2 AND "total">4 AND "rank"='33';
```
## Task
Generate a SQL query to answer the following question:
`How many silver for rank 22 when gold count was more than 0 and Bronze count was less than 5?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many silver for rank 22 when gold count was more than 0 and Bronze count was less than 5?`:
```sql
                SELECT SUM("silver") FROM "medal_table" WHERE "bronze"<5 AND "gold">0 AND "rank"='22';
```
## Task
Generate a SQL query to answer the following question:
`What's the bronze count for South Africa (RSA) with a total more than 16?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the bronze count for South Africa (RSA) with a total more than 16?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "nation"='south africa (rsa)' AND "total">16;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest election result for President Leonardo Marras with an area smaller than 227,063 people?`

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

CREATE TABLE "provinces" (
  "province" text,
  "inhabitants" real,
  "established" real,
  "president" text,
  "party" text,
  "election" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest election result for President Leonardo Marras with an area smaller than 227,063 people?`:
```sql
                SELECT MIN("election") FROM "provinces" WHERE "president"='leonardo marras' AND "inhabitants"<'227,063';
```
## Task
Generate a SQL query to answer the following question:
`What is the party affiliation for President Stefano Baccelli?`

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

CREATE TABLE "provinces" (
  "province" text,
  "inhabitants" real,
  "established" real,
  "president" text,
  "party" text,
  "election" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the party affiliation for President Stefano Baccelli?`:
```sql
                SELECT "party" FROM "provinces" WHERE "president"='stefano baccelli';
```
## Task
Generate a SQL query to answer the following question:
`What is the average election result for the province of Grosseto from 1766 and prior?`

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

CREATE TABLE "provinces" (
  "province" text,
  "inhabitants" real,
  "established" real,
  "president" text,
  "party" text,
  "election" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average election result for the province of Grosseto from 1766 and prior?`:
```sql
                SELECT AVG("election") FROM "provinces" WHERE "province"='grosseto' AND "established"<1766;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of all bills co-sponsored associated with all amendments sponsored under 15, all bills sponsored of 6, and 0 amendments cosponsored?`

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

CREATE TABLE "legislation_sponsored_by_john_mc_cain" (
  "years_covered" text,
  "all_bills_sponsored" real,
  "all_amendments_sponsored" real,
  "all_bills_cosponsored" real,
  "all_amendments_cosponsored" real,
  "bills_originally_cosponsored" real,
  "amendments_originally_cosponsored" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of all bills co-sponsored associated with all amendments sponsored under 15, all bills sponsored of 6, and 0 amendments cosponsored?`:
```sql
                SELECT COUNT("all_bills_cosponsored") FROM "legislation_sponsored_by_john_mc_cain" WHERE "all_amendments_sponsored"<15 AND "all_bills_sponsored"=6 AND "all_amendments_cosponsored"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest amendments sponsored associated with 150 bills originally cosponsored and over 247 bills cosponsored?`

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

CREATE TABLE "legislation_sponsored_by_john_mc_cain" (
  "years_covered" text,
  "all_bills_sponsored" real,
  "all_amendments_sponsored" real,
  "all_bills_cosponsored" real,
  "all_amendments_cosponsored" real,
  "bills_originally_cosponsored" real,
  "amendments_originally_cosponsored" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest amendments sponsored associated with 150 bills originally cosponsored and over 247 bills cosponsored?`:
```sql
                SELECT MIN("all_amendments_sponsored") FROM "legislation_sponsored_by_john_mc_cain" WHERE "bills_originally_cosponsored"=150 AND "all_bills_cosponsored">247;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of bills cosponsored associated with under 24 bills sponsored and under 16 amendments sponsored?`

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

CREATE TABLE "legislation_sponsored_by_john_mc_cain" (
  "years_covered" text,
  "all_bills_sponsored" real,
  "all_amendments_sponsored" real,
  "all_bills_cosponsored" real,
  "all_amendments_cosponsored" real,
  "bills_originally_cosponsored" real,
  "amendments_originally_cosponsored" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of bills cosponsored associated with under 24 bills sponsored and under 16 amendments sponsored?`:
```sql
                SELECT MAX("all_bills_cosponsored") FROM "legislation_sponsored_by_john_mc_cain" WHERE "all_bills_sponsored"<24 AND "all_amendments_sponsored"<16;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of amendments cosponsored associated with 53 amendments originally cosponsored and over 54 bills sponsored?`

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

CREATE TABLE "legislation_sponsored_by_john_mc_cain" (
  "years_covered" text,
  "all_bills_sponsored" real,
  "all_amendments_sponsored" real,
  "all_bills_cosponsored" real,
  "all_amendments_cosponsored" real,
  "bills_originally_cosponsored" real,
  "amendments_originally_cosponsored" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of amendments cosponsored associated with 53 amendments originally cosponsored and over 54 bills sponsored?`:
```sql
                SELECT MAX("all_amendments_cosponsored") FROM "legislation_sponsored_by_john_mc_cain" WHERE "amendments_originally_cosponsored"=53 AND "all_bills_sponsored">54;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of bills sponsored associated with over 113 bills originally cosponsored and under 47 amendments cosponsored?`

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

CREATE TABLE "legislation_sponsored_by_john_mc_cain" (
  "years_covered" text,
  "all_bills_sponsored" real,
  "all_amendments_sponsored" real,
  "all_bills_cosponsored" real,
  "all_amendments_cosponsored" real,
  "bills_originally_cosponsored" real,
  "amendments_originally_cosponsored" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of bills sponsored associated with over 113 bills originally cosponsored and under 47 amendments cosponsored?`:
```sql
                SELECT "all_bills_sponsored" FROM "legislation_sponsored_by_john_mc_cain" WHERE "bills_originally_cosponsored">113 AND "all_amendments_cosponsored"<47;
```
## Task
Generate a SQL query to answer the following question:
`What is the Lane of the swimmer from Uzbekistan in Heat 1?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Lane of the swimmer from Uzbekistan in Heat 1?`:
```sql
                SELECT COUNT("lane") FROM "heats" WHERE "heat"=1 AND "nationality"='uzbekistan';
```
## Task
Generate a SQL query to answer the following question:
`Which station has a frequency of 873khz?`

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

CREATE TABLE "list_of_radio_stations_in_malaysia" (
  "frequency" text,
  "station" text,
  "operator" text,
  "country_of_origin" text,
  "transmitter_location" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which station has a frequency of 873khz?`:
```sql
                SELECT "station" FROM "list_of_radio_stations_in_malaysia" WHERE "frequency"='873khz';
```
## Task
Generate a SQL query to answer the following question:
`Where is the transmitter located for the station voice of vietnam`

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

CREATE TABLE "list_of_radio_stations_in_malaysia" (
  "frequency" text,
  "station" text,
  "operator" text,
  "country_of_origin" text,
  "transmitter_location" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the transmitter located for the station voice of vietnam`:
```sql
                SELECT "transmitter_location" FROM "list_of_radio_stations_in_malaysia" WHERE "station"='voice of vietnam';
```
## Task
Generate a SQL query to answer the following question:
`Which station is from China and has a frequency of 684khz?`

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

CREATE TABLE "list_of_radio_stations_in_malaysia" (
  "frequency" text,
  "station" text,
  "operator" text,
  "country_of_origin" text,
  "transmitter_location" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which station is from China and has a frequency of 684khz?`:
```sql
                SELECT "station" FROM "list_of_radio_stations_in_malaysia" WHERE "country_of_origin"='china' AND "frequency"='684khz';
```
## Task
Generate a SQL query to answer the following question:
`Name the Tally of an Opposition of westmeath?`

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

CREATE TABLE "single_game" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "opposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Tally of an Opposition of westmeath?`:
```sql
                SELECT "tally" FROM "single_game" WHERE "opposition"='westmeath';
```
## Task
Generate a SQL query to answer the following question:
`What is the horizontal bar score with a pommel horse of n/a, and the position is less than 27, and the parallel bars score is 15.800?`

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

CREATE TABLE "individuals" (
  "position" real,
  "gymnast" text,
  "floor" text,
  "pommel_horse" text,
  "rings" text,
  "vault" text,
  "parallel_bars" text,
  "horizontal_bar" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the horizontal bar score with a pommel horse of n/a, and the position is less than 27, and the parallel bars score is 15.800?`:
```sql
                SELECT "horizontal_bar" FROM "individuals" WHERE "pommel_horse"='n/a' AND "position"<27 AND "parallel_bars"='15.800';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the floor when the position is less than 21, and less than 81.2 total, and the pommel horse score is 13.925?`

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

CREATE TABLE "individuals" (
  "position" real,
  "gymnast" text,
  "floor" text,
  "pommel_horse" text,
  "rings" text,
  "vault" text,
  "parallel_bars" text,
  "horizontal_bar" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the floor when the position is less than 21, and less than 81.2 total, and the pommel horse score is 13.925?`:
```sql
                SELECT "floor" FROM "individuals" WHERE "position"<21 AND "total"<81.2 AND "pommel_horse"='13.925';
```
## Task
Generate a SQL query to answer the following question:
`Who is the gymnast with a floor score of 14.800?`

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

CREATE TABLE "individuals" (
  "position" real,
  "gymnast" text,
  "floor" text,
  "pommel_horse" text,
  "rings" text,
  "vault" text,
  "parallel_bars" text,
  "horizontal_bar" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the gymnast with a floor score of 14.800?`:
```sql
                SELECT "gymnast" FROM "individuals" WHERE "floor"='14.800';
```
## Task
Generate a SQL query to answer the following question:
`What horizontal bar score also has a pommel horse score of 15.250?`

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

CREATE TABLE "individuals" (
  "position" real,
  "gymnast" text,
  "floor" text,
  "pommel_horse" text,
  "rings" text,
  "vault" text,
  "parallel_bars" text,
  "horizontal_bar" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What horizontal bar score also has a pommel horse score of 15.250?`:
```sql
                SELECT "horizontal_bar" FROM "individuals" WHERE "pommel_horse"='15.250';
```
## Task
Generate a SQL query to answer the following question:
`With a parallel bars score of 14.625 what is the average total?`

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

CREATE TABLE "individuals" (
  "position" real,
  "gymnast" text,
  "floor" text,
  "pommel_horse" text,
  "rings" text,
  "vault" text,
  "parallel_bars" text,
  "horizontal_bar" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `With a parallel bars score of 14.625 what is the average total?`:
```sql
                SELECT AVG("total") FROM "individuals" WHERE "parallel_bars"='14.625';
```
## Task
Generate a SQL query to answer the following question:
`What is the Rank of the Athletes with a Time of 3:43.491?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "athletes" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rank of the Athletes with a Time of 3:43.491?`:
```sql
                SELECT COUNT("rank") FROM "heat_1" WHERE "time"='3:43.491';
```
## Task
Generate a SQL query to answer the following question:
`What are the Notes of the Athletes from Germany?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "athletes" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Notes of the Athletes from Germany?`:
```sql
                SELECT "notes" FROM "heat_1" WHERE "country"='germany';
```
## Task
Generate a SQL query to answer the following question:
`What is the Rank of the Athletes from Ukraine?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "athletes" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rank of the Athletes from Ukraine?`:
```sql
                SELECT COUNT("rank") FROM "heat_1" WHERE "country"='ukraine';
```
## Task
Generate a SQL query to answer the following question:
`What location did Sherry Middaugh win in?`

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

CREATE TABLE "winners" (
  "event" text,
  "date" text,
  "location" text,
  "winning_skip" text,
  "runner_up_skip" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location did Sherry Middaugh win in?`:
```sql
                SELECT "location" FROM "winners" WHERE "winning_skip"='sherry middaugh';
```
## Task
Generate a SQL query to answer the following question:
`What event did Patti Lank have the winning skip?`

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

CREATE TABLE "winners" (
  "event" text,
  "date" text,
  "location" text,
  "winning_skip" text,
  "runner_up_skip" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event did Patti Lank have the winning skip?`:
```sql
                SELECT "event" FROM "winners" WHERE "winning_skip"='patti lank';
```
## Task
Generate a SQL query to answer the following question:
`What date shows Binia Feltscher-Beeli as the runner-up skip?`

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

CREATE TABLE "winners" (
  "event" text,
  "date" text,
  "location" text,
  "winning_skip" text,
  "runner_up_skip" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date shows Binia Feltscher-Beeli as the runner-up skip?`:
```sql
                SELECT "date" FROM "winners" WHERE "runner_up_skip"='binia feltscher-beeli';
```
## Task
Generate a SQL query to answer the following question:
`What person was the runner-up skip when Julie Reddick was the winning skip?`

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

CREATE TABLE "winners" (
  "event" text,
  "date" text,
  "location" text,
  "winning_skip" text,
  "runner_up_skip" text
);
### SQL
Given the database schema, here is the SQL query that answers `What person was the runner-up skip when Julie Reddick was the winning skip?`:
```sql
                SELECT "runner_up_skip" FROM "winners" WHERE "winning_skip"='julie reddick';
```
## Task
Generate a SQL query to answer the following question:
`What's the Yellow fertility rate when Brazil is 0,43407?`

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

CREATE TABLE "total_fertility_rate" (
  "brazil_100pct" text,
  "white_47_73pct" text,
  "black_7_61pct" text,
  "yellow_1_09pct" text,
  "brown_multiracial_43_13pct" text,
  "indians_0_43pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Yellow fertility rate when Brazil is 0,43407?`:
```sql
                SELECT "yellow_1_09pct" FROM "total_fertility_rate" WHERE "brazil_100pct"='0,43407';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the area in km with a population of 110 in 2011?`

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

CREATE TABLE "list" (
  "name" text,
  "type" text,
  "population_2011" real,
  "population_2006" real,
  "area_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the area in km with a population of 110 in 2011?`:
```sql
                SELECT SUM("area_km_2") FROM "list" WHERE "population_2011"=110;
```
## Task
Generate a SQL query to answer the following question:
`What is the average population in 2006 that has more than 5 people in 2011 and an area 5.84km?`

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

CREATE TABLE "list" (
  "name" text,
  "type" text,
  "population_2011" real,
  "population_2006" real,
  "area_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average population in 2006 that has more than 5 people in 2011 and an area 5.84km?`:
```sql
                SELECT AVG("population_2006") FROM "list" WHERE "population_2011">5 AND "area_km_2"=5.84;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest lane with a 0.216 react?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest lane with a 0.216 react?`:
```sql
                SELECT MIN("lane") FROM "semifinal_2" WHERE "react"=0.216;
```