cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many different total results are there for the model with parchment/black interior/roof?`

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

CREATE TABLE "convertible" (
  "interior_roof" text,
  "black_ua" real,
  "red_e8" real,
  "white_zr" real,
  "green_sw" real,
  "totals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different total results are there for the model with parchment/black interior/roof?`:
```sql
                SELECT COUNT("totals") FROM "convertible" WHERE "interior_roof"='Parchment/black';
```
## Task
Generate a SQL query to answer the following question:
`Where did aaron wagner go to college`

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

CREATE TABLE "cfl_draft" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did aaron wagner go to college`:
```sql
                SELECT "college" FROM "cfl_draft" WHERE "player"='Aaron Wagner';
```
## Task
Generate a SQL query to answer the following question:
`Where did the ol go to college?`

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

CREATE TABLE "cfl_draft" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the ol go to college?`:
```sql
                SELECT "college" FROM "cfl_draft" WHERE "position"='OL';
```
## Task
Generate a SQL query to answer the following question:
`Name the number for new mexico`

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

CREATE TABLE "cfl_draft" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number for new mexico`:
```sql
                SELECT MIN("pick_num") FROM "cfl_draft" WHERE "college"='New Mexico';
```
## Task
Generate a SQL query to answer the following question:
`Name the number for db`

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

CREATE TABLE "cfl_draft" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number for db`:
```sql
                SELECT COUNT("pick_num") FROM "cfl_draft" WHERE "position"='DB';
```
## Task
Generate a SQL query to answer the following question:
`Name the player for ol`

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

CREATE TABLE "cfl_draft" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the player for ol`:
```sql
                SELECT "player" FROM "cfl_draft" WHERE "position"='OL';
```
## Task
Generate a SQL query to answer the following question:
`Name the number for dl`

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

CREATE TABLE "cfl_draft" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number for dl`:
```sql
                SELECT "pick_num" FROM "cfl_draft" WHERE "position"='DL';
```
## Task
Generate a SQL query to answer the following question:
`Which companies have a free float of 0.2726?`

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

CREATE TABLE "composition" (
  "bse_code" text,
  "company" text,
  "city" text,
  "gics_sector" text,
  "free_float" text,
  "index_weighting_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which companies have a free float of 0.2726?`:
```sql
                SELECT "company" FROM "composition" WHERE "free_float"='0.2726';
```
## Task
Generate a SQL query to answer the following question:
`What is every BSE code for a free float of 0.2726?`

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

CREATE TABLE "composition" (
  "bse_code" text,
  "company" text,
  "city" text,
  "gics_sector" text,
  "free_float" text,
  "index_weighting_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every BSE code for a free float of 0.2726?`:
```sql
                SELECT "bse_code" FROM "composition" WHERE "free_float"='0.2726';
```
## Task
Generate a SQL query to answer the following question:
`What is every GICS sector for free float of 0.3180?`

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

CREATE TABLE "composition" (
  "bse_code" text,
  "company" text,
  "city" text,
  "gics_sector" text,
  "free_float" text,
  "index_weighting_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every GICS sector for free float of 0.3180?`:
```sql
                SELECT "gics_sector" FROM "composition" WHERE "free_float"='0.3180';
```
## Task
Generate a SQL query to answer the following question:
`What is every company with an index weighting % of 1 and the city of Dimitrovgrad?`

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

CREATE TABLE "composition" (
  "bse_code" text,
  "company" text,
  "city" text,
  "gics_sector" text,
  "free_float" text,
  "index_weighting_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every company with an index weighting % of 1 and the city of Dimitrovgrad?`:
```sql
                SELECT "company" FROM "composition" WHERE "index_weighting_pct"='1' AND "city"='Dimitrovgrad';
```
## Task
Generate a SQL query to answer the following question:
`How many GICS sectors have a free float of 0.2391?`

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

CREATE TABLE "composition" (
  "bse_code" text,
  "company" text,
  "city" text,
  "gics_sector" text,
  "free_float" text,
  "index_weighting_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many GICS sectors have a free float of 0.2391?`:
```sql
                SELECT COUNT("gics_sector") FROM "composition" WHERE "free_float"='0.2391';
```
## Task
Generate a SQL query to answer the following question:
`How many values of free float for the BSE code of 4EH?`

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

CREATE TABLE "composition" (
  "bse_code" text,
  "company" text,
  "city" text,
  "gics_sector" text,
  "free_float" text,
  "index_weighting_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values of free float for the BSE code of 4EH?`:
```sql
                SELECT COUNT("free_float") FROM "composition" WHERE "bse_code"='4EH';
```
## Task
Generate a SQL query to answer the following question:
`When was the poll that showed 54% for and 22% undecided conducted?`

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

CREATE TABLE "opinion_polls" (
  "date_of_opinion_poll" text,
  "conductor" text,
  "sample_size" real,
  "for" text,
  "against" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the poll that showed 54% for and 22% undecided conducted?`:
```sql
                SELECT "date_of_opinion_poll" FROM "opinion_polls" WHERE "for"='54%' AND "undecided"='22%';
```
## Task
Generate a SQL query to answer the following question:
`How many polls taken on different dates show an undecided percentage of 25%?`

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

CREATE TABLE "opinion_polls" (
  "date_of_opinion_poll" text,
  "conductor" text,
  "sample_size" real,
  "for" text,
  "against" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many polls taken on different dates show an undecided percentage of 25%?`:
```sql
                SELECT COUNT("date_of_opinion_poll") FROM "opinion_polls" WHERE "undecided"='25%';
```
## Task
Generate a SQL query to answer the following question:
`When was Quantum Research's poll conducted?`

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

CREATE TABLE "opinion_polls" (
  "date_of_opinion_poll" text,
  "conductor" text,
  "sample_size" real,
  "for" text,
  "against" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Quantum Research's poll conducted?`:
```sql
                SELECT "date_of_opinion_poll" FROM "opinion_polls" WHERE "conductor"='Quantum Research';
```
## Task
Generate a SQL query to answer the following question:
`Who conducted the poll with sample size of 2000 that shows 18% undecided?`

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

CREATE TABLE "opinion_polls" (
  "date_of_opinion_poll" text,
  "conductor" text,
  "sample_size" real,
  "for" text,
  "against" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who conducted the poll with sample size of 2000 that shows 18% undecided?`:
```sql
                SELECT "conductor" FROM "opinion_polls" WHERE "undecided"='18%' AND "sample_size"=2000;
```
## Task
Generate a SQL query to answer the following question:
`How tall is the contestant from Ecuador?`

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

CREATE TABLE "official_delegates" (
  "country" text,
  "contestant" text,
  "age" real,
  "height_cm" real,
  "height_ft" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall is the contestant from Ecuador?`:
```sql
                SELECT "height_ft" FROM "official_delegates" WHERE "country"='Ecuador';
```
## Task
Generate a SQL query to answer the following question:
`How tall is the contestant from Aruba?`

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

CREATE TABLE "official_delegates" (
  "country" text,
  "contestant" text,
  "age" real,
  "height_cm" real,
  "height_ft" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall is the contestant from Aruba?`:
```sql
                SELECT "height_ft" FROM "official_delegates" WHERE "country"='Aruba';
```
## Task
Generate a SQL query to answer the following question:
`What country is the contestant from San Francisco de Yojoa from?`

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

CREATE TABLE "official_delegates" (
  "country" text,
  "contestant" text,
  "age" real,
  "height_cm" real,
  "height_ft" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is the contestant from San Francisco de Yojoa from?`:
```sql
                SELECT "country" FROM "official_delegates" WHERE "hometown"='San Francisco de Yojoa';
```
## Task
Generate a SQL query to answer the following question:
`How many different heights are there for the contestants from Warsaw?`

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

CREATE TABLE "official_delegates" (
  "country" text,
  "contestant" text,
  "age" real,
  "height_cm" real,
  "height_ft" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different heights are there for the contestants from Warsaw?`:
```sql
                SELECT COUNT("height_ft") FROM "official_delegates" WHERE "hometown"='Warsaw';
```
## Task
Generate a SQL query to answer the following question:
`What is the total of countys where Obama is popular by 35.44%?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of countys where Obama is popular by 35.44%?`:
```sql
                SELECT COUNT("county") FROM "by_county" WHERE "obamapct"='35.44%';
```
## Task
Generate a SQL query to answer the following question:
`What are McCain's Percent when Obama has 36.47%?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What are McCain's Percent when Obama has 36.47%?`:
```sql
                SELECT "mc_cainpct" FROM "by_county" WHERE "obamapct"='36.47%';
```
## Task
Generate a SQL query to answer the following question:
`What is McCains percent when Obamas is 39.13%`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What is McCains percent when Obamas is 39.13%`:
```sql
                SELECT COUNT("mc_cainnum") FROM "by_county" WHERE "obamapct"='39.13%';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum Obama supporters in Wayne 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
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum Obama supporters in Wayne county?`:
```sql
                SELECT MAX("obamanum") FROM "by_county" WHERE "county"='Wayne';
```
## Task
Generate a SQL query to answer the following question:
`Name th epopulation may for general terrero`

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

CREATE TABLE "barangays_districts" (
  "barangay" text,
  "district" text,
  "population_may_1_2000" real,
  "population_august_1_2007" real,
  "population_may_1_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name th epopulation may for general terrero`:
```sql
                SELECT "population_may_1_2000" FROM "barangays_districts" WHERE "barangay"='General Terrero';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of district for population may being 478`

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

CREATE TABLE "barangays_districts" (
  "barangay" text,
  "district" text,
  "population_may_1_2000" real,
  "population_august_1_2007" real,
  "population_may_1_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of district for population may being 478`:
```sql
                SELECT COUNT("district") FROM "barangays_districts" WHERE "population_may_1_2010"='478';
```
## Task
Generate a SQL query to answer the following question:
`Name the population may for cadalusan for population 1423`

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

CREATE TABLE "barangays_districts" (
  "barangay" text,
  "district" text,
  "population_may_1_2000" real,
  "population_august_1_2007" real,
  "population_may_1_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the population may for cadalusan for population 1423`:
```sql
                SELECT "population_may_1_2010" FROM "barangays_districts" WHERE "district"='CadaLuSan' AND "population_august_1_2007"=1423;
```
## Task
Generate a SQL query to answer the following question:
`What is the season number for Series #23, the Runway Job?`

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

CREATE TABLE "table1_20704243_3" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the season number for Series #23, the Runway Job?`:
```sql
                SELECT "season_num" FROM "table1_20704243_3" WHERE "series_num"=23;
```
## Task
Generate a SQL query to answer the following question:
`What series was directed by Mark Roskin?`

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

CREATE TABLE "table1_20704243_3" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What series was directed by Mark Roskin?`:
```sql
                SELECT MIN("series_num") FROM "table1_20704243_3" WHERE "directed_by"='Mark Roskin';
```
## Task
Generate a SQL query to answer the following question:
`How many were written by Peter Winther?`

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

CREATE TABLE "table1_20704243_3" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were written by Peter Winther?`:
```sql
                SELECT COUNT("written_by") FROM "table1_20704243_3" WHERE "directed_by"='Peter Winther';
```
## Task
Generate a SQL query to answer the following question:
`How many directors were in Season 2?`

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

CREATE TABLE "table1_20704243_3" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many directors were in Season 2?`:
```sql
                SELECT COUNT("directed_by") FROM "table1_20704243_3" WHERE "season_num"=2;
```
## Task
Generate a SQL query to answer the following question:
`Who is the director of the episode titled "The Reunion Job"?`

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

CREATE TABLE "table1_20704243_4" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director of the episode titled "The Reunion Job"?`:
```sql
                SELECT "directed_by" FROM "table1_20704243_4" WHERE "title"='\"The Reunion Job\"';
```
## Task
Generate a SQL query to answer the following question:
`When was the episode written by Albert Kim aired for the first time?`

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

CREATE TABLE "table1_20704243_4" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the episode written by Albert Kim aired for the first time?`:
```sql
                SELECT "original_air_date" FROM "table1_20704243_4" WHERE "written_by"='Albert Kim';
```
## Task
Generate a SQL query to answer the following question:
`When was the episode titled "The Boost Job" originally aired?`

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

CREATE TABLE "table1_20704243_4" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the episode titled "The Boost Job" originally aired?`:
```sql
                SELECT "original_air_date" FROM "table1_20704243_4" WHERE "title"='\"The Boost Job\"';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of people in the US saw the episode titled "The Reunion Job"?`

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

CREATE TABLE "table1_20704243_4" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of people in the US saw the episode titled "The Reunion Job"?`:
```sql
                SELECT "u_s_viewers_in_millions" FROM "table1_20704243_4" WHERE "title"='\"The Reunion Job\"';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode titled "The Morning After Job"?`

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

CREATE TABLE "table1_20704243_4" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode titled "The Morning After Job"?`:
```sql
                SELECT "written_by" FROM "table1_20704243_4" WHERE "title"='\"The Morning After Job\"';
```
## Task
Generate a SQL query to answer the following question:
`Name the series number for  m. scott veach & rebecca kirsch`

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

CREATE TABLE "table1_20704243_5" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the series number for  m. scott veach & rebecca kirsch`:
```sql
                SELECT "series_num" FROM "table1_20704243_5" WHERE "written_by"='M. Scott Veach & Rebecca Kirsch';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of viewers for series number 50`

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

CREATE TABLE "table1_20704243_5" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of viewers for series number 50`:
```sql
                SELECT "u_s_viewers_in_millions" FROM "table1_20704243_5" WHERE "series_num"=50;
```
## Task
Generate a SQL query to answer the following question:
`Name who directed season 1`

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

CREATE TABLE "table1_20704243_5" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name who directed season 1`:
```sql
                SELECT "directed_by" FROM "table1_20704243_5" WHERE "season_num"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the moment of intertia in torsion (j) Cm4) for the beam height (mm) 120??=`

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

CREATE TABLE "indian_standard_beams_ismb" (
  "type" text,
  "beam_height_mm" real,
  "flange_width_mm" real,
  "web_thickness_mm" text,
  "flange_thickness_mm" text,
  "weight_kg_m" text,
  "cross_section_area_cm_2" text,
  "moment_of_inertia_in_torsion_j_cm_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the moment of intertia in torsion (j) Cm4) for the beam height (mm) 120??=`:
```sql
                SELECT COUNT("moment_of_inertia_in_torsion_j_cm_4") FROM "indian_standard_beams_ismb" WHERE "beam_height_mm"=120;
```
## Task
Generate a SQL query to answer the following question:
`What is the cross section area (cm 2) for the moment of intertia in torsion (j) (cm 4) 2.54?`

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

CREATE TABLE "indian_standard_beams_ismb" (
  "type" text,
  "beam_height_mm" real,
  "flange_width_mm" real,
  "web_thickness_mm" text,
  "flange_thickness_mm" text,
  "weight_kg_m" text,
  "cross_section_area_cm_2" text,
  "moment_of_inertia_in_torsion_j_cm_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the cross section area (cm 2) for the moment of intertia in torsion (j) (cm 4) 2.54?`:
```sql
                SELECT "cross_section_area_cm_2" FROM "indian_standard_beams_ismb" WHERE "moment_of_inertia_in_torsion_j_cm_4"='2.54';
```
## Task
Generate a SQL query to answer the following question:
`What is the flange thickness (mm) for the weight (kg/m) 6.0?Wg`

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

CREATE TABLE "indian_standard_beams_ismb" (
  "type" text,
  "beam_height_mm" real,
  "flange_width_mm" real,
  "web_thickness_mm" text,
  "flange_thickness_mm" text,
  "weight_kg_m" text,
  "cross_section_area_cm_2" text,
  "moment_of_inertia_in_torsion_j_cm_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the flange thickness (mm) for the weight (kg/m) 6.0?Wg`:
```sql
                SELECT "flange_thickness_mm" FROM "indian_standard_beams_ismb" WHERE "weight_kg_m"='6.0';
```
## Task
Generate a SQL query to answer the following question:
`What is the number for the moment of intertia in torsion (j) (cm 4) for the 4.7 web thickness (mm)?`

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

CREATE TABLE "indian_standard_beams_ismb" (
  "type" text,
  "beam_height_mm" real,
  "flange_width_mm" real,
  "web_thickness_mm" text,
  "flange_thickness_mm" text,
  "weight_kg_m" text,
  "cross_section_area_cm_2" text,
  "moment_of_inertia_in_torsion_j_cm_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number for the moment of intertia in torsion (j) (cm 4) for the 4.7 web thickness (mm)?`:
```sql
                SELECT COUNT("moment_of_inertia_in_torsion_j_cm_4") FROM "indian_standard_beams_ismb" WHERE "web_thickness_mm"='4.7';
```
## Task
Generate a SQL query to answer the following question:
`What is the flange thickness (mm) for the weight (kg/m) 10.4?`

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

CREATE TABLE "indian_standard_beams_ismb" (
  "type" text,
  "beam_height_mm" real,
  "flange_width_mm" real,
  "web_thickness_mm" text,
  "flange_thickness_mm" text,
  "weight_kg_m" text,
  "cross_section_area_cm_2" text,
  "moment_of_inertia_in_torsion_j_cm_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the flange thickness (mm) for the weight (kg/m) 10.4?`:
```sql
                SELECT "flange_thickness_mm" FROM "indian_standard_beams_ismb" WHERE "weight_kg_m"='10.4';
```
## Task
Generate a SQL query to answer the following question:
`What is the flange width (mm) for cross section area (cm 2) 16.4?`

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

CREATE TABLE "indian_standard_beams_ismb" (
  "type" text,
  "beam_height_mm" real,
  "flange_width_mm" real,
  "web_thickness_mm" text,
  "flange_thickness_mm" text,
  "weight_kg_m" text,
  "cross_section_area_cm_2" text,
  "moment_of_inertia_in_torsion_j_cm_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the flange width (mm) for cross section area (cm 2) 16.4?`:
```sql
                SELECT COUNT("flange_width_mm") FROM "indian_standard_beams_ismb" WHERE "cross_section_area_cm_2"='16.4';
```
## Task
Generate a SQL query to answer the following question:
`In what round was lyon (32) a 5 seed?`

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

CREATE TABLE "players" (
  "seed" real,
  "player" text,
  "marseille_32_draw" text,
  "metz_32" text,
  "lyon_32" text,
  "paris_48_byes" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what round was lyon (32) a 5 seed?`:
```sql
                SELECT "lyon_32" FROM "players" WHERE "seed"=5;
```
## Task
Generate a SQL query to answer the following question:
`How many items were recorded marseille (32 draw) was a 2 seed?`

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

CREATE TABLE "players" (
  "seed" real,
  "player" text,
  "marseille_32_draw" text,
  "metz_32" text,
  "lyon_32" text,
  "paris_48_byes" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many items were recorded marseille (32 draw) was a 2 seed?`:
```sql
                SELECT COUNT("marseille_32_draw") FROM "players" WHERE "seed"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the seed for lyon (32) was DNQ?`

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

CREATE TABLE "players" (
  "seed" real,
  "player" text,
  "marseille_32_draw" text,
  "metz_32" text,
  "lyon_32" text,
  "paris_48_byes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the seed for lyon (32) was DNQ?`:
```sql
                SELECT MAX("seed") FROM "players" WHERE "lyon_32"='DNQ';
```
## Task
Generate a SQL query to answer the following question:
`What was the result for Paris(48-byes) for 3 seed?`

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

CREATE TABLE "players" (
  "seed" real,
  "player" text,
  "marseille_32_draw" text,
  "metz_32" text,
  "lyon_32" text,
  "paris_48_byes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for Paris(48-byes) for 3 seed?`:
```sql
                SELECT "paris_48_byes" FROM "players" WHERE "seed"=3;
```
## Task
Generate a SQL query to answer the following question:
`What was McCain's percentage when Obama had 64.39% of the vote?`

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

CREATE TABLE "by" (
  "parish" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was McCain's percentage when Obama had 64.39% of the vote?`:
```sql
                SELECT "mc_cainpct" FROM "by" WHERE "obamapct"='64.39%';
```
## Task
Generate a SQL query to answer the following question:
`What was McCain's vote when Obama had 48.35%`

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

CREATE TABLE "by" (
  "parish" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was McCain's vote when Obama had 48.35%`:
```sql
                SELECT MIN("mc_cainnum") FROM "by" WHERE "obamapct"='48.35%';
```
## Task
Generate a SQL query to answer the following question:
`How many votes did Obama have at 32.12%`

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

CREATE TABLE "by" (
  "parish" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did Obama have at 32.12%`:
```sql
                SELECT MIN("obamanum") FROM "by" WHERE "obamapct"='32.12%';
```
## Task
Generate a SQL query to answer the following question:
`What parish did McCain have 45.37% of the votes?`

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

CREATE TABLE "by" (
  "parish" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What parish did McCain have 45.37% of the votes?`:
```sql
                SELECT "parish" FROM "by" WHERE "mc_cainpct"='45.37%';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of votes McCain had in Webster?`

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

CREATE TABLE "by" (
  "parish" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of votes McCain had in Webster?`:
```sql
                SELECT MAX("mc_cainnum") FROM "by" WHERE "parish"='Webster';
```
## Task
Generate a SQL query to answer the following question:
`What was the original air date for the episode with production code 1wab06?`

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

CREATE TABLE "table1_20726262_2" (
  "no_in_series" real,
  "title" text,
  "directedby" text,
  "writtenby" text,
  "originalairdate" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date for the episode with production code 1wab06?`:
```sql
                SELECT "originalairdate" FROM "table1_20726262_2" WHERE "production_code"='1WAB06';
```
## Task
Generate a SQL query to answer the following question:
`What title episode did Paris Barclay direct?`

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

CREATE TABLE "table1_20726262_2" (
  "no_in_series" real,
  "title" text,
  "directedby" text,
  "writtenby" text,
  "originalairdate" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What title episode did Paris Barclay direct?`:
```sql
                SELECT "title" FROM "table1_20726262_2" WHERE "directedby"='Paris Barclay';
```
## Task
Generate a SQL query to answer the following question:
`What was the production code for episode #1?`

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

CREATE TABLE "table1_20726262_2" (
  "no_in_series" real,
  "title" text,
  "directedby" text,
  "writtenby" text,
  "originalairdate" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the production code for episode #1?`:
```sql
                SELECT "production_code" FROM "table1_20726262_2" WHERE "no_in_series"=1;
```
## Task
Generate a SQL query to answer the following question:
`What number episode was written by kurt sutter & jack logiudice?`

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

CREATE TABLE "table1_20726262_2" (
  "no_in_series" real,
  "title" text,
  "directedby" text,
  "writtenby" text,
  "originalairdate" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number episode was written by kurt sutter & jack logiudice?`:
```sql
                SELECT MAX("no_in_series") FROM "table1_20726262_2" WHERE "writtenby"='Kurt Sutter & Jack LoGiudice';
```
## Task
Generate a SQL query to answer the following question:
`What was the production code for the episode with 3.38 million viewers?`

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

CREATE TABLE "table1_20726262_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directedby" text,
  "writtenby" text,
  "originalairdate" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the production code for the episode with 3.38 million viewers?`:
```sql
                SELECT "production_code" FROM "table1_20726262_3" WHERE "u_s_viewers_million"='3.38';
```
## Task
Generate a SQL query to answer the following question:
`Who were the writers for "Balm"?`

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

CREATE TABLE "table1_20726262_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directedby" text,
  "writtenby" text,
  "originalairdate" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the writers for "Balm"?`:
```sql
                SELECT "writtenby" FROM "table1_20726262_3" WHERE "title"='\"Balm\"';
```
## Task
Generate a SQL query to answer the following question:
`What season number did production code  2wab12?`

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

CREATE TABLE "table1_20726262_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directedby" text,
  "writtenby" text,
  "originalairdate" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season number did production code  2wab12?`:
```sql
                SELECT "no_in_season" FROM "table1_20726262_3" WHERE "production_code"='2WAB12';
```
## Task
Generate a SQL query to answer the following question:
`How many numbers in the season were written by  Brett Conrad & Liz Sagal?`

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

CREATE TABLE "table1_20726262_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directedby" text,
  "writtenby" text,
  "originalairdate" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many numbers in the season were written by  Brett Conrad & Liz Sagal?`:
```sql
                SELECT COUNT("no_in_season") FROM "table1_20726262_3" WHERE "writtenby"='Brett Conrad & Liz Sagal';
```
## Task
Generate a SQL query to answer the following question:
`what i the maximum number in the series where the production code is 3wab07?`

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

CREATE TABLE "table1_20726262_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directedby" text,
  "writtenby" text,
  "originalairdate" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `what i the maximum number in the series where the production code is 3wab07?`:
```sql
                SELECT MAX("no_in_series") FROM "table1_20726262_4" WHERE "production_code"='3WAB07';
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum number in the season wher the us viewers is 2.59?`

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

CREATE TABLE "table1_20726262_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directedby" text,
  "writtenby" text,
  "originalairdate" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum number in the season wher the us viewers is 2.59?`:
```sql
                SELECT MAX("no_in_season") FROM "table1_20726262_4" WHERE "u_s_viewers_million"='2.59';
```
## Task
Generate a SQL query to answer the following question:
`what is the written by and production code is 3wab03?`

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

CREATE TABLE "table1_20726262_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directedby" text,
  "writtenby" text,
  "originalairdate" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the written by and production code is 3wab03?`:
```sql
                SELECT "writtenby" FROM "table1_20726262_4" WHERE "production_code"='3WAB03';
```
## Task
Generate a SQL query to answer the following question:
`How many seats were won, when the seats contested was 48?`

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

CREATE TABLE "table1_20728138_1" (
  "party" text,
  "seats_contested" real,
  "seats_won" real,
  "no_of_votes" real,
  "pct_of_votes" text,
  "pct_in_seats_contested" text,
  "seats_forfeited" real,
  "2003_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seats were won, when the seats contested was 48?`:
```sql
                SELECT "seats_won" FROM "table1_20728138_1" WHERE "seats_contested"=48;
```
## Task
Generate a SQL query to answer the following question:
`How many seats are contested for independents?`

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

CREATE TABLE "table1_20728138_1" (
  "party" text,
  "seats_contested" real,
  "seats_won" real,
  "no_of_votes" real,
  "pct_of_votes" text,
  "pct_in_seats_contested" text,
  "seats_forfeited" real,
  "2003_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seats are contested for independents?`:
```sql
                SELECT "seats_contested" FROM "table1_20728138_1" WHERE "party"='Independents';
```
## Task
Generate a SQL query to answer the following question:
`What is the percentage seats contested for the revolutionary socialist party?`

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

CREATE TABLE "table1_20728138_1" (
  "party" text,
  "seats_contested" real,
  "seats_won" real,
  "no_of_votes" real,
  "pct_of_votes" text,
  "pct_in_seats_contested" text,
  "seats_forfeited" real,
  "2003_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage seats contested for the revolutionary socialist party?`:
```sql
                SELECT "pct_in_seats_contested" FROM "table1_20728138_1" WHERE "party"='Revolutionary Socialist Party';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2003 seat number, when seats contested was at 38.23%`

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

CREATE TABLE "table1_20728138_1" (
  "party" text,
  "seats_contested" real,
  "seats_won" real,
  "no_of_votes" real,
  "pct_of_votes" text,
  "pct_in_seats_contested" text,
  "seats_forfeited" real,
  "2003_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2003 seat number, when seats contested was at 38.23%`:
```sql
                SELECT MIN("2003_seats") FROM "table1_20728138_1" WHERE "pct_in_seats_contested"='38.23%';
```
## Task
Generate a SQL query to answer the following question:
`How many seats were forfeited in the revolutionary socialist party?`

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

CREATE TABLE "table1_20728138_1" (
  "party" text,
  "seats_contested" real,
  "seats_won" real,
  "no_of_votes" real,
  "pct_of_votes" text,
  "pct_in_seats_contested" text,
  "seats_forfeited" real,
  "2003_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seats were forfeited in the revolutionary socialist party?`:
```sql
                SELECT COUNT("seats_forfeited") FROM "table1_20728138_1" WHERE "party"='Revolutionary Socialist Party';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when the attendance was exactly 16642?`

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

CREATE TABLE "game_log" (
  "num" real,
  "date" text,
  "at_vs" text,
  "opponent" text,
  "score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when the attendance was exactly 16642?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "attendance"=16642;
```
## Task
Generate a SQL query to answer the following question:
`What is the score for game #7?`

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

CREATE TABLE "game_log" (
  "num" real,
  "date" text,
  "at_vs" text,
  "opponent" text,
  "score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for game #7?`:
```sql
                SELECT "score" FROM "game_log" WHERE "num"=7;
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on February 28, 1991`

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

CREATE TABLE "game_log" (
  "num" real,
  "date" text,
  "at_vs" text,
  "opponent" text,
  "score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on February 28, 1991`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='February 28, 1991';
```
## Task
Generate a SQL query to answer the following question:
`What was the date when the record was 1-0?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "tar_heels_points" real,
  "opponents" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date when the record was 1-0?`:
```sql
                SELECT "date" FROM "schedule" WHERE "record"='1-0';
```
## Task
Generate a SQL query to answer the following question:
`How many results finished in a loss?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "tar_heels_points" real,
  "opponents" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many results finished in a loss?`:
```sql
                SELECT COUNT("tar_heels_points") FROM "schedule" WHERE "result"='Loss';
```
## Task
Generate a SQL query to answer the following question:
`How many games were against Furman?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "tar_heels_points" real,
  "opponents" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were against Furman?`:
```sql
                SELECT MAX("game") FROM "schedule" WHERE "opponent"='Furman';
```
## Task
Generate a SQL query to answer the following question:
`How many times were Duke the opponents?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "tar_heels_points" real,
  "opponents" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times were Duke the opponents?`:
```sql
                SELECT COUNT("opponents") FROM "schedule" WHERE "opponent"='Duke';
```