cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the total rank for the lane before 2?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total rank for the lane before 2?`:
```sql
                SELECT SUM("rank") FROM "semifinal_2" WHERE "lane"<2;
```
## Task
Generate a SQL query to answer the following question:
`What genre is the game from the year 2007?`

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

CREATE TABLE "readers_choice" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What genre is the game from the year 2007?`:
```sql
                SELECT "genre" FROM "readers_choice" WHERE "year"=2007;
```
## Task
Generate a SQL query to answer the following question:
`What is the Game that came out before the year 2009 for the Playstation 3?`

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

CREATE TABLE "readers_choice" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Game that came out before the year 2009 for the Playstation 3?`:
```sql
                SELECT "game" FROM "readers_choice" WHERE "platform_s"='playstation 3' AND "year"<2009;
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year that had the Legend of Zelda: Twilight Princess game?`

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

CREATE TABLE "readers_choice" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year that had the Legend of Zelda: Twilight Princess game?`:
```sql
                SELECT MIN("year") FROM "readers_choice" WHERE "game"='the legend of zelda: twilight princess';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on November 15, 1981?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on November 15, 1981?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='november 15, 1981';
```
## Task
Generate a SQL query to answer the following question:
`Which Debut year has a Player of noel carroll, and Games smaller than 12?`

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

CREATE TABLE "1950s" (
  "debut_year" real,
  "player" text,
  "games" real,
  "goals" real,
  "years_at_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Debut year has a Player of noel carroll, and Games smaller than 12?`:
```sql
                SELECT MAX("debut_year") FROM "1950s" WHERE "player"='noel carroll' AND "games"<12;
```
## Task
Generate a SQL query to answer the following question:
`Which Goals have a Player of noel carroll?`

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

CREATE TABLE "1950s" (
  "debut_year" real,
  "player" text,
  "games" real,
  "goals" real,
  "years_at_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Goals have a Player of noel carroll?`:
```sql
                SELECT MIN("goals") FROM "1950s" WHERE "player"='noel carroll';
```
## Task
Generate a SQL query to answer the following question:
`How many debut years have Years at club of 1950–1951, and Games larger than 14?`

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

CREATE TABLE "1950s" (
  "debut_year" real,
  "player" text,
  "games" real,
  "goals" real,
  "years_at_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many debut years have Years at club of 1950–1951, and Games larger than 14?`:
```sql
                SELECT SUM("debut_year") FROM "1950s" WHERE "years_at_club"='1950–1951' AND "games">14;
```
## Task
Generate a SQL query to answer the following question:
`Which title has origianal sound entertainment as its label?`

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

CREATE TABLE "greatest_hits_best_of_compilations" (
  "title" text,
  "label" text,
  "year_of_release" real,
  "country_of_release" text,
  "peaches" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which title has origianal sound entertainment as its label?`:
```sql
                SELECT "title" FROM "greatest_hits_best_of_compilations" WHERE "label"='origianal sound entertainment';
```
## Task
Generate a SQL query to answer the following question:
`What was the earliest year of release for Peaches: Francine Barker with the wounded bird label?`

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

CREATE TABLE "greatest_hits_best_of_compilations" (
  "title" text,
  "label" text,
  "year_of_release" real,
  "country_of_release" text,
  "peaches" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest year of release for Peaches: Francine Barker with the wounded bird label?`:
```sql
                SELECT MIN("year_of_release") FROM "greatest_hits_best_of_compilations" WHERE "peaches"='francine barker' AND "label"='wounded bird';
```
## Task
Generate a SQL query to answer the following question:
`What was the latest year of release for the greatest hits title?`

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

CREATE TABLE "greatest_hits_best_of_compilations" (
  "title" text,
  "label" text,
  "year_of_release" real,
  "country_of_release" text,
  "peaches" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest year of release for the greatest hits title?`:
```sql
                SELECT MAX("year_of_release") FROM "greatest_hits_best_of_compilations" WHERE "title"='greatest hits';
```
## Task
Generate a SQL query to answer the following question:
`When the country of release is EU, what is the label name?`

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

CREATE TABLE "greatest_hits_best_of_compilations" (
  "title" text,
  "label" text,
  "year_of_release" real,
  "country_of_release" text,
  "peaches" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the country of release is EU, what is the label name?`:
```sql
                SELECT "label" FROM "greatest_hits_best_of_compilations" WHERE "country_of_release"='eu';
```
## Task
Generate a SQL query to answer the following question:
`what is the highest latitude when the township is kingsley and the geo id is higher than 3803942820?`

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

CREATE TABLE "k" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest latitude when the township is kingsley and the geo id is higher than 3803942820?`:
```sql
                SELECT MAX("latitude") FROM "k" WHERE "township"='kingsley' AND "geo_id">3803942820;
```
## Task
Generate a SQL query to answer the following question:
`what is the latitude when water (sqmi) is 0.058 and the ansi code is less than 1759683?`

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

CREATE TABLE "k" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the latitude when water (sqmi) is 0.058 and the ansi code is less than 1759683?`:
```sql
                SELECT AVG("latitude") FROM "k" WHERE "water_sqmi"=0.058 AND "ansi_code"<1759683;
```
## Task
Generate a SQL query to answer the following question:
`what is the geo id when the longitude is -98.435797 and the land (sqmi) is less than 36.039?`

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

CREATE TABLE "k" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the geo id when the longitude is -98.435797 and the land (sqmi) is less than 36.039?`:
```sql
                SELECT MAX("geo_id") FROM "k" WHERE "longitude"=-98.435797 AND "land_sqmi"<36.039;
```
## Task
Generate a SQL query to answer the following question:
`Name the lowest Year Joined which has a Mascot of pioneers?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text,
  "year_joined" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lowest Year Joined which has a Mascot of pioneers?`:
```sql
                SELECT MIN("year_joined") FROM "membership" WHERE "mascot"='pioneers';
```
## Task
Generate a SQL query to answer the following question:
`Name the IHSAA Class of Mascot of pioneers?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text,
  "year_joined" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the IHSAA Class of Mascot of pioneers?`:
```sql
                SELECT "ihsaa_class" FROM "membership" WHERE "mascot"='pioneers';
```
## Task
Generate a SQL query to answer the following question:
`Name the IHSAA Class of 55 morgan and a School of mooresville?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text,
  "year_joined" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the IHSAA Class of 55 morgan and a School of mooresville?`:
```sql
                SELECT "ihsaa_class" FROM "membership" WHERE "county"='55 morgan' AND "school"='mooresville';
```
## Task
Generate a SQL query to answer the following question:
`where is Mascot of quakers?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text,
  "year_joined" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `where is Mascot of quakers?`:
```sql
                SELECT "location" FROM "membership" WHERE "mascot"='quakers';
```
## Task
Generate a SQL query to answer the following question:
`What kind of IHSAA Class has a School of decatur central?`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text,
  "year_joined" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of IHSAA Class has a School of decatur central?`:
```sql
                SELECT "ihsaa_class" FROM "membership" WHERE "school"='decatur central';
```
## Task
Generate a SQL query to answer the following question:
`What studio had the director Peter Lord Nick Park before 2004?`

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

CREATE TABLE "2000s" (
  "year" real,
  "title" text,
  "director" text,
  "studio_s" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What studio had the director Peter Lord Nick Park before 2004?`:
```sql
                SELECT "studio_s" FROM "2000s" WHERE "year"<2004 AND "director"='peter lord nick park';
```
## Task
Generate a SQL query to answer the following question:
`What studio did Paul Greengrass direct in 2007?`

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

CREATE TABLE "2000s" (
  "year" real,
  "title" text,
  "director" text,
  "studio_s" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What studio did Paul Greengrass direct in 2007?`:
```sql
                SELECT "studio_s" FROM "2000s" WHERE "year"=2007 AND "director"='paul greengrass';
```
## Task
Generate a SQL query to answer the following question:
`What is the A score when the B score is more than 9.15 and the gymnast was in the 2nd position?`

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

CREATE TABLE "parallel_bars_event_final_qualifiers" (
  "position" text,
  "gymnast" text,
  "a_score" real,
  "b_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the A score when the B score is more than 9.15 and the gymnast was in the 2nd position?`:
```sql
                SELECT SUM("a_score") FROM "parallel_bars_event_final_qualifiers" WHERE "b_score">9.15 AND "position"='2nd';
```
## Task
Generate a SQL query to answer the following question:
`what is the quantity when the year of manufacture is 1900 and the class is mc?`

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

CREATE TABLE "railbuses" (
  "class" text,
  "railway_number_s" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "axle_arrangement_uic" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the quantity when the year of manufacture is 1900 and the class is mc?`:
```sql
                SELECT "quantity" FROM "railbuses" WHERE "year_s_of_manufacture"='1900' AND "class"='mc';
```
## Task
Generate a SQL query to answer the following question:
`what is the class when the quantity is 4?`

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

CREATE TABLE "railbuses" (
  "class" text,
  "railway_number_s" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "axle_arrangement_uic" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the class when the quantity is 4?`:
```sql
                SELECT "class" FROM "railbuses" WHERE "quantity"=4;
```
## Task
Generate a SQL query to answer the following question:
`Who were the opponents on Week 8?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents on Week 8?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"=8;
```
## Task
Generate a SQL query to answer the following question:
`When the city is agadir what is the change (12/11)?`

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

CREATE TABLE "2012_statistics_at_least_1_000_000_passe" (
  "country" text,
  "airport" text,
  "city" text,
  "2012" real,
  "change_12_11" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the city is agadir what is the change (12/11)?`:
```sql
                SELECT "change_12_11" FROM "2012_statistics_at_least_1_000_000_passe" WHERE "city"='agadir';
```
## Task
Generate a SQL query to answer the following question:
`What is the catalog number of Venus Demilo's A-side?`

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

CREATE TABLE "singles" (
  "year" real,
  "a_side" text,
  "b_side" text,
  "catalog_number" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the catalog number of Venus Demilo's A-side?`:
```sql
                SELECT "catalog_number" FROM "singles" WHERE "a_side"='venus demilo';
```
## Task
Generate a SQL query to answer the following question:
`What year did the B-Side of Just Squeeze Me come out?`

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

CREATE TABLE "singles" (
  "year" real,
  "a_side" text,
  "b_side" text,
  "catalog_number" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the B-Side of Just Squeeze Me come out?`:
```sql
                SELECT "year" FROM "singles" WHERE "b_side"='just squeeze me';
```
## Task
Generate a SQL query to answer the following question:
`What label has the 817 catalog?`

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

CREATE TABLE "singles" (
  "year" real,
  "a_side" text,
  "b_side" text,
  "catalog_number" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What label has the 817 catalog?`:
```sql
                SELECT "label" FROM "singles" WHERE "catalog_number"='817';
```
## Task
Generate a SQL query to answer the following question:
`What is the A-side for it Never Entered My Mind, Part 2?`

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

CREATE TABLE "singles" (
  "year" real,
  "a_side" text,
  "b_side" text,
  "catalog_number" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the A-side for it Never Entered My Mind, Part 2?`:
```sql
                SELECT "a_side" FROM "singles" WHERE "b_side"='it never entered my mind, part 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the A-side for catalog 902?`

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

CREATE TABLE "singles" (
  "year" real,
  "a_side" text,
  "b_side" text,
  "catalog_number" text,
  "label" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the A-side for catalog 902?`:
```sql
                SELECT "a_side" FROM "singles" WHERE "catalog_number"='902';
```
## Task
Generate a SQL query to answer the following question:
`What is the class of the a1 bm type?`

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

CREATE TABLE "railbuses" (
  "class" text,
  "railway_number_s" text,
  "quantity" text,
  "year_s_of_manufacture" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class of the a1 bm type?`:
```sql
                SELECT "class" FROM "railbuses" WHERE "type"='a1 bm';
```
## Task
Generate a SQL query to answer the following question:
`What is the quantity of the aw class?`

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

CREATE TABLE "railbuses" (
  "class" text,
  "railway_number_s" text,
  "quantity" text,
  "year_s_of_manufacture" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the quantity of the aw class?`:
```sql
                SELECT "quantity" FROM "railbuses" WHERE "class"='aw';
```
## Task
Generate a SQL query to answer the following question:
`What is the class with 1 quantity?`

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

CREATE TABLE "railbuses" (
  "class" text,
  "railway_number_s" text,
  "quantity" text,
  "year_s_of_manufacture" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class with 1 quantity?`:
```sql
                SELECT "class" FROM "railbuses" WHERE "quantity"='1';
```
## Task
Generate a SQL query to answer the following question:
`What is the railway number of the aw class?`

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

CREATE TABLE "railbuses" (
  "class" text,
  "railway_number_s" text,
  "quantity" text,
  "year_s_of_manufacture" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the railway number of the aw class?`:
```sql
                SELECT "railway_number_s" FROM "railbuses" WHERE "class"='aw';
```
## Task
Generate a SQL query to answer the following question:
`What was the game when the record was 31-15?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the game when the record was 31-15?`:
```sql
                SELECT "game" FROM "game_log" WHERE "record"='31-15';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game with a score of W 106-100?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game with a score of W 106-100?`:
```sql
                SELECT "date" FROM "game_log" WHERE "score"='w 106-100';
```
## Task
Generate a SQL query to answer the following question:
`What is the speed for rank 1?`

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

CREATE TABLE "twin_cylinder_race" (
  "rank" text,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the speed for rank 1?`:
```sql
                SELECT "speed" FROM "twin_cylinder_race" WHERE "rank"='1';
```
## Task
Generate a SQL query to answer the following question:
`What team has a Rank Ret, and rider Frank A Applebee?`

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

CREATE TABLE "twin_cylinder_race" (
  "rank" text,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team has a Rank Ret, and rider Frank A Applebee?`:
```sql
                SELECT "team" FROM "twin_cylinder_race" WHERE "rank"='ret' AND "rider"='frank a applebee';
```
## Task
Generate a SQL query to answer the following question:
`What internet explorer has 29.07% for the chrome?`

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

CREATE TABLE "global_usage_share_data_from_get_clicky_" (
  "period" text,
  "internet_explorer" text,
  "chrome" text,
  "firefox" text,
  "safari" text,
  "opera" text,
  "other_mozilla" text
);
### SQL
Given the database schema, here is the SQL query that answers `What internet explorer has 29.07% for the chrome?`:
```sql
                SELECT "internet_explorer" FROM "global_usage_share_data_from_get_clicky_" WHERE "chrome"='29.07%';
```
## Task
Generate a SQL query to answer the following question:
`What is the other mozilla that has 9.41% for the safari?`

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

CREATE TABLE "global_usage_share_data_from_get_clicky_" (
  "period" text,
  "internet_explorer" text,
  "chrome" text,
  "firefox" text,
  "safari" text,
  "opera" text,
  "other_mozilla" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the other mozilla that has 9.41% for the safari?`:
```sql
                SELECT "other_mozilla" FROM "global_usage_share_data_from_get_clicky_" WHERE "safari"='9.41%';
```
## Task
Generate a SQL query to answer the following question:
`What other mozilla has January 2010 as the period?`

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

CREATE TABLE "global_usage_share_data_from_get_clicky_" (
  "period" text,
  "internet_explorer" text,
  "chrome" text,
  "firefox" text,
  "safari" text,
  "opera" text,
  "other_mozilla" text
);
### SQL
Given the database schema, here is the SQL query that answers `What other mozilla has January 2010 as the period?`:
```sql
                SELECT "other_mozilla" FROM "global_usage_share_data_from_get_clicky_" WHERE "period"='january 2010';
```
## Task
Generate a SQL query to answer the following question:
`What internet explorer has 7.89% as the safari, and 8.22% as the chrome?`

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

CREATE TABLE "global_usage_share_data_from_get_clicky_" (
  "period" text,
  "internet_explorer" text,
  "chrome" text,
  "firefox" text,
  "safari" text,
  "opera" text,
  "other_mozilla" text
);
### SQL
Given the database schema, here is the SQL query that answers `What internet explorer has 7.89% as the safari, and 8.22% as the chrome?`:
```sql
                SELECT "internet_explorer" FROM "global_usage_share_data_from_get_clicky_" WHERE "safari"='7.89%' AND "chrome"='8.22%';
```
## Task
Generate a SQL query to answer the following question:
`What period has 0.25% as the other mozilla?`

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

CREATE TABLE "global_usage_share_data_from_get_clicky_" (
  "period" text,
  "internet_explorer" text,
  "chrome" text,
  "firefox" text,
  "safari" text,
  "opera" text,
  "other_mozilla" text
);
### SQL
Given the database schema, here is the SQL query that answers `What period has 0.25% as the other mozilla?`:
```sql
                SELECT "period" FROM "global_usage_share_data_from_get_clicky_" WHERE "other_mozilla"='0.25%';
```
## Task
Generate a SQL query to answer the following question:
`Which socket goes with the item with release price of $378 and turbo of 6/6/8/9?`

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

CREATE TABLE "sandy_bridge_quad_core_32_nm" (
  "model_number" text,
  "s_spec_number" text,
  "cores" text,
  "frequency" text,
  "turbo" text,
  "l2_cache" text,
  "l3_cache" text,
  "gpu_model" text,
  "gpu_frequency" text,
  "socket" text,
  "i_o_bus" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which socket goes with the item with release price of $378 and turbo of 6/6/8/9?`:
```sql
                SELECT "socket" FROM "sandy_bridge_quad_core_32_nm" WHERE "release_price_usd"='$378' AND "turbo"='6/6/8/9';
```
## Task
Generate a SQL query to answer the following question:
`What is the L2 cache for the core i7-2635QM?`

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

CREATE TABLE "sandy_bridge_quad_core_32_nm" (
  "model_number" text,
  "s_spec_number" text,
  "cores" text,
  "frequency" text,
  "turbo" text,
  "l2_cache" text,
  "l3_cache" text,
  "gpu_model" text,
  "gpu_frequency" text,
  "socket" text,
  "i_o_bus" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the L2 cache for the core i7-2635QM?`:
```sql
                SELECT "l2_cache" FROM "sandy_bridge_quad_core_32_nm" WHERE "model_number"='core i7-2635qm';
```
## Task
Generate a SQL query to answer the following question:
`What is the release price for the GPU frequency of standard power, embedded?`

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

CREATE TABLE "sandy_bridge_quad_core_32_nm" (
  "model_number" text,
  "s_spec_number" text,
  "cores" text,
  "frequency" text,
  "turbo" text,
  "l2_cache" text,
  "l3_cache" text,
  "gpu_model" text,
  "gpu_frequency" text,
  "socket" text,
  "i_o_bus" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release price for the GPU frequency of standard power, embedded?`:
```sql
                SELECT "release_price_usd" FROM "sandy_bridge_quad_core_32_nm" WHERE "gpu_frequency"='standard power, embedded';
```
## Task
Generate a SQL query to answer the following question:
`What is the socked when the turbo is 8/8/10/11?`

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

CREATE TABLE "sandy_bridge_quad_core_32_nm" (
  "model_number" text,
  "s_spec_number" text,
  "cores" text,
  "frequency" text,
  "turbo" text,
  "l2_cache" text,
  "l3_cache" text,
  "gpu_model" text,
  "gpu_frequency" text,
  "socket" text,
  "i_o_bus" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the socked when the turbo is 8/8/10/11?`:
```sql
                SELECT "socket" FROM "sandy_bridge_quad_core_32_nm" WHERE "turbo"='8/8/10/11';
```
## Task
Generate a SQL query to answer the following question:
`Which round did the bout that led to a 1-0 record end in?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round did the bout that led to a 1-0 record end in?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "record"='1-0';
```
## Task
Generate a SQL query to answer the following question:
`Which Time has a Lane smaller than 2, and a Nationality of spain?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Time has a Lane smaller than 2, and a Nationality of spain?`:
```sql
                SELECT "time" FROM "heats" WHERE "lane"<2 AND "nationality"='spain';
```
## Task
Generate a SQL query to answer the following question:
`How many Heats have a Name of miguel molina?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Heats have a Name of miguel molina?`:
```sql
                SELECT COUNT("heat") FROM "heats" WHERE "name"='miguel molina';
```
## Task
Generate a SQL query to answer the following question:
`what is the league when the fa cup is qr4 and the fa trophy is qf?`

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

CREATE TABLE "league_standings" (
  "year" text,
  "league" text,
  "position" text,
  "leading_scorer" text,
  "fa_cup" text,
  "fa_trophy" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the league when the fa cup is qr4 and the fa trophy is qf?`:
```sql
                SELECT "league" FROM "league_standings" WHERE "fa_cup"='qr4' AND "fa_trophy"='qf';
```
## Task
Generate a SQL query to answer the following question:
`what is the fa trophy when the leading scorer is lee gregory (8)?`

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

CREATE TABLE "league_standings" (
  "year" text,
  "league" text,
  "position" text,
  "leading_scorer" text,
  "fa_cup" text,
  "fa_trophy" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the fa trophy when the leading scorer is lee gregory (8)?`:
```sql
                SELECT "fa_trophy" FROM "league_standings" WHERE "leading_scorer"='lee gregory (8)';
```
## Task
Generate a SQL query to answer the following question:
`what is the year when the position is 1/22 promoted and the leading scorer is james dean (27)?`

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

CREATE TABLE "league_standings" (
  "year" text,
  "league" text,
  "position" text,
  "leading_scorer" text,
  "fa_cup" text,
  "fa_trophy" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the year when the position is 1/22 promoted and the leading scorer is james dean (27)?`:
```sql
                SELECT "year" FROM "league_standings" WHERE "position"='1/22 promoted' AND "leading_scorer"='james dean (27)';
```
## Task
Generate a SQL query to answer the following question:
`When the Altrincham was the home team what was the tie no?`

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

CREATE TABLE "third_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Altrincham was the home team what was the tie no?`:
```sql
                SELECT "tie_no" FROM "third_round" WHERE "home_team"='altrincham';
```
## Task
Generate a SQL query to answer the following question:
`Crawley Town as the home team has what as the tie no?`

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

CREATE TABLE "third_round" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Crawley Town as the home team has what as the tie no?`:
```sql
                SELECT "tie_no" FROM "third_round" WHERE "home_team"='crawley town';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the swimmer with a rank over 2 with a time of 55.77?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the swimmer with a rank over 2 with a time of 55.77?`:
```sql
                SELECT "nationality" FROM "heats" WHERE "rank">2 AND "time"='55.77';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest heat with a finisher from the Czech Republic and a rank over 41?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest heat with a finisher from the Czech Republic and a rank over 41?`:
```sql
                SELECT MIN("heat") FROM "heats" WHERE "nationality"='czech republic' AND "rank">41;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of heats with a finisher named Gregor Tait in lanes over 6?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of heats with a finisher named Gregor Tait in lanes over 6?`:
```sql
                SELECT COUNT("heat") FROM "heats" WHERE "name"='gregor tait' AND "lane">6;
```
## Task
Generate a SQL query to answer the following question:
`What is the time of the swimmer in rank 40?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time of the swimmer in rank 40?`:
```sql
                SELECT "time" FROM "heats" WHERE "rank"=40;
```
## Task
Generate a SQL query to answer the following question:
`From what series was Tokio Jokio, directed by Norm McCabe?`

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

CREATE TABLE "1943" (
  "title" text,
  "series" text,
  "director" text,
  "release_date" text,
  "reissue" text
);
### SQL
Given the database schema, here is the SQL query that answers `From what series was Tokio Jokio, directed by Norm McCabe?`:
```sql
                SELECT "series" FROM "1943" WHERE "director"='norm mccabe' AND "title"='tokio jokio';
```
## Task
Generate a SQL query to answer the following question:
`When was Inki and the Minah Bird released?`

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

CREATE TABLE "1943" (
  "title" text,
  "series" text,
  "director" text,
  "release_date" text,
  "reissue" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Inki and the Minah Bird released?`:
```sql
                SELECT "release_date" FROM "1943" WHERE "title"='inki and the minah bird';
```
## Task
Generate a SQL query to answer the following question:
`From what series is Peck Up Your Troubles?`

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

CREATE TABLE "1945" (
  "title" text,
  "series" text,
  "director" text,
  "production_number" text,
  "release_date" text,
  "reissue" text
);
### SQL
Given the database schema, here is the SQL query that answers `From what series is Peck Up Your Troubles?`:
```sql
                SELECT "series" FROM "1945" WHERE "title"='peck up your troubles';
```
## Task
Generate a SQL query to answer the following question:
`When the president was Yoweri Museveni, and the year was 1993, with rank of 6 under political rights, what was the total of civil liberties?`

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

CREATE TABLE "historical_rankings" (
  "year" real,
  "political_rights" real,
  "civil_liberties" real,
  "status" text,
  "president" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the president was Yoweri Museveni, and the year was 1993, with rank of 6 under political rights, what was the total of civil liberties?`:
```sql
                SELECT SUM("civil_liberties") FROM "historical_rankings" WHERE "political_rights"=6 AND "president"='yoweri museveni' AND "year"=1993;
```
## Task
Generate a SQL query to answer the following question:
`What is the year average when not free was the status, and less than 7 was the civil liberties, and less than 6 political rights?`

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

CREATE TABLE "historical_rankings" (
  "year" real,
  "political_rights" real,
  "civil_liberties" real,
  "status" text,
  "president" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year average when not free was the status, and less than 7 was the civil liberties, and less than 6 political rights?`:
```sql
                SELECT AVG("year") FROM "historical_rankings" WHERE "status"='not free' AND "civil_liberties"<7 AND "political_rights"<6;
```
## Task
Generate a SQL query to answer the following question:
`What is the least political rights rank in 1976?`

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

CREATE TABLE "historical_rankings" (
  "year" real,
  "political_rights" real,
  "civil_liberties" real,
  "status" text,
  "president" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least political rights rank in 1976?`:
```sql
                SELECT MIN("political_rights") FROM "historical_rankings" WHERE "year"=1976;
```
## Task
Generate a SQL query to answer the following question:
`What is average ratings for Japanese title of ホタルノヒカリ, with episodes larger than 9?`

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

CREATE TABLE "2007_summer_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is average ratings for Japanese title of ホタルノヒカリ, with episodes larger than 9?`:
```sql
                SELECT "average_ratings" FROM "2007_summer_season" WHERE "episodes">9 AND "japanese_title"='ホタルノヒカリ';
```
## Task
Generate a SQL query to answer the following question:
`Which episodes has the lowest average ratings of 8.7%?`

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

CREATE TABLE "2007_summer_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episodes has the lowest average ratings of 8.7%?`:
```sql
                SELECT MIN("episodes") FROM "2007_summer_season" WHERE "average_ratings"='8.7%';
```
## Task
Generate a SQL query to answer the following question:
`Which romaji title, has Japanese title of 菊次郎とさき 3?`

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

CREATE TABLE "2007_summer_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which romaji title, has Japanese title of 菊次郎とさき 3?`:
```sql
                SELECT "romaji_title" FROM "2007_summer_season" WHERE "japanese_title"='菊次郎とさき 3';
```
## Task
Generate a SQL query to answer the following question:
`Which TV station, has romaji title of tantei gakuen q and episodes larger than 10?`

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

CREATE TABLE "2007_summer_season" (
  "japanese_title" text,
  "romaji_title" text,
  "tv_station" text,
  "episodes" real,
  "average_ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which TV station, has romaji title of tantei gakuen q and episodes larger than 10?`:
```sql
                SELECT "tv_station" FROM "2007_summer_season" WHERE "episodes">10 AND "romaji_title"='tantei gakuen q';
```
## Task
Generate a SQL query to answer the following question:
`What is the snatch for the person holding the Olympic record, and 173kg of 172kg?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "sergey_filimonov_kaz" text,
  "173kg" text,
  "almaty_kazakhstan" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the snatch for the person holding the Olympic record, and 173kg of 172kg?`:
```sql
                SELECT "snatch" FROM "records" WHERE "world_record"='olympic record' AND "173kg"='172kg';
```
## Task
Generate a SQL query to answer the following question:
`What is the Almaty, Kazakhstan when Sergey Filimonov ( KAZ ) is 210kg?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "sergey_filimonov_kaz" text,
  "173kg" text,
  "almaty_kazakhstan" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Almaty, Kazakhstan when Sergey Filimonov ( KAZ ) is 210kg?`:
```sql
                SELECT "almaty_kazakhstan" FROM "records" WHERE "sergey_filimonov_kaz"='210kg';
```
## Task
Generate a SQL query to answer the following question:
`What shows for Sergey Filimonov (KAZ) when the Snatch shows snatch?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "sergey_filimonov_kaz" text,
  "173kg" text,
  "almaty_kazakhstan" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for Sergey Filimonov (KAZ) when the Snatch shows snatch?`:
```sql
                SELECT "sergey_filimonov_kaz" FROM "records" WHERE "snatch"='snatch';
```
## Task
Generate a SQL query to answer the following question:
`What is the Almaty, Kazakhstan when the Sergey Filimonov (KAZ) is 210kg?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "sergey_filimonov_kaz" text,
  "173kg" text,
  "almaty_kazakhstan" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Almaty, Kazakhstan when the Sergey Filimonov (KAZ) is 210kg?`:
```sql
                SELECT "almaty_kazakhstan" FROM "records" WHERE "sergey_filimonov_kaz"='210kg';
```
## Task
Generate a SQL query to answer the following question:
`What is the total weeks with more 56,134 attendees against the minnesota vikings?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total weeks with more 56,134 attendees against the minnesota vikings?`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "attendance">'56,134' AND "opponent"='minnesota vikings';
```
## Task
Generate a SQL query to answer the following question:
`What year was the main role a character named Guan Yu (關羽)?`

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

CREATE TABLE "television_series" (
  "year" real,
  "chinese_title" text,
  "english" text,
  "role" text,
  "character" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the main role a character named Guan Yu (關羽)?`:
```sql
                SELECT MIN("year") FROM "television_series" WHERE "role"='main' AND "character"='guan yu (關羽)';
```
## Task
Generate a SQL query to answer the following question:
`What is the English character for Lin Ming Kuan (林明寬)?`

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

CREATE TABLE "television_series" (
  "year" real,
  "chinese_title" text,
  "english" text,
  "role" text,
  "character" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the English character for Lin Ming Kuan (林明寬)?`:
```sql
                SELECT "english" FROM "television_series" WHERE "character"='lin ming kuan (林明寬)';
```