cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the yarn type for standard yarn weight system for 3 or light`

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

CREATE TABLE "table1_20297668_1" (
  "standard_yarn_weight_system" text,
  "yarn_type_us" text,
  "ply_uk_nz_au" text,
  "m_100g" text,
  "wraps_per_inch_wpi" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the yarn type for standard yarn weight system for 3 or light`:
```sql
                SELECT "yarn_type_us" FROM "table1_20297668_1" WHERE "standard_yarn_weight_system"='3 or Light';
```
## Task
Generate a SQL query to answer the following question:
`Name the standard yarn weight system for 7 wpi`

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

CREATE TABLE "table1_20297668_1" (
  "standard_yarn_weight_system" text,
  "yarn_type_us" text,
  "ply_uk_nz_au" text,
  "m_100g" text,
  "wraps_per_inch_wpi" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the standard yarn weight system for 7 wpi`:
```sql
                SELECT "standard_yarn_weight_system" FROM "table1_20297668_1" WHERE "wraps_per_inch_wpi"='7 wpi';
```
## Task
Generate a SQL query to answer the following question:
`Name the standard yarn weight system for 9 wpi`

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

CREATE TABLE "table1_20297668_1" (
  "standard_yarn_weight_system" text,
  "yarn_type_us" text,
  "ply_uk_nz_au" text,
  "m_100g" text,
  "wraps_per_inch_wpi" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the standard yarn weight system for 9 wpi`:
```sql
                SELECT "standard_yarn_weight_system" FROM "table1_20297668_1" WHERE "wraps_per_inch_wpi"='9 wpi';
```
## Task
Generate a SQL query to answer the following question:
`Name the overall nt points for 2nd m 127.5`

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

CREATE TABLE "kuopio" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" text,
  "2nd_m" text,
  "points" text,
  "overall_nt_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the overall nt points for 2nd m 127.5`:
```sql
                SELECT "overall_nt_points" FROM "kuopio" WHERE "2nd_m"='127.5';
```
## Task
Generate a SQL query to answer the following question:
`when 1st (m) is 218.0, what were all of the over wc points (rank)?`

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

CREATE TABLE "oberstdorf" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" text,
  "2nd_m" text,
  "points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `when 1st (m) is 218.0, what were all of the over wc points (rank)?`:
```sql
                SELECT "overall_wc_points_rank" FROM "oberstdorf" WHERE "1st_m"='218.0';
```
## Task
Generate a SQL query to answer the following question:
`when 1st (m) is 212.5 what are the overall wc points (rank)?`

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

CREATE TABLE "oberstdorf" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" text,
  "2nd_m" text,
  "points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `when 1st (m) is 212.5 what are the overall wc points (rank)?`:
```sql
                SELECT "overall_wc_points_rank" FROM "oberstdorf" WHERE "1st_m"='212.5';
```
## Task
Generate a SQL query to answer the following question:
`When was the motor gear of the LMS 1946 no. 1901 model fitted?`

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

CREATE TABLE "details" (
  "lms_1932_3_no" real,
  "lms_1946_no" real,
  "br_no" real,
  "date_built" text,
  "date_motor_gear_fitted" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the motor gear of the LMS 1946 no. 1901 model fitted?`:
```sql
                SELECT "date_motor_gear_fitted" FROM "details" WHERE "lms_1946_no"=1901;
```
## Task
Generate a SQL query to answer the following question:
`how many matches did wayne mardle play`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many matches did wayne mardle play`:
```sql
                SELECT COUNT("played") FROM "statistics" WHERE "player"='Wayne Mardle';
```
## Task
Generate a SQL query to answer the following question:
`what is the 3-dart average of raymond van barneveld`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the 3-dart average of raymond van barneveld`:
```sql
                SELECT "3_dart_average" FROM "statistics" WHERE "player"='Raymond van Barneveld';
```
## Task
Generate a SQL query to answer the following question:
`How many different results are there for the season with a 4-3 conference record?`

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

CREATE TABLE "division_championships" (
  "season" real,
  "division" text,
  "coach" text,
  "overall_record" text,
  "conference_record" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different results are there for the season with a 4-3 conference record?`:
```sql
                SELECT COUNT("result") FROM "division_championships" WHERE "conference_record"='4-3';
```
## Task
Generate a SQL query to answer the following question:
`Who coached the team in the season with a 6-1 conference record?`

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

CREATE TABLE "division_championships" (
  "season" real,
  "division" text,
  "coach" text,
  "overall_record" text,
  "conference_record" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who coached the team in the season with a 6-1 conference record?`:
```sql
                SELECT "coach" FROM "division_championships" WHERE "conference_record"='6-1';
```
## Task
Generate a SQL query to answer the following question:
`How many different conference records are there for season 2006?`

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

CREATE TABLE "division_championships" (
  "season" real,
  "division" text,
  "coach" text,
  "overall_record" text,
  "conference_record" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different conference records are there for season 2006?`:
```sql
                SELECT COUNT("conference_record") FROM "division_championships" WHERE "season"=2006;
```
## Task
Generate a SQL query to answer the following question:
`How did the season with 7-2 conference record ed?`

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

CREATE TABLE "division_championships" (
  "season" real,
  "division" text,
  "coach" text,
  "overall_record" text,
  "conference_record" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How did the season with 7-2 conference record ed?`:
```sql
                SELECT "result" FROM "division_championships" WHERE "conference_record"='7-2';
```
## Task
Generate a SQL query to answer the following question:
`In what season was the conference record 4-3?`

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

CREATE TABLE "division_championships" (
  "season" real,
  "division" text,
  "coach" text,
  "overall_record" text,
  "conference_record" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what season was the conference record 4-3?`:
```sql
                SELECT MIN("season") FROM "division_championships" WHERE "conference_record"='4-3';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of third place runners up held by any of the countries competing in the Mr. International competition?. `

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

CREATE TABLE "by_country_tally" (
  "rank" real,
  "country_territory" text,
  "mister_international" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of third place runners up held by any of the countries competing in the Mr. International competition?. `:
```sql
                SELECT MAX("3rd_runner_up") FROM "by_country_tally";
```
## Task
Generate a SQL query to answer the following question:
`The country, competing in the Mr. International competition, that holds a rank of 3, has how many 2nd runners up?`

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

CREATE TABLE "by_country_tally" (
  "rank" real,
  "country_territory" text,
  "mister_international" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `The country, competing in the Mr. International competition, that holds a rank of 3, has how many 2nd runners up?`:
```sql
                SELECT COUNT("2nd_runner_up") FROM "by_country_tally" WHERE "rank"=3;
```
## Task
Generate a SQL query to answer the following question:
`For the country that holds a rank of 2, in the Mr. International Competition, what is the total number of competitors listed as 2nd runner ups?`

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

CREATE TABLE "by_country_tally" (
  "rank" real,
  "country_territory" text,
  "mister_international" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the country that holds a rank of 2, in the Mr. International Competition, what is the total number of competitors listed as 2nd runner ups?`:
```sql
                SELECT COUNT("2nd_runner_up") FROM "by_country_tally" WHERE "rank"=2;
```
## Task
Generate a SQL query to answer the following question:
`How many competitors in total, for the Mr. International competition, does Brazil have? `

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

CREATE TABLE "by_country_tally" (
  "rank" real,
  "country_territory" text,
  "mister_international" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many competitors in total, for the Mr. International competition, does Brazil have? `:
```sql
                SELECT MAX("total") FROM "by_country_tally" WHERE "country_territory"='Brazil';
```
## Task
Generate a SQL query to answer the following question:
`How many games did the player with 3-dart average of 66.86 play?`

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

CREATE TABLE "women_s" (
  "player" text,
  "played" real,
  "sets_won" real,
  "sets_lost" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did the player with 3-dart average of 66.86 play?`:
```sql
                SELECT "played" FROM "women_s" WHERE "3_dart_average"='66.86';
```
## Task
Generate a SQL query to answer the following question:
`What's the 100+ score of the player with 6 won legs?`

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

CREATE TABLE "women_s" (
  "player" text,
  "played" real,
  "sets_won" real,
  "sets_lost" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 100+ score of the player with 6 won legs?`:
```sql
                SELECT MAX("100") FROM "women_s" WHERE "legs_won"=6;
```
## Task
Generate a SQL query to answer the following question:
`What player has a 3-dart average of 75.76?`

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

CREATE TABLE "women_s" (
  "player" text,
  "played" real,
  "sets_won" real,
  "sets_lost" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player has a 3-dart average of 75.76?`:
```sql
                SELECT "player" FROM "women_s" WHERE "3_dart_average"='75.76';
```
## Task
Generate a SQL query to answer the following question:
`What's Trina Gulliver's high checkout?`

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

CREATE TABLE "women_s" (
  "player" text,
  "played" real,
  "sets_won" real,
  "sets_lost" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's Trina Gulliver's high checkout?`:
```sql
                SELECT "high_checkout" FROM "women_s" WHERE "player"='Trina Gulliver';
```
## Task
Generate a SQL query to answer the following question:
`How many legs has the player with high checkout of 80 won?`

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

CREATE TABLE "women_s" (
  "player" text,
  "played" real,
  "sets_won" real,
  "sets_lost" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many legs has the player with high checkout of 80 won?`:
```sql
                SELECT "legs_won" FROM "women_s" WHERE "high_checkout"=80;
```
## Task
Generate a SQL query to answer the following question:
`Name the sanskrit word and meaning for aquarius`

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

CREATE TABLE "kollam_era_calendar" (
  "malayalam_name" text,
  "transliteration" text,
  "concurrent_gregorian_months" text,
  "sanskrit_word_and_meaning" text,
  "zodiac_sign" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sanskrit word and meaning for aquarius`:
```sql
                SELECT "sanskrit_word_and_meaning" FROM "kollam_era_calendar" WHERE "zodiac_sign"='Aquarius';
```
## Task
Generate a SQL query to answer the following question:
`Name the zodiac for കന്നി`

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

CREATE TABLE "kollam_era_calendar" (
  "malayalam_name" text,
  "transliteration" text,
  "concurrent_gregorian_months" text,
  "sanskrit_word_and_meaning" text,
  "zodiac_sign" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the zodiac for കന്നി`:
```sql
                SELECT "zodiac_sign" FROM "kollam_era_calendar" WHERE "malayalam_name"='കന്നി';
```
## Task
Generate a SQL query to answer the following question:
`Name the malayalam name for leo`

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

CREATE TABLE "kollam_era_calendar" (
  "malayalam_name" text,
  "transliteration" text,
  "concurrent_gregorian_months" text,
  "sanskrit_word_and_meaning" text,
  "zodiac_sign" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the malayalam name for leo`:
```sql
                SELECT "malayalam_name" FROM "kollam_era_calendar" WHERE "zodiac_sign"='Leo';
```
## Task
Generate a SQL query to answer the following question:
`Name the transliteration for ചിങ്ങം`

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

CREATE TABLE "kollam_era_calendar" (
  "malayalam_name" text,
  "transliteration" text,
  "concurrent_gregorian_months" text,
  "sanskrit_word_and_meaning" text,
  "zodiac_sign" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the transliteration for ചിങ്ങം`:
```sql
                SELECT "transliteration" FROM "kollam_era_calendar" WHERE "malayalam_name"='ചിങ്ങം';
```
## Task
Generate a SQL query to answer the following question:
`How many votes did McCain get in the county where Obama got 50.7% of the votes?`

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

CREATE TABLE "by_county" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did McCain get in the county where Obama got 50.7% of the votes?`:
```sql
                SELECT MAX("mc_cainnum") FROM "by_county" WHERE "obamapct"='50.7%';
```
## Task
Generate a SQL query to answer the following question:
`Where did McCain get 20226 votes?`

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

CREATE TABLE "by_county" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where did McCain get 20226 votes?`:
```sql
                SELECT "county" FROM "by_county" WHERE "mc_cainnum"=20226;
```
## Task
Generate a SQL query to answer the following question:
`How many people voted in Cabarrus county?`

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

CREATE TABLE "by_county" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people voted in Cabarrus county?`:
```sql
                SELECT MIN("total") FROM "by_county" WHERE "county"='Cabarrus';
```
## Task
Generate a SQL query to answer the following question:
`How many different results were there for the number of votes fro Obama in the county where he got 27.8% of the votes?`

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

CREATE TABLE "by_county" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different results were there for the number of votes fro Obama in the county where he got 27.8% of the votes?`:
```sql
                SELECT COUNT("obamanum") FROM "by_county" WHERE "obamapct"='27.8%';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes directed by ben jones and written by paul dini?`

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

CREATE TABLE "table1_20360535_3" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "television_order" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes directed by ben jones and written by paul dini?`:
```sql
                SELECT COUNT("no") FROM "table1_20360535_3" WHERE "directed_by"='Ben Jones' AND "written_by"='Paul Dini';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of S02E01?`

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

CREATE TABLE "table1_20360535_3" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "television_order" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of S02E01?`:
```sql
                SELECT "title" FROM "table1_20360535_3" WHERE "television_order"='S02E01';
```
## Task
Generate a SQL query to answer the following question:
`What TV order is written by gail simone?`

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

CREATE TABLE "table1_20360535_3" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "television_order" text
);
### SQL
Given the database schema, here is the SQL query that answers `What TV order is written by gail simone?`:
```sql
                SELECT "television_order" FROM "table1_20360535_3" WHERE "written_by"='Gail Simone';
```
## Task
Generate a SQL query to answer the following question:
`who won mens doubles when zhou mi won womens singles`

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

CREATE TABLE "past_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `who won mens doubles when zhou mi won womens singles`:
```sql
                SELECT "mens_doubles" FROM "past_winners" WHERE "womens_singles"='Zhou Mi';
```
## Task
Generate a SQL query to answer the following question:
`who won mixed doubles when zhou mi won womens singles`

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

CREATE TABLE "past_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `who won mixed doubles when zhou mi won womens singles`:
```sql
                SELECT "mixed_doubles" FROM "past_winners" WHERE "womens_singles"='Zhou Mi';
```
## Task
Generate a SQL query to answer the following question:
`state the earliest year li xuerui won womens singles`

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

CREATE TABLE "past_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `state the earliest year li xuerui won womens singles`:
```sql
                SELECT MIN("year") FROM "past_winners" WHERE "womens_singles"='Li Xuerui';
```
## Task
Generate a SQL query to answer the following question:
`who won womens doubles in 2010`

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

CREATE TABLE "past_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `who won womens doubles in 2010`:
```sql
                SELECT "womens_doubles" FROM "past_winners" WHERE "year"=2010;
```
## Task
Generate a SQL query to answer the following question:
`who won mixed doubles when wang yihan won womens singles`

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

CREATE TABLE "past_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `who won mixed doubles when wang yihan won womens singles`:
```sql
                SELECT "mixed_doubles" FROM "past_winners" WHERE "womens_singles"='Wang Yihan';
```
## Task
Generate a SQL query to answer the following question:
`How many county councils for the communist party of norway`

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

CREATE TABLE "non_parliamentary_parties" (
  "english_party_name" text,
  "norwegian_party_name" text,
  "associated_ideology" text,
  "current_leader" text,
  "international_affiliation" text,
  "2013_parliamentary_election" text,
  "county_councils_2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many county councils for the communist party of norway`:
```sql
                SELECT MAX("county_councils_2011") FROM "non_parliamentary_parties" WHERE "english_party_name"='Communist Party of Norway';
```
## Task
Generate a SQL query to answer the following question:
`What percent of the parliamentary election did the pensioners party receive`

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

CREATE TABLE "non_parliamentary_parties" (
  "english_party_name" text,
  "norwegian_party_name" text,
  "associated_ideology" text,
  "current_leader" text,
  "international_affiliation" text,
  "2013_parliamentary_election" text,
  "county_councils_2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `What percent of the parliamentary election did the pensioners party receive`:
```sql
                SELECT "2013_parliamentary_election" FROM "non_parliamentary_parties" WHERE "english_party_name"='Pensioners Party';
```
## Task
Generate a SQL query to answer the following question:
`How many parties are named the Center Alliance`

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

CREATE TABLE "non_parliamentary_parties" (
  "english_party_name" text,
  "norwegian_party_name" text,
  "associated_ideology" text,
  "current_leader" text,
  "international_affiliation" text,
  "2013_parliamentary_election" text,
  "county_councils_2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many parties are named the Center Alliance`:
```sql
                SELECT COUNT("2013_parliamentary_election") FROM "non_parliamentary_parties" WHERE "english_party_name"='Center Alliance';
```
## Task
Generate a SQL query to answer the following question:
`Name the most withdrawn for 37 lstr no.`

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

CREATE TABLE "list_of_locomotives" (
  "ltsr_no" real,
  "ltsr_name" text,
  "builder" text,
  "built" real,
  "mr_no" real,
  "lms_1930_no" real,
  "br_no" real,
  "withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most withdrawn for 37 lstr no.`:
```sql
                SELECT MAX("withdrawn") FROM "list_of_locomotives" WHERE "ltsr_no"=37;
```
## Task
Generate a SQL query to answer the following question:
`how many won 83 points for?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "bonus_points" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many won 83 points for?`:
```sql
                SELECT "won" FROM "2008_2009_table" WHERE "points_for"='83';
```
## Task
Generate a SQL query to answer the following question:
`which club is listed when bonus points is bonus points`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "bonus_points" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `which club is listed when bonus points is bonus points`:
```sql
                SELECT "club" FROM "2008_2009_table" WHERE "bonus_points"='Bonus Points';
```
## Task
Generate a SQL query to answer the following question:
`when the points for is 139 is points difference?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "bonus_points" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `when the points for is 139 is points difference?`:
```sql
                SELECT COUNT("points_difference") FROM "2008_2009_table" WHERE "points_for"='139';
```
## Task
Generate a SQL query to answer the following question:
`when points against is points again, which are the drawn?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "bonus_points" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `when points against is points again, which are the drawn?`:
```sql
                SELECT "drawn" FROM "2008_2009_table" WHERE "points_against"='Points against';
```
## Task
Generate a SQL query to answer the following question:
`when points for is 39 what is the total number of drawn`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "bonus_points" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `when points for is 39 what is the total number of drawn`:
```sql
                SELECT "drawn" FROM "2008_2009_table" WHERE "points_for"='39';
```
## Task
Generate a SQL query to answer the following question:
`what is the mccain % where obama got 19.3%`

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

CREATE TABLE "by_county" (
  "county" text,
  "mc_cain_num" real,
  "mc_cain_pct" text,
  "obama_num" real,
  "obama_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the mccain % where obama got 19.3%`:
```sql
                SELECT "mc_cain_pct" FROM "by_county" WHERE "obama_pct"='19.3%';
```
## Task
Generate a SQL query to answer the following question:
`what is the highest mccain # where obama got 33.7%`

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

CREATE TABLE "by_county" (
  "county" text,
  "mc_cain_num" real,
  "mc_cain_pct" text,
  "obama_num" real,
  "obama_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest mccain # where obama got 33.7%`:
```sql
                SELECT MAX("mc_cain_num") FROM "by_county" WHERE "obama_pct"='33.7%';
```
## Task
Generate a SQL query to answer the following question:
`where did obama get 39.8%`

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

CREATE TABLE "by_county" (
  "county" text,
  "mc_cain_num" real,
  "mc_cain_pct" text,
  "obama_num" real,
  "obama_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `where did obama get 39.8%`:
```sql
                SELECT "county" FROM "by_county" WHERE "obama_pct"='39.8%';
```
## Task
Generate a SQL query to answer the following question:
`what is the obama # in carson city`

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

CREATE TABLE "by_county" (
  "county" text,
  "mc_cain_num" real,
  "mc_cain_pct" text,
  "obama_num" real,
  "obama_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the obama # in carson city`:
```sql
                SELECT "obama_num" FROM "by_county" WHERE "county"='Carson City';
```
## Task
Generate a SQL query to answer the following question:
`where did obama get 41.3%`

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

CREATE TABLE "by_county" (
  "county" text,
  "mc_cain_num" real,
  "mc_cain_pct" text,
  "obama_num" real,
  "obama_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `where did obama get 41.3%`:
```sql
                SELECT "county" FROM "by_county" WHERE "obama_pct"='41.3%';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of season for team bruichladdich`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of season for team bruichladdich`:
```sql
                SELECT COUNT("season") FROM "career_summary" WHERE "team"='Team Bruichladdich';
```
## Task
Generate a SQL query to answer the following question:
`Name the least podiums for 49 points`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least podiums for 49 points`:
```sql
                SELECT MIN("podiums") FROM "career_summary" WHERE "points"='49';
```
## Task
Generate a SQL query to answer the following question:
`Name the least f/laps`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least f/laps`:
```sql
                SELECT MIN("f_laps") FROM "career_summary";
```
## Task
Generate a SQL query to answer the following question:
`Namet he season for wins being 0 and 20 races`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Namet he season for wins being 0 and 20 races`:
```sql
                SELECT "season" FROM "career_summary" WHERE "wins"=0 AND "races"=20;
```
## Task
Generate a SQL query to answer the following question:
`Name the least podiums for 0 wins and 2005 season for 321 points`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least podiums for 0 wins and 2005 season for 321 points`:
```sql
                SELECT MIN("podiums") FROM "career_summary" WHERE "wins"=0 AND "season"=2005 AND "points"='321';
```
## Task
Generate a SQL query to answer the following question:
`What is the Spanish title of the film whose title used in nomination was Ogu and Mampato in Rapa Nui? `

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "spanish_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Spanish title of the film whose title used in nomination was Ogu and Mampato in Rapa Nui? `:
```sql
                SELECT "spanish_title" FROM "submissions" WHERE "film_title_used_in_nomination"='Ogu and Mampato in Rapa Nui';
```
## Task
Generate a SQL query to answer the following question:
`Who was the director of the film that was not nominated and had the Spanish title of play? `

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "spanish_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director of the film that was not nominated and had the Spanish title of play? `:
```sql
                SELECT "director" FROM "submissions" WHERE "result"='Not Nominated' AND "spanish_title"='Play';
```
## Task
Generate a SQL query to answer the following question:
`How many couples have an average of 25.3?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" real,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many couples have an average of 25.3?`:
```sql
                SELECT COUNT("couple") FROM "average_score_chart" WHERE "average"='25.3';
```
## Task
Generate a SQL query to answer the following question:
`How many different numbers of total dances are there for the couple ranked at number 6?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" real,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different numbers of total dances are there for the couple ranked at number 6?`:
```sql
                SELECT COUNT("number_of_dances") FROM "average_score_chart" WHERE "place"=6;
```
## Task
Generate a SQL query to answer the following question:
`What couple has an average of 17.2?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" real,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What couple has an average of 17.2?`:
```sql
                SELECT "couple" FROM "average_score_chart" WHERE "average"='17.2';
```
## Task
Generate a SQL query to answer the following question:
`What's the minimal number of dances a couple has danced?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" real,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the minimal number of dances a couple has danced?`:
```sql
                SELECT MIN("number_of_dances") FROM "average_score_chart";
```
## Task
Generate a SQL query to answer the following question:
`What's the highest number a couple has ranked at?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" real,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest number a couple has ranked at?`:
```sql
                SELECT MAX("place") FROM "average_score_chart";
```
## Task
Generate a SQL query to answer the following question:
`How many crops were damaged when the public property damage was 1,03,049.60?`

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

CREATE TABLE "total_affected_and_damaged_in_bihar_due_" (
  "year" real,
  "district" real,
  "blocks" real,
  "panchayat" real,
  "village" real,
  "human_in_lakh" text,
  "animal_in_lakh" text,
  "total_area_in_lakh_ha" text,
  "cropped_area_in_lakh_ha" text,
  "crop_damaged_in_lakh_inr" text,
  "house_affected" real,
  "public_property_damaged_in_lakh_inr" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many crops were damaged when the public property damage was 1,03,049.60?`:
```sql
                SELECT "crop_damaged_in_lakh_inr" FROM "total_affected_and_damaged_in_bihar_due_" WHERE "public_property_damaged_in_lakh_inr"='1,03,049.60';
```
## Task
Generate a SQL query to answer the following question:
`What is the panchayat when the public property damage was 1,03,049.60`

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

CREATE TABLE "total_affected_and_damaged_in_bihar_due_" (
  "year" real,
  "district" real,
  "blocks" real,
  "panchayat" real,
  "village" real,
  "human_in_lakh" text,
  "animal_in_lakh" text,
  "total_area_in_lakh_ha" text,
  "cropped_area_in_lakh_ha" text,
  "crop_damaged_in_lakh_inr" text,
  "house_affected" real,
  "public_property_damaged_in_lakh_inr" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the panchayat when the public property damage was 1,03,049.60`:
```sql
                SELECT MAX("panchayat") FROM "total_affected_and_damaged_in_bihar_due_" WHERE "public_property_damaged_in_lakh_inr"='1,03,049.60';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest village that had 103279 houses affected? `

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

CREATE TABLE "total_affected_and_damaged_in_bihar_due_" (
  "year" real,
  "district" real,
  "blocks" real,
  "panchayat" real,
  "village" real,
  "human_in_lakh" text,
  "animal_in_lakh" text,
  "total_area_in_lakh_ha" text,
  "cropped_area_in_lakh_ha" text,
  "crop_damaged_in_lakh_inr" text,
  "house_affected" real,
  "public_property_damaged_in_lakh_inr" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest village that had 103279 houses affected? `:
```sql
                SELECT MAX("village") FROM "total_affected_and_damaged_in_bihar_due_" WHERE "house_affected"=103279;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest district that had 33.25 in animals`

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

CREATE TABLE "total_affected_and_damaged_in_bihar_due_" (
  "year" real,
  "district" real,
  "blocks" real,
  "panchayat" real,
  "village" real,
  "human_in_lakh" text,
  "animal_in_lakh" text,
  "total_area_in_lakh_ha" text,
  "cropped_area_in_lakh_ha" text,
  "crop_damaged_in_lakh_inr" text,
  "house_affected" real,
  "public_property_damaged_in_lakh_inr" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest district that had 33.25 in animals`:
```sql
                SELECT MIN("district") FROM "total_affected_and_damaged_in_bihar_due_" WHERE "animal_in_lakh"='33.25';
```
## Task
Generate a SQL query to answer the following question:
`How many districts had crib damage of 1,164.50?`

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

CREATE TABLE "total_affected_and_damaged_in_bihar_due_" (
  "year" real,
  "district" real,
  "blocks" real,
  "panchayat" real,
  "village" real,
  "human_in_lakh" text,
  "animal_in_lakh" text,
  "total_area_in_lakh_ha" text,
  "cropped_area_in_lakh_ha" text,
  "crop_damaged_in_lakh_inr" text,
  "house_affected" real,
  "public_property_damaged_in_lakh_inr" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many districts had crib damage of 1,164.50?`:
```sql
                SELECT COUNT("district") FROM "total_affected_and_damaged_in_bihar_due_" WHERE "crop_damaged_in_lakh_inr"='1,164.50';
```
## Task
Generate a SQL query to answer the following question:
`Where did Obama get 37.1%?`

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

CREATE TABLE "by_county" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real,
  "otherspct" text,
  "others" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Obama get 37.1%?`:
```sql
                SELECT "county" FROM "by_county" WHERE "obamapct"='37.1%';
```
## Task
Generate a SQL query to answer the following question:
`What's the county where McCain got 60.6% and Obama got 37.3%?`

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

CREATE TABLE "by_county" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real,
  "otherspct" text,
  "others" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the county where McCain got 60.6% and Obama got 37.3%?`:
```sql
                SELECT "county" FROM "by_county" WHERE "mc_cainpct"='60.6%' AND "obamapct"='37.3%';
```
## Task
Generate a SQL query to answer the following question:
`What's the number of McCain votes in the county where Obama got 35.7% and others got 1.9% of the votes?`

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

CREATE TABLE "by_county" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real,
  "otherspct" text,
  "others" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of McCain votes in the county where Obama got 35.7% and others got 1.9% of the votes?`:
```sql
                SELECT MIN("mc_cainnum") FROM "by_county" WHERE "obamapct"='35.7%' AND "otherspct"='1.9%';
```
## Task
Generate a SQL query to answer the following question:
`How many votes did Obama get in Geauga?`

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

CREATE TABLE "by_county" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real,
  "otherspct" text,
  "others" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did Obama get in Geauga?`:
```sql
                SELECT "obamanum" FROM "by_county" WHERE "county"='Geauga';
```