cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What's the name of the person in the CF Pos?`

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

CREATE TABLE "current_roster" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "2012_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of the person in the CF Pos?`:
```sql
                SELECT "name" FROM "current_roster" WHERE "pos"='cf';
```
## Task
Generate a SQL query to answer the following question:
`Which league cup apps has FA as the cup apps of 5?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which league cup apps has FA as the cup apps of 5?`:
```sql
                SELECT "league_cup_apps" FROM "appearances_and_goals" WHERE "fa_cup_apps"='5';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest league goals that has fw as the position, total goals greater than 9, with league cup goals greater than 4?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest league goals that has fw as the position, total goals greater than 9, with league cup goals greater than 4?`:
```sql
                SELECT MIN("league_goals") FROM "appearances_and_goals" WHERE "position"='fw' AND "total_goals">9 AND "league_cup_goals">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year that a team event was included at Vilamoura, Portugal?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year that a team event was included at Vilamoura, Portugal?`:
```sql
                SELECT MIN("year") FROM "achievements" WHERE "event"='team' AND "venue"='vilamoura, portugal';
```
## Task
Generate a SQL query to answer the following question:
`In which event before 2001 did the athlete place 16th?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `In which event before 2001 did the athlete place 16th?`:
```sql
                SELECT "event" FROM "achievements" WHERE "year"<2001 AND "result"='16th';
```
## Task
Generate a SQL query to answer the following question:
`In which tournament was the result 25th?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `In which tournament was the result 25th?`:
```sql
                SELECT "tournament" FROM "achievements" WHERE "result"='25th';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of points for the song "viva rock 'n' roll", with more than 3 Draws?`

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

CREATE TABLE "national_final_28_march_1992" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of points for the song "viva rock 'n' roll", with more than 3 Draws?`:
```sql
                SELECT AVG("points") FROM "national_final_28_march_1992" WHERE "song"='\"viva rock ''n'' roll\"' AND "draw">3;
```
## Task
Generate a SQL query to answer the following question:
`What artist has more than 6 draws, and in a place higher than 14?`

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

CREATE TABLE "national_final_28_march_1992" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What artist has more than 6 draws, and in a place higher than 14?`:
```sql
                SELECT "artist" FROM "national_final_28_march_1992" WHERE "draw">6 AND "place">14;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Place with more than 3 draws, for the Song "dajana", with less than 31 points?`

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

CREATE TABLE "national_final_28_march_1992" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Place with more than 3 draws, for the Song "dajana", with less than 31 points?`:
```sql
                SELECT MAX("place") FROM "national_final_28_march_1992" WHERE "draw">3 AND "song"='\"dajana\"' AND "points"<31;
```
## Task
Generate a SQL query to answer the following question:
`What Social Democratic has a Democratic and Social Centre of 10.0% 22 seats?`

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

CREATE TABLE "125_seats_needed_for_a_majority" (
  "date_released" text,
  "institute" text,
  "social_democratic" text,
  "socialist" text,
  "green_communist" text,
  "democratic_renewal" text,
  "democratic_and_social_centre" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Social Democratic has a Democratic and Social Centre of 10.0% 22 seats?`:
```sql
                SELECT "social_democratic" FROM "125_seats_needed_for_a_majority" WHERE "democratic_and_social_centre"='10.0% 22 seats';
```
## Task
Generate a SQL query to answer the following question:
`What Social Democratic has the Democratic and Social Centre of 4.4% 4 seats?`

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

CREATE TABLE "125_seats_needed_for_a_majority" (
  "date_released" text,
  "institute" text,
  "social_democratic" text,
  "socialist" text,
  "green_communist" text,
  "democratic_renewal" text,
  "democratic_and_social_centre" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Social Democratic has the Democratic and Social Centre of 4.4% 4 seats?`:
```sql
                SELECT "social_democratic" FROM "125_seats_needed_for_a_majority" WHERE "democratic_and_social_centre"='4.4% 4 seats';
```
## Task
Generate a SQL query to answer the following question:
`How many teams were at the 2007 details tournament where there a top goalscorer was not awarded?`

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

CREATE TABLE "yearly_basis" (
  "year" text,
  "location" text,
  "number_of_teams" text,
  "player_of_the_tournament" text,
  "top_goalscorer_s" text,
  "best_goalkeeper" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams were at the 2007 details tournament where there a top goalscorer was not awarded?`:
```sql
                SELECT "number_of_teams" FROM "yearly_basis" WHERE "top_goalscorer_s"='not awarded' AND "year"='2007 details';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the tournament where the best goalkeeper had 164 (8.2)?`

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

CREATE TABLE "yearly_basis" (
  "year" text,
  "location" text,
  "number_of_teams" text,
  "player_of_the_tournament" text,
  "top_goalscorer_s" text,
  "best_goalkeeper" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the tournament where the best goalkeeper had 164 (8.2)?`:
```sql
                SELECT "location" FROM "yearly_basis" WHERE "best_goalkeeper"='164 (8.2)';
```
## Task
Generate a SQL query to answer the following question:
`What section were they in when there were tier 2 in 1996?`

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

CREATE TABLE "season_to_season" (
  "season" real,
  "level" text,
  "division" text,
  "section" text,
  "administration" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What section were they in when there were tier 2 in 1996?`:
```sql
                SELECT "section" FROM "season_to_season" WHERE "level"='tier 2' AND "season"=1996;
```
## Task
Generate a SQL query to answer the following question:
`What is the administration when the division was Ykkönen (first division), and they were in the 1st position in 1996?`

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

CREATE TABLE "season_to_season" (
  "season" real,
  "level" text,
  "division" text,
  "section" text,
  "administration" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the administration when the division was Ykkönen (first division), and they were in the 1st position in 1996?`:
```sql
                SELECT "administration" FROM "season_to_season" WHERE "division"='ykkönen (first division)' AND "position"='1st' AND "season"=1996;
```
## Task
Generate a SQL query to answer the following question:
`What was the film title that emma thompson was the actress nominated for best supporting actress?`

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

CREATE TABLE "nominees" (
  "year_ceremony" text,
  "actor_actress" text,
  "category" text,
  "film_title_used_in_nomination" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the film title that emma thompson was the actress nominated for best supporting actress?`:
```sql
                SELECT "film_title_used_in_nomination" FROM "nominees" WHERE "actor_actress"='emma thompson' AND "category"='best supporting actress';
```
## Task
Generate a SQL query to answer the following question:
`What category was al pacino nominated for in the film, glengarry glen ross?`

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

CREATE TABLE "nominees" (
  "year_ceremony" text,
  "actor_actress" text,
  "category" text,
  "film_title_used_in_nomination" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What category was al pacino nominated for in the film, glengarry glen ross?`:
```sql
                SELECT "category" FROM "nominees" WHERE "actor_actress"='al pacino' AND "film_title_used_in_nomination"='glengarry glen ross';
```
## Task
Generate a SQL query to answer the following question:
`What is the year when sigourney weaver was nominated for best actress?`

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

CREATE TABLE "nominees" (
  "year_ceremony" text,
  "actor_actress" text,
  "category" text,
  "film_title_used_in_nomination" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year when sigourney weaver was nominated for best actress?`:
```sql
                SELECT "year_ceremony" FROM "nominees" WHERE "category"='best actress' AND "actor_actress"='sigourney weaver';
```
## Task
Generate a SQL query to answer the following question:
`What year was holly hunter a nominee?`

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

CREATE TABLE "nominees" (
  "year_ceremony" text,
  "actor_actress" text,
  "category" text,
  "film_title_used_in_nomination" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was holly hunter a nominee?`:
```sql
                SELECT "year_ceremony" FROM "nominees" WHERE "result"='nominee' AND "actor_actress"='holly hunter';
```
## Task
Generate a SQL query to answer the following question:
`What is the per capita income of the county with a median family income of $40,492?`

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

CREATE TABLE "south_carolina_counties_ranked_by_per_ca" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the per capita income of the county with a median family income of $40,492?`:
```sql
                SELECT "per_capita_income" FROM "south_carolina_counties_ranked_by_per_ca" WHERE "median_family_income"='$40,492';
```
## Task
Generate a SQL query to answer the following question:
`what is the earliest year when the result is won and the role/episode is fox mulder?`

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

CREATE TABLE "screen_actors_guild" (
  "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 is the earliest year when the result is won and the role/episode is fox mulder?`:
```sql
                SELECT MIN("year") FROM "screen_actors_guild" WHERE "result"='won' AND "role_episode"='fox mulder';
```
## Task
Generate a SQL query to answer the following question:
`what is the year when the role/episode is david duchovny?`

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

CREATE TABLE "screen_actors_guild" (
  "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 is the year when the role/episode is david duchovny?`:
```sql
                SELECT "year" FROM "screen_actors_guild" WHERE "role_episode"='david duchovny';
```
## Task
Generate a SQL query to answer the following question:
`What date has 9 as the week?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date has 9 as the week?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=9;
```
## Task
Generate a SQL query to answer the following question:
`What is the average total of the 0-8 tally?`

### 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 `What is the average total of the 0-8 tally?`:
```sql
                SELECT AVG("total") FROM "single_game" WHERE "tally"='0-8';
```
## Task
Generate a SQL query to answer the following question:
`What is the total rank of the match with tipperary as the opposition?`

### 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 `What is the total rank of the match with tipperary as the opposition?`:
```sql
                SELECT COUNT("rank") FROM "single_game" WHERE "opposition"='tipperary';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest total of player tommy ring, who has a rank greater than 1?`

### 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 `What is the lowest total of player tommy ring, who has a rank greater than 1?`:
```sql
                SELECT MIN("total") FROM "single_game" WHERE "player"='tommy ring' AND "rank">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank of the match where offaly was the opposition and the total was greater than 9?`

### 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 `What is the average rank of the match where offaly was the opposition and the total was greater than 9?`:
```sql
                SELECT AVG("rank") FROM "single_game" WHERE "opposition"='offaly' AND "total">9;
```
## Task
Generate a SQL query to answer the following question:
`Which municipality has a party of Lega Friuli-VG that won elections before 2011?`

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

CREATE TABLE "municipalities" (
  "municipality" text,
  "inhabitants" real,
  "mayor" text,
  "party" text,
  "election" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which municipality has a party of Lega Friuli-VG that won elections before 2011?`:
```sql
                SELECT "municipality" FROM "municipalities" WHERE "party"='lega friuli-vg' AND "election"<2011;
```
## Task
Generate a SQL query to answer the following question:
`Which party is Ettore Romoli from?`

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

CREATE TABLE "municipalities" (
  "municipality" text,
  "inhabitants" real,
  "mayor" text,
  "party" text,
  "election" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which party is Ettore Romoli from?`:
```sql
                SELECT "party" FROM "municipalities" WHERE "mayor"='ettore romoli';
```
## Task
Generate a SQL query to answer the following question:
`What campus is in Brgy. Alangilan, Batangas City?`

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

CREATE TABLE "campuses" (
  "campus" text,
  "executive_director" text,
  "founded" real,
  "type" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What campus is in Brgy. Alangilan, Batangas City?`:
```sql
                SELECT "campus" FROM "campuses" WHERE "location"='brgy. alangilan, batangas city';
```
## Task
Generate a SQL query to answer the following question:
`When was the Balayan, Batangas campus founded?`

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

CREATE TABLE "campuses" (
  "campus" text,
  "executive_director" text,
  "founded" real,
  "type" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the Balayan, Batangas campus founded?`:
```sql
                SELECT "founded" FROM "campuses" WHERE "location"='balayan, batangas';
```
## Task
Generate a SQL query to answer the following question:
`Who is the executive director of the Lemery, Batangas extension?`

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

CREATE TABLE "campuses" (
  "campus" text,
  "executive_director" text,
  "founded" real,
  "type" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the executive director of the Lemery, Batangas extension?`:
```sql
                SELECT "executive_director" FROM "campuses" WHERE "type"='extension' AND "location"='lemery, batangas';
```
## Task
Generate a SQL query to answer the following question:
`What is number of silver for the country with more than 0 gold, rank of 14, and more than 4 bronze?`

### 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 is number of silver for the country with more than 0 gold, rank of 14, and more than 4 bronze?`:
```sql
                SELECT COUNT("silver") FROM "medal_table" WHERE "gold">0 AND "rank"='14' AND "bronze">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of gold for the country ranked 19?`

### 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 is the number of gold for the country ranked 19?`:
```sql
                SELECT SUM("gold") FROM "medal_table" WHERE "rank"='19';
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of silver when there is less than 0 bronze?`

### 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 is the least amount of silver when there is less than 0 bronze?`:
```sql
                SELECT MIN("silver") FROM "medal_table" WHERE "bronze"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the most bronze when the total is 14, and there are more than 6 gold?`

### 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 is the most bronze when the total is 14, and there are more than 6 gold?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "total"=14 AND "gold">6;
```
## Task
Generate a SQL query to answer the following question:
`Which world record has a 187kg of 392kg?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "andrei_rybakou_blr" text,
  "187kg" text,
  "chiang_mai_thailand" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which world record has a 187kg of 392kg?`:
```sql
                SELECT "world_record" FROM "records" WHERE "187kg"='392kg';
```
## Task
Generate a SQL query to answer the following question:
`Who has 187kg and a Snatch of Clean & Jerk?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "andrei_rybakou_blr" text,
  "187kg" text,
  "chiang_mai_thailand" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has 187kg and a Snatch of Clean & Jerk?`:
```sql
                SELECT "187kg" FROM "records" WHERE "snatch"='clean & jerk';
```
## Task
Generate a SQL query to answer the following question:
`What is the world record for a 187kg of 392kg?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "andrei_rybakou_blr" text,
  "187kg" text,
  "chiang_mai_thailand" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the world record for a 187kg of 392kg?`:
```sql
                SELECT "world_record" FROM "records" WHERE "187kg"='392kg';
```
## Task
Generate a SQL query to answer the following question:
`What is the Reserved for (SC / ST /None) when the constituency number is 203?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Reserved for (SC / ST /None) when the constituency number is 203?`:
```sql
                SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "constituency_number"='203';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of electorates (2009) for the Indore district, when reserved for (SC / ST /None) is none, and constituency number is 208?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of electorates (2009) for the Indore district, when reserved for (SC / ST /None) is none, and constituency number is 208?`:
```sql
                SELECT SUM("number_of_electorates_2009") FROM "assembly_segments" WHERE "district"='indore' AND "reserved_for_sc_st_none"='none' AND "constituency_number"='208';
```
## Task
Generate a SQL query to answer the following question:
`What is the district when the reserved for (SC / ST /None) is none, number of electorates (2009) is larger than 190,441, and name is Indore-2?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the district when the reserved for (SC / ST /None) is none, number of electorates (2009) is larger than 190,441, and name is Indore-2?`:
```sql
                SELECT "district" FROM "assembly_segments" WHERE "reserved_for_sc_st_none"='none' AND "number_of_electorates_2009">'190,441' AND "name"='indore-2';
```
## Task
Generate a SQL query to answer the following question:
`What percentage of users were using other browsers according to the source that reported 21.22% were using Firefox?`

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

CREATE TABLE "usage_share_of_desktop_browsers_for_june" (
  "source" text,
  "chrome" text,
  "internet_explorer" text,
  "firefox" text,
  "safari" text,
  "opera" text,
  "other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of users were using other browsers according to the source that reported 21.22% were using Firefox?`:
```sql
                SELECT "other" FROM "usage_share_of_desktop_browsers_for_june" WHERE "firefox"='21.22%';
```
## Task
Generate a SQL query to answer the following question:
`According to W3Counter, what percentage of browsers used Firefox?`

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

CREATE TABLE "usage_share_of_desktop_browsers_for_june" (
  "source" text,
  "chrome" text,
  "internet_explorer" text,
  "firefox" text,
  "safari" text,
  "opera" text,
  "other" text
);
### SQL
Given the database schema, here is the SQL query that answers `According to W3Counter, what percentage of browsers used Firefox?`:
```sql
                SELECT "firefox" FROM "usage_share_of_desktop_browsers_for_june" WHERE "source"='w3counter';
```
## Task
Generate a SQL query to answer the following question:
`What percentage of users were using Firefox according to the source that reported 21.70% used Internet Explorer?`

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

CREATE TABLE "usage_share_of_desktop_browsers_for_june" (
  "source" text,
  "chrome" text,
  "internet_explorer" text,
  "firefox" text,
  "safari" text,
  "opera" text,
  "other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of users were using Firefox according to the source that reported 21.70% used Internet Explorer?`:
```sql
                SELECT "firefox" FROM "usage_share_of_desktop_browsers_for_june" WHERE "internet_explorer"='21.70%';
```
## Task
Generate a SQL query to answer the following question:
`Which source reported 32.60% of browsers used Chrome?`

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

CREATE TABLE "usage_share_of_desktop_browsers_for_june" (
  "source" text,
  "chrome" text,
  "internet_explorer" text,
  "firefox" text,
  "safari" text,
  "opera" text,
  "other" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which source reported 32.60% of browsers used Chrome?`:
```sql
                SELECT "source" FROM "usage_share_of_desktop_browsers_for_june" WHERE "chrome"='32.60%';
```
## Task
Generate a SQL query to answer the following question:
`What percentage of users were using Firefox according to the source that reported 15.40% used Safari?`

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

CREATE TABLE "usage_share_of_desktop_browsers_for_june" (
  "source" text,
  "chrome" text,
  "internet_explorer" text,
  "firefox" text,
  "safari" text,
  "opera" text,
  "other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of users were using Firefox according to the source that reported 15.40% used Safari?`:
```sql
                SELECT "firefox" FROM "usage_share_of_desktop_browsers_for_june" WHERE "safari"='15.40%';
```
## Task
Generate a SQL query to answer the following question:
`What percentage of users were using Internet Explorer according to the source that reported 20.01% used Firefox?`

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

CREATE TABLE "usage_share_of_desktop_browsers_for_june" (
  "source" text,
  "chrome" text,
  "internet_explorer" text,
  "firefox" text,
  "safari" text,
  "opera" text,
  "other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of users were using Internet Explorer according to the source that reported 20.01% used Firefox?`:
```sql
                SELECT "internet_explorer" FROM "usage_share_of_desktop_browsers_for_june" WHERE "firefox"='20.01%';
```
## Task
Generate a SQL query to answer the following question:
`How many points did team Rothmans Honda have in 1992?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "machine" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did team Rothmans Honda have in 1992?`:
```sql
                SELECT MIN("points") FROM "grand_prix_career_statistics" WHERE "team"='rothmans honda' AND "year"=1992;
```
## Task
Generate a SQL query to answer the following question:
`What class before 1990 has points of 33?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "machine" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What class before 1990 has points of 33?`:
```sql
                SELECT "class" FROM "grand_prix_career_statistics" WHERE "year"<1990 AND "points"=33;
```
## Task
Generate a SQL query to answer the following question:
`How many total points were in 1992?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "machine" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total points were in 1992?`:
```sql
                SELECT COUNT("points") FROM "grand_prix_career_statistics" WHERE "year"=1992;
```
## Task
Generate a SQL query to answer the following question:
`In 1992, what class has higher wins than 0?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "machine" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `In 1992, what class has higher wins than 0?`:
```sql
                SELECT "class" FROM "grand_prix_career_statistics" WHERE "wins">0 AND "year"=1992;
```
## Task
Generate a SQL query to answer the following question:
`What was the class that team Honda Britain was in with points higher than 0?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "machine" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the class that team Honda Britain was in with points higher than 0?`:
```sql
                SELECT "class" FROM "grand_prix_career_statistics" WHERE "team"='honda britain' AND "points">0;
```
## Task
Generate a SQL query to answer the following question:
`Which FA Cup Goals have League Cup Apps larger than 0, and a Name of trevor cherry?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" real,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which FA Cup Goals have League Cup Apps larger than 0, and a Name of trevor cherry?`:
```sql
                SELECT MAX("fa_cup_goals") FROM "appearances_and_goals" WHERE "league_cup_apps">0 AND "name"='trevor cherry';
```
## Task
Generate a SQL query to answer the following question:
`How many League Goals have League Cup Goals smaller than 0?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" real,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many League Goals have League Cup Goals smaller than 0?`:
```sql
                SELECT SUM("league_goals") FROM "appearances_and_goals" WHERE "league_cup_goals"<0;
```
## Task
Generate a SQL query to answer the following question:
`What's the 2009 of the Australian Open having a 1R in 2011?`

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

CREATE TABLE "grand_slam_women_s_singles_performance_t" (
  "tournament" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2009 of the Australian Open having a 1R in 2011?`:
```sql
                SELECT "2009" FROM "grand_slam_women_s_singles_performance_t" WHERE "2011"='1r' AND "tournament"='australian open';
```
## Task
Generate a SQL query to answer the following question:
`What's the 2008 of the Australian Open when the 2011 was 1R?`

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

CREATE TABLE "grand_slam_women_s_singles_performance_t" (
  "tournament" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2008 of the Australian Open when the 2011 was 1R?`:
```sql
                SELECT "2008" FROM "grand_slam_women_s_singles_performance_t" WHERE "2011"='1r' AND "tournament"='australian open';
```
## Task
Generate a SQL query to answer the following question:
`What's the 2008 of the US Open when 2010 was 2R and 2011 was 1R?`

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

CREATE TABLE "grand_slam_women_s_singles_performance_t" (
  "tournament" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2008 of the US Open when 2010 was 2R and 2011 was 1R?`:
```sql
                SELECT "2008" FROM "grand_slam_women_s_singles_performance_t" WHERE "2011"='1r' AND "2010"='2r' AND "tournament"='us open';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of episodes in a series with an airing date of 12 jan- 6 feb?`

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

CREATE TABLE "first_line_series" (
  "airing_date" text,
  "english_title_chinese_title" text,
  "number_of_episodes" real,
  "genre" text,
  "official_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of episodes in a series with an airing date of 12 jan- 6 feb?`:
```sql
                SELECT MIN("number_of_episodes") FROM "first_line_series" WHERE "airing_date"='12 jan- 6 feb';
```
## Task
Generate a SQL query to answer the following question:
`What tournament has petra mandula patricia wartusch as the opponent in the final?`

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

CREATE TABLE "doubles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament has petra mandula patricia wartusch as the opponent in the final?`:
```sql
                SELECT "tournament" FROM "doubles" WHERE "opponent_in_the_final"='petra mandula patricia wartusch';
```
## Task
Generate a SQL query to answer the following question:
`What date has kimberly po nathalie tauziat as the opponent in the final?`

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

CREATE TABLE "doubles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has kimberly po nathalie tauziat as the opponent in the final?`:
```sql
                SELECT "date" FROM "doubles" WHERE "opponent_in_the_final"='kimberly po nathalie tauziat';
```
## Task
Generate a SQL query to answer the following question:
`What score has February 12, 2006 as the date?`

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

CREATE TABLE "doubles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has February 12, 2006 as the date?`:
```sql
                SELECT "score" FROM "doubles" WHERE "date"='february 12, 2006';
```
## Task
Generate a SQL query to answer the following question:
`What opponent in the final has October 9, 2005 as the date?`

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

CREATE TABLE "doubles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent in the final has October 9, 2005 as the date?`:
```sql
                SELECT "opponent_in_the_final" FROM "doubles" WHERE "date"='october 9, 2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par for Bo Bae Song?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par for Bo Bae Song?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "player"='bo bae song';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par for Jiyai Shin when the place is t1?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par for Jiyai Shin when the place is t1?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "place"='t1' AND "player"='jiyai shin';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par for Jiyai Shin in place t1?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par for Jiyai Shin in place t1?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "place"='t1' AND "player"='jiyai shin';
```
## Task
Generate a SQL query to answer the following question:
`What was Laura Diaz's score for place t9?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Laura Diaz's score for place t9?`:
```sql
                SELECT "score" FROM "second_round" WHERE "place"='t9' AND "player"='laura diaz';
```
## Task
Generate a SQL query to answer the following question:
`What country does Bo Bae Song play for?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country does Bo Bae Song play for?`:
```sql
                SELECT "country" FROM "second_round" WHERE "player"='bo bae song';
```
## Task
Generate a SQL query to answer the following question:
`How many gold medals did Brazil win with a total of more than 55 medals?`

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

CREATE TABLE "medal_table_by_country" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many gold medals did Brazil win with a total of more than 55 medals?`:
```sql
                SELECT AVG("gold") FROM "medal_table_by_country" WHERE "nation"='brazil' AND "total">55;
```
## Task
Generate a SQL query to answer the following question:
`How many teams won more than 2 silver medals and fewer than 2 Bronze medals?`

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

CREATE TABLE "medal_table_by_country" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams won more than 2 silver medals and fewer than 2 Bronze medals?`:
```sql
                SELECT COUNT("rank") FROM "medal_table_by_country" WHERE "silver">2 AND "bronze"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest gold medals won by Greece?`

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

CREATE TABLE "medal_table_by_country" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest gold medals won by Greece?`:
```sql
                SELECT MIN("gold") FROM "medal_table_by_country" WHERE "nation"='greece';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank of the United States, with fewer than 4 bronze medals?`

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

CREATE TABLE "medal_table_by_country" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank of the United States, with fewer than 4 bronze medals?`:
```sql
                SELECT MIN("rank") FROM "medal_table_by_country" WHERE "nation"='united states' AND "bronze"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of gold medals won by a team that won fewer than 2 silver and fewer than 4 bronze medals?`

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

CREATE TABLE "medal_table_by_country" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of gold medals won by a team that won fewer than 2 silver and fewer than 4 bronze medals?`:
```sql
                SELECT MAX("gold") FROM "medal_table_by_country" WHERE "silver"<2 AND "bronze"<4;
```
## Task
Generate a SQL query to answer the following question:
`Which React has a Lane smaller than 4, and a Rank larger than 4, and a Time larger than 23.22?`

### 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,
  "country" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which React has a Lane smaller than 4, and a Rank larger than 4, and a Time larger than 23.22?`:
```sql
                SELECT AVG("react") FROM "semifinal_2" WHERE "lane"<4 AND "rank">4 AND "time">23.22;
```
## Task
Generate a SQL query to answer the following question:
`What shows for against when draws are 0, and losses are 16?`

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

CREATE TABLE "2010_ladder" (
  "hampden_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for against when draws are 0, and losses are 16?`:
```sql
                SELECT AVG("against") FROM "2010_ladder" WHERE "draws"=0 AND "losses"=16;
```