cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the highest total medals when there were 0 gold medals and 1 silver?`

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

CREATE TABLE "medal_table" (
  "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 total medals when there were 0 gold medals and 1 silver?`:
```sql
                SELECT MAX("total") FROM "medal_table" WHERE "silver"=1 AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What's the 123kg of the Total world record?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "oksana_slivenko_rus" text,
  "123kg" text,
  "santo_domingo_dominican" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 123kg of the Total world record?`:
```sql
                SELECT "123kg" FROM "records" WHERE "world_record"='total';
```
## Task
Generate a SQL query to answer the following question:
`What's the world record when the 123kg was 275kg?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "oksana_slivenko_rus" text,
  "123kg" text,
  "santo_domingo_dominican" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the world record when the 123kg was 275kg?`:
```sql
                SELECT "world_record" FROM "records" WHERE "123kg"='275kg';
```
## Task
Generate a SQL query to answer the following question:
`What is the name for the assembly segment with a constituency number of 214?`

### 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 name for the assembly segment with a constituency number of 214?`:
```sql
                SELECT "name" FROM "assembly_segments" WHERE "constituency_number"='214';
```
## Task
Generate a SQL query to answer the following question:
`What district has an assembly segment named mahidpur?`

### 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 district has an assembly segment named mahidpur?`:
```sql
                SELECT "district" FROM "assembly_segments" WHERE "name"='mahidpur';
```
## Task
Generate a SQL query to answer the following question:
`Who is Doug Basham's team?`

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

CREATE TABLE "results" (
  "elimination" text,
  "wrestler" text,
  "team" text,
  "eliminated_by" text,
  "elimination_move" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is Doug Basham's team?`:
```sql
                SELECT "team" FROM "results" WHERE "wrestler"='doug basham';
```
## Task
Generate a SQL query to answer the following question:
`What's Jorge Santana's elimination?`

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

CREATE TABLE "results" (
  "elimination" text,
  "wrestler" text,
  "team" text,
  "eliminated_by" text,
  "elimination_move" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's Jorge Santana's elimination?`:
```sql
                SELECT "elimination" FROM "results" WHERE "wrestler"='jorge santana';
```
## Task
Generate a SQL query to answer the following question:
`Who's the wrestler with an elimination of 1?`

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

CREATE TABLE "results" (
  "elimination" text,
  "wrestler" text,
  "team" text,
  "eliminated_by" text,
  "elimination_move" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the wrestler with an elimination of 1?`:
```sql
                SELECT "wrestler" FROM "results" WHERE "elimination"='1';
```
## Task
Generate a SQL query to answer the following question:
`Who's the eliminated by when the elimination was 1?`

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

CREATE TABLE "results" (
  "elimination" text,
  "wrestler" text,
  "team" text,
  "eliminated_by" text,
  "elimination_move" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the eliminated by when the elimination was 1?`:
```sql
                SELECT "eliminated_by" FROM "results" WHERE "elimination"='1';
```
## Task
Generate a SQL query to answer the following question:
`What is the date where the result was L 27-10 in a week before week 9?`

### 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 is the date where the result was L 27-10 in a week before week 9?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"<9 AND "result"='l 27-10';
```
## Task
Generate a SQL query to answer the following question:
`What sum of draw had more than 22 in Jury and a Televote of 130?`

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

CREATE TABLE "nationaal_songfestival_2009_1_february_2" (
  "draw" real,
  "song" text,
  "jury" real,
  "televote" real,
  "total" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What sum of draw had more than 22 in Jury and a Televote of 130?`:
```sql
                SELECT SUM("draw") FROM "nationaal_songfestival_2009_1_february_2" WHERE "jury">22 AND "televote"=130;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of the jury that is 2nd place and the total is larger than 190?`

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

CREATE TABLE "nationaal_songfestival_2009_1_february_2" (
  "draw" real,
  "song" text,
  "jury" real,
  "televote" real,
  "total" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of the jury that is 2nd place and the total is larger than 190?`:
```sql
                SELECT SUM("jury") FROM "nationaal_songfestival_2009_1_february_2" WHERE "place"='2nd' AND "total">190;
```
## Task
Generate a SQL query to answer the following question:
`What's the average L/km combines when the L/100km Urban is 13.9, the mpg-UK combined is more than 28.5 and the mpg-UK extra urban is less than 38.7?`

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

CREATE TABLE "see_also" (
  "manufacturer" text,
  "transmission" text,
  "engine_capacity" real,
  "fuel_type" text,
  "l_100km_urban_cold" real,
  "l_100km_extra_urban" real,
  "l_100km_combined" real,
  "mpg_uk_urban_cold" real,
  "mpg_uk_extra_urban" real,
  "mpg_uk_combined" real,
  "mpg_us_urban" real,
  "mpg_us_extra_urban" real,
  "mpg_us_combined" real,
  "co_2_g_km" real,
  "green_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average L/km combines when the L/100km Urban is 13.9, the mpg-UK combined is more than 28.5 and the mpg-UK extra urban is less than 38.7?`:
```sql
                SELECT AVG("l_100km_combined") FROM "see_also" WHERE "l_100km_urban_cold"=13.9 AND "mpg_uk_combined">28.5 AND "mpg_uk_extra_urban"<38.7;
```
## Task
Generate a SQL query to answer the following question:
`What's the least mpg-UK combined when the mpg-UK urban is 25.4, the L/100km extra urban is less than 6.9 and the L/100km urban is more than 11.1?`

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

CREATE TABLE "see_also" (
  "manufacturer" text,
  "transmission" text,
  "engine_capacity" real,
  "fuel_type" text,
  "l_100km_urban_cold" real,
  "l_100km_extra_urban" real,
  "l_100km_combined" real,
  "mpg_uk_urban_cold" real,
  "mpg_uk_extra_urban" real,
  "mpg_uk_combined" real,
  "mpg_us_urban" real,
  "mpg_us_extra_urban" real,
  "mpg_us_combined" real,
  "co_2_g_km" real,
  "green_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the least mpg-UK combined when the mpg-UK urban is 25.4, the L/100km extra urban is less than 6.9 and the L/100km urban is more than 11.1?`:
```sql
                SELECT MIN("mpg_uk_combined") FROM "see_also" WHERE "mpg_uk_urban_cold"=25.4 AND "l_100km_extra_urban"<6.9 AND "l_100km_urban_cold">11.1;
```
## Task
Generate a SQL query to answer the following question:
`What's the CO2 g/km of a Fiat running on diesel with the L/100km urban more than 6.3 and an mpg-UK combined of 43.5?`

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

CREATE TABLE "see_also" (
  "manufacturer" text,
  "transmission" text,
  "engine_capacity" real,
  "fuel_type" text,
  "l_100km_urban_cold" real,
  "l_100km_extra_urban" real,
  "l_100km_combined" real,
  "mpg_uk_urban_cold" real,
  "mpg_uk_extra_urban" real,
  "mpg_uk_combined" real,
  "mpg_us_urban" real,
  "mpg_us_extra_urban" real,
  "mpg_us_combined" real,
  "co_2_g_km" real,
  "green_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the CO2 g/km of a Fiat running on diesel with the L/100km urban more than 6.3 and an mpg-UK combined of 43.5?`:
```sql
                SELECT COUNT("co_2_g_km") FROM "see_also" WHERE "fuel_type"='diesel' AND "manufacturer"='fiat' AND "l_100km_urban_cold">6.3 AND "mpg_uk_combined"=43.5;
```
## Task
Generate a SQL query to answer the following question:
`What's the total L/100km extra urban fueled by diesel, when the mpg-UK combines is more than 19.2, mpg-US is less than 50 and the L/100m combined is less than 5.7?`

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

CREATE TABLE "see_also" (
  "manufacturer" text,
  "transmission" text,
  "engine_capacity" real,
  "fuel_type" text,
  "l_100km_urban_cold" real,
  "l_100km_extra_urban" real,
  "l_100km_combined" real,
  "mpg_uk_urban_cold" real,
  "mpg_uk_extra_urban" real,
  "mpg_uk_combined" real,
  "mpg_us_urban" real,
  "mpg_us_extra_urban" real,
  "mpg_us_combined" real,
  "co_2_g_km" real,
  "green_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total L/100km extra urban fueled by diesel, when the mpg-UK combines is more than 19.2, mpg-US is less than 50 and the L/100m combined is less than 5.7?`:
```sql
                SELECT COUNT("l_100km_extra_urban") FROM "see_also" WHERE "mpg_uk_combined">19.2 AND "l_100km_combined"<5.7 AND "fuel_type"='diesel' AND "mpg_us_combined"<50;
```
## Task
Generate a SQL query to answer the following question:
`What's the engine capacity when the mpg-UK urban is less than 12.2, the mpg-UK extra urban is less than 18.8 and the mpg-US turban is less than 7.2?`

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

CREATE TABLE "see_also" (
  "manufacturer" text,
  "transmission" text,
  "engine_capacity" real,
  "fuel_type" text,
  "l_100km_urban_cold" real,
  "l_100km_extra_urban" real,
  "l_100km_combined" real,
  "mpg_uk_urban_cold" real,
  "mpg_uk_extra_urban" real,
  "mpg_uk_combined" real,
  "mpg_us_urban" real,
  "mpg_us_extra_urban" real,
  "mpg_us_combined" real,
  "co_2_g_km" real,
  "green_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the engine capacity when the mpg-UK urban is less than 12.2, the mpg-UK extra urban is less than 18.8 and the mpg-US turban is less than 7.2?`:
```sql
                SELECT SUM("engine_capacity") FROM "see_also" WHERE "mpg_uk_urban_cold"<12.2 AND "mpg_uk_extra_urban"<18.8 AND "mpg_us_urban"<7.2;
```
## Task
Generate a SQL query to answer the following question:
`What's the mpg-US urban when the mpg-UK urban is 20 and the mpg-UK extra urban is less than 37.2?`

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

CREATE TABLE "see_also" (
  "manufacturer" text,
  "transmission" text,
  "engine_capacity" real,
  "fuel_type" text,
  "l_100km_urban_cold" real,
  "l_100km_extra_urban" real,
  "l_100km_combined" real,
  "mpg_uk_urban_cold" real,
  "mpg_uk_extra_urban" real,
  "mpg_uk_combined" real,
  "mpg_us_urban" real,
  "mpg_us_extra_urban" real,
  "mpg_us_combined" real,
  "co_2_g_km" real,
  "green_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the mpg-US urban when the mpg-UK urban is 20 and the mpg-UK extra urban is less than 37.2?`:
```sql
                SELECT SUM("mpg_us_urban") FROM "see_also" WHERE "mpg_uk_urban_cold"=20 AND "mpg_uk_extra_urban"<37.2;
```
## Task
Generate a SQL query to answer the following question:
`What was the score on 2010-07-13 when Abby wambach had the assist/pass?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "location" text,
  "lineup" text,
  "assist_pass" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on 2010-07-13 when Abby wambach had the assist/pass?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "assist_pass"='abby wambach' AND "date"='2010-07-13';
```
## Task
Generate a SQL query to answer the following question:
`What is the location on 2008-06-17 when the lineup was start?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "location" text,
  "lineup" text,
  "assist_pass" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location on 2008-06-17 when the lineup was start?`:
```sql
                SELECT "location" FROM "international_goals" WHERE "lineup"='start' AND "date"='2008-06-17';
```
## Task
Generate a SQL query to answer the following question:
`What is the assist/pass on 2008-01-16 when the score was 2-0?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "location" text,
  "lineup" text,
  "assist_pass" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the assist/pass on 2008-01-16 when the score was 2-0?`:
```sql
                SELECT "assist_pass" FROM "international_goals" WHERE "date"='2008-01-16' AND "score"='2-0';
```
## Task
Generate a SQL query to answer the following question:
`What is the result at match reports?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "location" text,
  "lineup" text,
  "assist_pass" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result at match reports?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "location"='match reports';
```
## Task
Generate a SQL query to answer the following question:
`What's the points if the goals against were 222?`

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

CREATE TABLE "regular_season" (
  "season" text,
  "games" text,
  "lost" text,
  "tied" text,
  "points" text,
  "goals_for" text,
  "goals_against" text,
  "standing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the points if the goals against were 222?`:
```sql
                SELECT "points" FROM "regular_season" WHERE "goals_against"='222';
```
## Task
Generate a SQL query to answer the following question:
`What are the points if the goals against were 260?`

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

CREATE TABLE "regular_season" (
  "season" text,
  "games" text,
  "lost" text,
  "tied" text,
  "points" text,
  "goals_for" text,
  "goals_against" text,
  "standing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the points if the goals against were 260?`:
```sql
                SELECT "points" FROM "regular_season" WHERE "goals_against"='260';
```
## Task
Generate a SQL query to answer the following question:
`What are the games with an Involuntary suspension of Season (hurricane Rita)?`

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

CREATE TABLE "regular_season" (
  "season" text,
  "games" text,
  "lost" text,
  "tied" text,
  "points" text,
  "goals_for" text,
  "goals_against" text,
  "standing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the games with an Involuntary suspension of Season (hurricane Rita)?`:
```sql
                SELECT "games" FROM "regular_season" WHERE "standing"='involuntary suspension of season (hurricane rita)';
```
## Task
Generate a SQL query to answer the following question:
`What are the goals for a lost of Involuntary suspension of Season (hurricane Rita)?`

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

CREATE TABLE "regular_season" (
  "season" text,
  "games" text,
  "lost" text,
  "tied" text,
  "points" text,
  "goals_for" text,
  "goals_against" text,
  "standing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the goals for a lost of Involuntary suspension of Season (hurricane Rita)?`:
```sql
                SELECT "goals_for" FROM "regular_season" WHERE "lost"='involuntary suspension of season (hurricane rita)';
```
## Task
Generate a SQL query to answer the following question:
`What's the season that had a lost of 9 with 72 games?`

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

CREATE TABLE "regular_season" (
  "season" text,
  "games" text,
  "lost" text,
  "tied" text,
  "points" text,
  "goals_for" text,
  "goals_against" text,
  "standing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the season that had a lost of 9 with 72 games?`:
```sql
                SELECT "season" FROM "regular_season" WHERE "games"='72' AND "lost"='9';
```
## Task
Generate a SQL query to answer the following question:
`What event did he compete in at Taipei?`

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

CREATE TABLE "top_8_appearances" (
  "season" text,
  "event_type" text,
  "location" text,
  "format" text,
  "date" text,
  "rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What event did he compete in at Taipei?`:
```sql
                SELECT "format" FROM "top_8_appearances" WHERE "location"='taipei';
```
## Task
Generate a SQL query to answer the following question:
`In what season did he compete in the Grand Prix in Kuala Lumpur?`

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

CREATE TABLE "top_8_appearances" (
  "season" text,
  "event_type" text,
  "location" text,
  "format" text,
  "date" text,
  "rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what season did he compete in the Grand Prix in Kuala Lumpur?`:
```sql
                SELECT "season" FROM "top_8_appearances" WHERE "event_type"='grand prix' AND "location"='kuala lumpur';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the player with a pick less than 3 from team san diego?`

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

CREATE TABLE "first_round" (
  "pick" real,
  "team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player with a pick less than 3 from team san diego?`:
```sql
                SELECT "position" FROM "first_round" WHERE "pick"<3 AND "team"='san diego';
```
## Task
Generate a SQL query to answer the following question:
`What location did david mccann receive a siver and morgan fox win the gold?`

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

CREATE TABLE "elite_men" (
  "year" text,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location did david mccann receive a siver and morgan fox win the gold?`:
```sql
                SELECT "location" FROM "elite_men" WHERE "silver"='david mccann' AND "gold"='morgan fox';
```
## Task
Generate a SQL query to answer the following question:
`Who received the bronze in 2011?`

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

CREATE TABLE "elite_men" (
  "year" text,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who received the bronze in 2011?`:
```sql
                SELECT "bronze" FROM "elite_men" WHERE "year"='2011';
```
## Task
Generate a SQL query to answer the following question:
`Who received the silver in 2006?`

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

CREATE TABLE "elite_men" (
  "year" text,
  "location" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who received the silver in 2006?`:
```sql
                SELECT "silver" FROM "elite_men" WHERE "year"='2006';
```
## Task
Generate a SQL query to answer the following question:
`What is the name for the club Liaoning in 2008?`

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

CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name for the club Liaoning in 2008?`:
```sql
                SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='liaoning';
```
## Task
Generate a SQL query to answer the following question:
`What was the spike for the Army Club in 2008?`

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

CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the spike for the Army Club in 2008?`:
```sql
                SELECT "spike" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='army';
```
## Task
Generate a SQL query to answer the following question:
`What was the weight for the player in Zhejiang in 2008?`

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

CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the weight for the player in Zhejiang in 2008?`:
```sql
                SELECT "weight" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='zhejiang';
```
## Task
Generate a SQL query to answer the following question:
`What's the count for obese children and adolescents ranked 48?`

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

CREATE TABLE "prevalence_by_state" (
  "state_and_district_of_columbia" text,
  "obese_adults" text,
  "overweight_incl_obese_adults" text,
  "obese_children_and_adolescents" text,
  "obesity_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the count for obese children and adolescents ranked 48?`:
```sql
                SELECT "obese_children_and_adolescents" FROM "prevalence_by_state" WHERE "obesity_rank"=48;
```
## Task
Generate a SQL query to answer the following question:
`What's the rank when the obese children and adolescent count is 14.2%?`

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

CREATE TABLE "prevalence_by_state" (
  "state_and_district_of_columbia" text,
  "obese_adults" text,
  "overweight_incl_obese_adults" text,
  "obese_children_and_adolescents" text,
  "obesity_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the rank when the obese children and adolescent count is 14.2%?`:
```sql
                SELECT SUM("obesity_rank") FROM "prevalence_by_state" WHERE "obese_children_and_adolescents"='14.2%';
```
## Task
Generate a SQL query to answer the following question:
`What's the rank in West Virginia when the overweight adult was 66.8%?`

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

CREATE TABLE "prevalence_by_state" (
  "state_and_district_of_columbia" text,
  "obese_adults" text,
  "overweight_incl_obese_adults" text,
  "obese_children_and_adolescents" text,
  "obesity_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the rank in West Virginia when the overweight adult was 66.8%?`:
```sql
                SELECT "obesity_rank" FROM "prevalence_by_state" WHERE "overweight_incl_obese_adults"='66.8%' AND "state_and_district_of_columbia"='west virginia';
```
## Task
Generate a SQL query to answer the following question:
`What is reserved for Jawad?`

### 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 reserved for Jawad?`:
```sql
                SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "name"='jawad';
```
## Task
Generate a SQL query to answer the following question:
`What is reserved for the constituency of 228?`

### 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 reserved for the constituency of 228?`:
```sql
                SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "constituency_number"='228';
```
## Task
Generate a SQL query to answer the following question:
`Which Mascot has a Location of evansville, and an Enrollment larger than 1,392, and a School of evansville harrison?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "mascot" text,
  "location" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Mascot has a Location of evansville, and an Enrollment larger than 1,392, and a School of evansville harrison?`:
```sql
                SELECT "mascot" FROM "indiana_high_school_athletics_conference" WHERE "location"='evansville' AND "enrollment">'1,392' AND "school"='evansville harrison';
```
## Task
Generate a SQL query to answer the following question:
`Which County has an IHSAA Class of aaa, and an Enrollment smaller than 799?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "mascot" text,
  "location" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which County has an IHSAA Class of aaa, and an Enrollment smaller than 799?`:
```sql
                SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aaa' AND "enrollment"<799;
```
## Task
Generate a SQL query to answer the following question:
`Which Location has a Mascot of tigers?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "mascot" text,
  "location" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location has a Mascot of tigers?`:
```sql
                SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='tigers';
```
## Task
Generate a SQL query to answer the following question:
`What's the least Expert's View when willing to take risks is more than 27, communication ability is 30, ability to compromise is less than 26, and imagination is more than 14?`

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

CREATE TABLE "siena_college_research_institute_survey" (
  "seq" text,
  "name" text,
  "background" real,
  "party_leadership" real,
  "communication_ability" real,
  "relations_with_congress" real,
  "court_appointments" real,
  "handling_of_economy" real,
  "luck" real,
  "ability_to_compromise" real,
  "willing_to_take_risks" real,
  "executive_appointments" real,
  "overall_ability" real,
  "imagination" real,
  "domestic_accomplishments" real,
  "integrity" real,
  "executive_ability" real,
  "foreign_policy_accomplishments" real,
  "leadership_ability" real,
  "intelligence" real,
  "avoid_crucial_mistakes" real,
  "expert_s_view" real,
  "overall" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the least Expert's View when willing to take risks is more than 27, communication ability is 30, ability to compromise is less than 26, and imagination is more than 14?`:
```sql
                SELECT MIN("expert_s_view") FROM "siena_college_research_institute_survey" WHERE "ability_to_compromise"<26 AND "imagination">14 AND "willing_to_take_risks">27 AND "communication_ability"<30;
```
## Task
Generate a SQL query to answer the following question:
`What's the most overall when the executive appointments were 28 and the background was smaller than 37?`

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

CREATE TABLE "siena_college_research_institute_survey" (
  "seq" text,
  "name" text,
  "background" real,
  "party_leadership" real,
  "communication_ability" real,
  "relations_with_congress" real,
  "court_appointments" real,
  "handling_of_economy" real,
  "luck" real,
  "ability_to_compromise" real,
  "willing_to_take_risks" real,
  "executive_appointments" real,
  "overall_ability" real,
  "imagination" real,
  "domestic_accomplishments" real,
  "integrity" real,
  "executive_ability" real,
  "foreign_policy_accomplishments" real,
  "leadership_ability" real,
  "intelligence" real,
  "avoid_crucial_mistakes" real,
  "expert_s_view" real,
  "overall" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the most overall when the executive appointments were 28 and the background was smaller than 37?`:
```sql
                SELECT MAX("overall") FROM "siena_college_research_institute_survey" WHERE "executive_appointments"=28 AND "background"<37;
```
## Task
Generate a SQL query to answer the following question:
`What was the record at the game with a score of 21-16?`

### 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,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record at the game with a score of 21-16?`:
```sql
                SELECT "record" FROM "schedule" WHERE "score"='21-16';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at the game with a score of 42-28 after week 4?`

### 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,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent at the game with a score of 42-28 after week 4?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week">4 AND "score"='42-28';
```
## Task
Generate a SQL query to answer the following question:
`Which Runs on POSIX style systems has a Developer of andéor?`

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

CREATE TABLE "comparison_of_cad_cam_cae_file_viewers" (
  "latest_stable_release" text,
  "developer" text,
  "3_d_support" text,
  "runs_on_posix_style_systems" text,
  "runs_on_windows" text,
  "user_interface_language_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Runs on POSIX style systems has a Developer of andéor?`:
```sql
                SELECT "runs_on_posix_style_systems" FROM "comparison_of_cad_cam_cae_file_viewers" WHERE "developer"='andéor';
```
## Task
Generate a SQL query to answer the following question:
`Which User Interface Language(s) has Runs on POSIX style systems of no and sescoi?`

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

CREATE TABLE "comparison_of_cad_cam_cae_file_viewers" (
  "latest_stable_release" text,
  "developer" text,
  "3_d_support" text,
  "runs_on_posix_style_systems" text,
  "runs_on_windows" text,
  "user_interface_language_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which User Interface Language(s) has Runs on POSIX style systems of no and sescoi?`:
```sql
                SELECT "user_interface_language_s" FROM "comparison_of_cad_cam_cae_file_viewers" WHERE "runs_on_posix_style_systems"='no' AND "developer"='sescoi';
```
## Task
Generate a SQL query to answer the following question:
`what is the result when the opponent is at dallas cowboys?`

### 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 is the result when the opponent is at dallas cowboys?`:
```sql
                SELECT "result" FROM "schedule" WHERE "opponent"='at dallas cowboys';
```
## Task
Generate a SQL query to answer the following question:
`what is the enrollement for the year joined 1958 in clarksville?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "num_county" text,
  "year_joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the enrollement for the year joined 1958 in clarksville?`:
```sql
                SELECT SUM("enrollment") FROM "membership" WHERE "year_joined"=1958 AND "location"='clarksville';
```
## Task
Generate a SQL query to answer the following question:
`what is the #/county that is ihsaa class aaa, has enrollment higher than 611 and the dragons is the mascot?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "num_county" text,
  "year_joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the #/county that is ihsaa class aaa, has enrollment higher than 611 and the dragons is the mascot?`:
```sql
                SELECT "num_county" FROM "membership" WHERE "ihsaa_class"='aaa' AND "enrollment">611 AND "mascot"='dragons';
```
## Task
Generate a SQL query to answer the following question:
`What's the Peaches: that was released in USA with 2 hot as a Title?`

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

CREATE TABLE "l_ps_c_ds" (
  "title" text,
  "label" text,
  "year_of_release" real,
  "country_of_release" text,
  "peaches" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Peaches: that was released in USA with 2 hot as a Title?`:
```sql
                SELECT "peaches" FROM "l_ps_c_ds" WHERE "country_of_release"='usa' AND "title"='2 hot';
```
## Task
Generate a SQL query to answer the following question:
`What's the Peaches: for Sayin' Something?`

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

CREATE TABLE "l_ps_c_ds" (
  "title" text,
  "label" text,
  "year_of_release" real,
  "country_of_release" text,
  "peaches" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Peaches: for Sayin' Something?`:
```sql
                SELECT "peaches" FROM "l_ps_c_ds" WHERE "title"='sayin'' something';
```
## Task
Generate a SQL query to answer the following question:
`Where was the title released in 1977?`

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

CREATE TABLE "l_ps_c_ds" (
  "title" text,
  "label" text,
  "year_of_release" real,
  "country_of_release" text,
  "peaches" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the title released in 1977?`:
```sql
                SELECT "country_of_release" FROM "l_ps_c_ds" WHERE "year_of_release"=1977;
```
## Task
Generate a SQL query to answer the following question:
`What was the last year MCA had a Release?`

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

CREATE TABLE "l_ps_c_ds" (
  "title" text,
  "label" text,
  "year_of_release" real,
  "country_of_release" text,
  "peaches" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the last year MCA had a Release?`:
```sql
                SELECT MAX("year_of_release") FROM "l_ps_c_ds" WHERE "label"='mca';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest pick for the Buffalo Bills?`

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

CREATE TABLE "nineteenth_round" (
  "pick" real,
  "team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest pick for the Buffalo Bills?`:
```sql
                SELECT MIN("pick") FROM "nineteenth_round" WHERE "team"='buffalo bills';
```
## Task
Generate a SQL query to answer the following question:
`Which player played for the Boston Patriots?`

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

CREATE TABLE "nineteenth_round" (
  "pick" real,
  "team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player played for the Boston Patriots?`:
```sql
                SELECT "player" FROM "nineteenth_round" WHERE "team"='boston patriots';
```
## Task
Generate a SQL query to answer the following question:
`How much Attendance has a Result of 2–4, and a Visitor of brynäs if?`

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

CREATE TABLE "game_log" (
  "round" real,
  "date" text,
  "home" text,
  "result" text,
  "visitor" text,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Attendance has a Result of 2–4, and a Visitor of brynäs if?`:
```sql
                SELECT SUM("attendance") FROM "game_log" WHERE "result"='2–4' AND "visitor"='brynäs if';
```
## Task
Generate a SQL query to answer the following question:
`Which Result has a Round larger than 17?`

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

CREATE TABLE "game_log" (
  "round" real,
  "date" text,
  "home" text,
  "result" text,
  "visitor" text,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Result has a Round larger than 17?`:
```sql
                SELECT "result" FROM "game_log" WHERE "round">17;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest electorate for the Conservative party in South West Devon constituency, with over 2 conservatives and a name of Plymstock Radford?`

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

CREATE TABLE "wards" (
  "name" text,
  "labour" real,
  "conservative" real,
  "political_party" text,
  "electorate" real,
  "constituency" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest electorate for the Conservative party in South West Devon constituency, with over 2 conservatives and a name of Plymstock Radford?`:
```sql
                SELECT MIN("electorate") FROM "wards" WHERE "political_party"='conservative' AND "constituency"='south west devon' AND "conservative">2 AND "name"='plymstock radford';
```
## Task
Generate a SQL query to answer the following question:
`In what Year of Census or Estimate is the Toronto Population larger than 1,556,396?`

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

CREATE TABLE "most_populous_cities" (
  "rank" real,
  "city" text,
  "population" real,
  "year_of_census_or_estimate" real,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Year of Census or Estimate is the Toronto Population larger than 1,556,396?`:
```sql
                SELECT SUM("year_of_census_or_estimate") FROM "most_populous_cities" WHERE "population">'1,556,396' AND "city"='toronto';
```
## Task
Generate a SQL query to answer the following question:
`What event was in a year later than 2007 and in the 88th position?`

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

CREATE TABLE "athletics" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event was in a year later than 2007 and in the 88th position?`:
```sql
                SELECT "event" FROM "athletics" WHERE "year">2007 AND "position"='88th';
```
## Task
Generate a SQL query to answer the following question:
`What are the notes for 2005?`

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

CREATE TABLE "athletics" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes for 2005?`:
```sql
                SELECT "notes" FROM "athletics" WHERE "year"=2005;
```
## Task
Generate a SQL query to answer the following question:
`Who is the owner of CKLF-FM?`

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

CREATE TABLE "radio_stations" (
  "frequency" text,
  "call_sign" text,
  "branding" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the owner of CKLF-FM?`:
```sql
                SELECT "owner" FROM "radio_stations" WHERE "call_sign"='cklf-fm';
```
## Task
Generate a SQL query to answer the following question:
`What frequency is First Nations Community?`

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

CREATE TABLE "radio_stations" (
  "frequency" text,
  "call_sign" text,
  "branding" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What frequency is First Nations Community?`:
```sql
                SELECT "frequency" FROM "radio_stations" WHERE "format"='first nations community';
```
## Task
Generate a SQL query to answer the following question:
`What format is CBC Radio 2?`

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

CREATE TABLE "radio_stations" (
  "frequency" text,
  "call_sign" text,
  "branding" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What format is CBC Radio 2?`:
```sql
                SELECT "format" FROM "radio_stations" WHERE "branding"='cbc radio 2';
```
## Task
Generate a SQL query to answer the following question:
`Who owns CKSB-8-FM?`

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

CREATE TABLE "radio_stations" (
  "frequency" text,
  "call_sign" text,
  "branding" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who owns CKSB-8-FM?`:
```sql
                SELECT "owner" FROM "radio_stations" WHERE "call_sign"='cksb-8-fm';
```
## Task
Generate a SQL query to answer the following question:
`What format is Première Chaîne?`

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

CREATE TABLE "radio_stations" (
  "frequency" text,
  "call_sign" text,
  "branding" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What format is Première Chaîne?`:
```sql
                SELECT "format" FROM "radio_stations" WHERE "branding"='première chaîne';
```
## Task
Generate a SQL query to answer the following question:
`What year was olympics, Canada and the Men's Eight Event ended with a silver medal?`

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

CREATE TABLE "coaching_titles" (
  "year" real,
  "championship" text,
  "event" text,
  "nation" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was olympics, Canada and the Men's Eight Event ended with a silver medal?`:
```sql
                SELECT MAX("year") FROM "coaching_titles" WHERE "championship"='olympics' AND "event"='men''s eight' AND "nation"='canada' AND "result"='silver';
```
## Task
Generate a SQL query to answer the following question:
`What event was in 2006?`

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

CREATE TABLE "coaching_titles" (
  "year" real,
  "championship" text,
  "event" text,
  "nation" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event was in 2006?`:
```sql
                SELECT "event" FROM "coaching_titles" WHERE "year"=2006;
```