cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the total longitude of Nogosek and a GEO ID larger than 3809357060?`

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

CREATE TABLE "n" (
  "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 total longitude of Nogosek and a GEO ID larger than 3809357060?`:
```sql
                SELECT COUNT("longitude") FROM "n" WHERE "township"='nogosek' AND "geo_id">3809357060;
```
## Task
Generate a SQL query to answer the following question:
`What Band number has a Power (W) of 400 or less?`

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

CREATE TABLE "400_w_sub_bands" (
  "band" real,
  "frequency_m_hz" text,
  "wavelength" text,
  "type" text,
  "power_w" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Band number has a Power (W) of 400 or less?`:
```sql
                SELECT SUM("band") FROM "400_w_sub_bands" WHERE "power_w"<400;
```
## Task
Generate a SQL query to answer the following question:
`What Band's Power (W) is 400 or less?`

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

CREATE TABLE "400_w_sub_bands" (
  "band" real,
  "frequency_m_hz" text,
  "wavelength" text,
  "type" text,
  "power_w" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Band's Power (W) is 400 or less?`:
```sql
                SELECT MAX("band") FROM "400_w_sub_bands" WHERE "power_w">400;
```
## Task
Generate a SQL query to answer the following question:
`What is the Wavelength of Frequency (MHz) 14.050–14.150?`

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

CREATE TABLE "400_w_sub_bands" (
  "band" real,
  "frequency_m_hz" text,
  "wavelength" text,
  "type" text,
  "power_w" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Wavelength of Frequency (MHz) 14.050–14.150?`:
```sql
                SELECT "wavelength" FROM "400_w_sub_bands" WHERE "frequency_m_hz"='14.050–14.150';
```
## Task
Generate a SQL query to answer the following question:
`Who are the recipients in 1994?`

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

CREATE TABLE "satellite_awards" (
  "year" real,
  "category" text,
  "recipients_and_nominees" text,
  "role_episode" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the recipients in 1994?`:
```sql
                SELECT "recipients_and_nominees" FROM "satellite_awards" WHERE "year"=1994;
```
## Task
Generate a SQL query to answer the following question:
`Who are the recipients that won for David Duchovny role/episode?`

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

CREATE TABLE "satellite_awards" (
  "year" real,
  "category" text,
  "recipients_and_nominees" text,
  "role_episode" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the recipients that won for David Duchovny role/episode?`:
```sql
                SELECT "recipients_and_nominees" FROM "satellite_awards" WHERE "role_episode"='david duchovny' AND "result"='won';
```
## Task
Generate a SQL query to answer the following question:
`What's the category in 1998 with the role/episode of David Duchovny?`

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

CREATE TABLE "satellite_awards" (
  "year" real,
  "category" text,
  "recipients_and_nominees" text,
  "role_episode" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the category in 1998 with the role/episode of David Duchovny?`:
```sql
                SELECT "category" FROM "satellite_awards" WHERE "year"=1998 AND "role_episode"='david duchovny';
```
## Task
Generate a SQL query to answer the following question:
`Which network has more than 31.4 channels with a 4:3 aspect?`

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

CREATE TABLE "digital_channels" (
  "channel" real,
  "video" text,
  "aspect" text,
  "psip_short_name" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which network has more than 31.4 channels with a 4:3 aspect?`:
```sql
                SELECT "network" FROM "digital_channels" WHERE "aspect"='4:3' AND "channel">31.4;
```
## Task
Generate a SQL query to answer the following question:
`Which video is on channel 31.2 with a 4:3 aspect?`

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

CREATE TABLE "digital_channels" (
  "channel" real,
  "video" text,
  "aspect" text,
  "psip_short_name" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which video is on channel 31.2 with a 4:3 aspect?`:
```sql
                SELECT "video" FROM "digital_channels" WHERE "aspect"='4:3' AND "channel"=31.2;
```
## Task
Generate a SQL query to answer the following question:
`Which video has a 16:9 aspect?`

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

CREATE TABLE "digital_channels" (
  "channel" real,
  "video" text,
  "aspect" text,
  "psip_short_name" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which video has a 16:9 aspect?`:
```sql
                SELECT "video" FROM "digital_channels" WHERE "aspect"='16:9';
```
## Task
Generate a SQL query to answer the following question:
`What's the constituency number of the Seoni district and has none reserved?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the constituency number of the Seoni district and has none reserved?`:
```sql
                SELECT "constituency_number" FROM "assembly_segments" WHERE "reserved_for_sc_st_none"='none' AND "district"='seoni';
```
## Task
Generate a SQL query to answer the following question:
`What is the district of Paraswada with none reserved?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the district of Paraswada with none reserved?`:
```sql
                SELECT "district" FROM "assembly_segments" WHERE "reserved_for_sc_st_none"='none' AND "name"='paraswada';
```
## Task
Generate a SQL query to answer the following question:
`What's the reserved number for constituency number 108?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the reserved number for constituency number 108?`:
```sql
                SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "constituency_number"='108';
```
## Task
Generate a SQL query to answer the following question:
`What's the name of Constituency number 108?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of Constituency number 108?`:
```sql
                SELECT "name" FROM "assembly_segments" WHERE "constituency_number"='108';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest total medals when there were 0 gold medals, 0 silver medals, and more than 1 bronze medal?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest total medals when there were 0 gold medals, 0 silver medals, and more than 1 bronze medal?`:
```sql
                SELECT MIN("total") FROM "medal_table" WHERE "bronze">1 AND "silver"=0 AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the bronze medals when there were less than 8 total medals, 0 silver medals and a rank of 9?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the bronze medals when there were less than 8 total medals, 0 silver medals and a rank of 9?`:
```sql
                SELECT SUM("bronze") FROM "medal_table" WHERE "total"<8 AND "rank"=9 AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`What nation had a rank higher than 4, a total of 2 medals and more than 0 silver medals?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What nation had a rank higher than 4, a total of 2 medals and more than 0 silver medals?`:
```sql
                SELECT "nation" FROM "medal_table" WHERE "rank">4 AND "total"=2 AND "silver">0;
```
## Task
Generate a SQL query to answer the following question:
`What was the average rank for the team that had more than 5 medals and more than 6 gold medals?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average rank for the team that had more than 5 medals and more than 6 gold medals?`:
```sql
                SELECT AVG("rank") FROM "medal_table" WHERE "total">5 AND "gold">6;
```
## Task
Generate a SQL query to answer the following question:
`Which artist has a draw higher than 4 and fewer than 5 points?`

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

CREATE TABLE "result_of_national_final" (
  "draw" real,
  "song" text,
  "artist" text,
  "points" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which artist has a draw higher than 4 and fewer than 5 points?`:
```sql
                SELECT "artist" FROM "result_of_national_final" WHERE "draw">4 AND "points"<5;
```
## Task
Generate a SQL query to answer the following question:
`Which artist has 13 points?`

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

CREATE TABLE "result_of_national_final" (
  "draw" real,
  "song" text,
  "artist" text,
  "points" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which artist has 13 points?`:
```sql
                SELECT "artist" FROM "result_of_national_final" WHERE "points"=13;
```
## Task
Generate a SQL query to answer the following question:
`What is the greatest B score when the A score was less than 6.5?`

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

CREATE TABLE "floor_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 greatest B score when the A score was less than 6.5?`:
```sql
                SELECT MAX("b_score") FROM "floor_event_final_qualifiers" WHERE "a_score"<6.5;
```
## Task
Generate a SQL query to answer the following question:
`What is the Time of the Great Britain players with Notes of SA/B?`

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

CREATE TABLE "repechage_2" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time of the Great Britain players with Notes of SA/B?`:
```sql
                SELECT "time" FROM "repechage_2" WHERE "notes"='sa/b' AND "country"='great britain';
```
## Task
Generate a SQL query to answer the following question:
`What is the Rowers of the race with a Time of 7:41.97 and Notes of FC?`

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

CREATE TABLE "repechage_2" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rowers of the race with a Time of 7:41.97 and Notes of FC?`:
```sql
                SELECT "rowers" FROM "repechage_2" WHERE "notes"='fc' AND "time"='7:41.97';
```
## Task
Generate a SQL query to answer the following question:
`What is the Week of the game 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Week of the game against the Minnesota Vikings?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "opponent"='minnesota vikings';
```
## Task
Generate a SQL query to answer the following question:
`What is the Week of the game against Green Bay Packers?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Week of the game against Green Bay Packers?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "opponent"='green bay packers';
```
## Task
Generate a SQL query to answer the following question:
`What is the Attendance of the game with a Result of L 20-14?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance of the game with a Result of L 20-14?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "result"='l 20-14';
```
## Task
Generate a SQL query to answer the following question:
`What is the Week number on October 5, 2003?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Week number on October 5, 2003?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "date"='october 5, 2003';
```
## Task
Generate a SQL query to answer the following question:
`What is the Week number with an Attendance of 62,123?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Week number with an Attendance of 62,123?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "attendance"='62,123';
```
## Task
Generate a SQL query to answer the following question:
`How many households are in Ottawa?`

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

CREATE TABLE "oklahoma_counties_ranked_by_per_capita_i" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many households are in Ottawa?`:
```sql
                SELECT SUM("number_of_households") FROM "oklahoma_counties_ranked_by_per_capita_i" WHERE "county"='ottawa';
```
## Task
Generate a SQL query to answer the following question:
`What county has a population more than 603,403 and a mediuan family income of $61,694?`

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

CREATE TABLE "oklahoma_counties_ranked_by_per_capita_i" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What county has a population more than 603,403 and a mediuan family income of $61,694?`:
```sql
                SELECT "county" FROM "oklahoma_counties_ranked_by_per_capita_i" WHERE "population">'603,403' AND "median_family_income"='$61,694';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of enrollments for schools located in Culver?`

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

CREATE TABLE "membership" (
  "school_ihsaa_i_dnum" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "num_county" text,
  "year_joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of enrollments for schools located in Culver?`:
```sql
                SELECT SUM("enrollment") FROM "membership" WHERE "location"='culver';
```
## Task
Generate a SQL query to answer the following question:
`Which year did the school with enrollment of 413 join?`

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

CREATE TABLE "membership" (
  "school_ihsaa_i_dnum" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "num_county" text,
  "year_joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which year did the school with enrollment of 413 join?`:
```sql
                SELECT "year_joined" FROM "membership" WHERE "enrollment"=413;
```
## Task
Generate a SQL query to answer the following question:
`How many years was Reasons to be Pretty nominated for best play?`

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

CREATE TABLE "original_broadway_production" (
  "year" real,
  "award_ceremony" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was Reasons to be Pretty nominated for best play?`:
```sql
                SELECT COUNT("year") FROM "original_broadway_production" WHERE "category"='best play';
```
## Task
Generate a SQL query to answer the following question:
`What is the first year that Reasons to be Pretty had a nominee for best performance by a leading actor in a play?`

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

CREATE TABLE "original_broadway_production" (
  "year" real,
  "award_ceremony" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first year that Reasons to be Pretty had a nominee for best performance by a leading actor in a play?`:
```sql
                SELECT MIN("year") FROM "original_broadway_production" WHERE "category"='best performance by a leading actor in a play';
```
## Task
Generate a SQL query to answer the following question:
`What is the match report from the game played on 28 february 2009?`

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

CREATE TABLE "results_and_fixtures" (
  "date" text,
  "venue" text,
  "opponents" text,
  "competition" text,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the match report from the game played on 28 february 2009?`:
```sql
                SELECT "match_report" FROM "results_and_fixtures" WHERE "date"='28 february 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the match report from the game played on 25 april 2009?`

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

CREATE TABLE "results_and_fixtures" (
  "date" text,
  "venue" text,
  "opponents" text,
  "competition" text,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the match report from the game played on 25 april 2009?`:
```sql
                SELECT "match_report" FROM "results_and_fixtures" WHERE "date"='25 april 2009';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game played on 3 january 2009 against east fife?`

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

CREATE TABLE "results_and_fixtures" (
  "date" text,
  "venue" text,
  "opponents" text,
  "competition" text,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played on 3 january 2009 against east fife?`:
```sql
                SELECT "venue" FROM "results_and_fixtures" WHERE "opponents"='east fife' AND "date"='3 january 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the match report for the game that was played on 23 august 2008 in stark's park during the second division competition?`

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

CREATE TABLE "results_and_fixtures" (
  "date" text,
  "venue" text,
  "opponents" text,
  "competition" text,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the match report for the game that was played on 23 august 2008 in stark's park during the second division competition?`:
```sql
                SELECT "match_report" FROM "results_and_fixtures" WHERE "venue"='stark''s park' AND "competition"='second division' AND "date"='23 august 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the match report for the game played at forthbank stadium against stirling albion?`

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

CREATE TABLE "results_and_fixtures" (
  "date" text,
  "venue" text,
  "opponents" text,
  "competition" text,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the match report for the game played at forthbank stadium against stirling albion?`:
```sql
                SELECT "match_report" FROM "results_and_fixtures" WHERE "opponents"='stirling albion' AND "venue"='forthbank stadium';
```
## Task
Generate a SQL query to answer the following question:
`What is average quantity, when DRG number is 99 011?`

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

CREATE TABLE "narrow_gauge_locomotives" (
  "class" text,
  "railway_number_s" text,
  "drg_number_s" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "axle_arrangement_uic_bauart" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is average quantity, when DRG number is 99 011?`:
```sql
                SELECT AVG("quantity") FROM "narrow_gauge_locomotives" WHERE "drg_number_s"='99 011';
```
## Task
Generate a SQL query to answer the following question:
`Which railway number has 3 quantity?`

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

CREATE TABLE "narrow_gauge_locomotives" (
  "class" text,
  "railway_number_s" text,
  "drg_number_s" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "axle_arrangement_uic_bauart" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which railway number has 3 quantity?`:
```sql
                SELECT "railway_number_s" FROM "narrow_gauge_locomotives" WHERE "quantity"=3;
```
## Task
Generate a SQL query to answer the following question:
`Which DRG number has xxx railway number?`

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

CREATE TABLE "narrow_gauge_locomotives" (
  "class" text,
  "railway_number_s" text,
  "drg_number_s" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "axle_arrangement_uic_bauart" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which DRG number has xxx railway number?`:
```sql
                SELECT "drg_number_s" FROM "narrow_gauge_locomotives" WHERE "railway_number_s"='xxx';
```
## Task
Generate a SQL query to answer the following question:
`Which quantity has Axle arrangement (UIC)bauart of c n2t, and DRG number 99 093?`

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

CREATE TABLE "narrow_gauge_locomotives" (
  "class" text,
  "railway_number_s" text,
  "drg_number_s" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "axle_arrangement_uic_bauart" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which quantity has Axle arrangement (UIC)bauart of c n2t, and DRG number 99 093?`:
```sql
                SELECT "quantity" FROM "narrow_gauge_locomotives" WHERE "axle_arrangement_uic_bauart"='c n2t' AND "drg_number_s"='99 093';
```
## Task
Generate a SQL query to answer the following question:
`What song came out on March 8, 2008?`

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

CREATE TABLE "dsds_performances" (
  "date" text,
  "topic_of_the_show" text,
  "song" text,
  "original_artist" text,
  "place_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What song came out on March 8, 2008?`:
```sql
                SELECT "song" FROM "dsds_performances" WHERE "date"='march 8, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What was the topic of the show on March 15, 2008?`

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

CREATE TABLE "dsds_performances" (
  "date" text,
  "topic_of_the_show" text,
  "song" text,
  "original_artist" text,
  "place_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the topic of the show on March 15, 2008?`:
```sql
                SELECT "topic_of_the_show" FROM "dsds_performances" WHERE "date"='march 15, 2008';
```
## Task
Generate a SQL query to answer the following question:
`When against is more than 1244 with less than 8 losses, what is the average of wins?`

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

CREATE TABLE "1939_ladder" (
  "club" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `When against is more than 1244 with less than 8 losses, what is the average of wins?`:
```sql
                SELECT AVG("wins") FROM "1939_ladder" WHERE "against">1244 AND "losses"<8;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the mill located on Anawan Street with a reference number larger than 8?`

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

CREATE TABLE "existing_historic_textile_mills" (
  "refnum" real,
  "name" text,
  "built" real,
  "location" text,
  "construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the mill located on Anawan Street with a reference number larger than 8?`:
```sql
                SELECT "name" FROM "existing_historic_textile_mills" WHERE "refnum">8 AND "location"='anawan street';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the mill constructed of red brick in 1910 with a reference number lower than 55?`

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

CREATE TABLE "existing_historic_textile_mills" (
  "refnum" real,
  "name" text,
  "built" real,
  "location" text,
  "construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the mill constructed of red brick in 1910 with a reference number lower than 55?`:
```sql
                SELECT "name" FROM "existing_historic_textile_mills" WHERE "refnum"<55 AND "built"=1910 AND "construction"='red brick';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the Durfee Mill No. 1, built before 1872 ?`

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

CREATE TABLE "existing_historic_textile_mills" (
  "refnum" real,
  "name" text,
  "built" real,
  "location" text,
  "construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the Durfee Mill No. 1, built before 1872 ?`:
```sql
                SELECT "location" FROM "existing_historic_textile_mills" WHERE "built"<1872 AND "name"='durfee mill no. 1';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the mill with a reference number of 44?`

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

CREATE TABLE "existing_historic_textile_mills" (
  "refnum" real,
  "name" text,
  "built" real,
  "location" text,
  "construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the mill with a reference number of 44?`:
```sql
                SELECT "location" FROM "existing_historic_textile_mills" WHERE "refnum"=44;
```
## Task
Generate a SQL query to answer the following question:
`Which Construction is named of fu-hsing?`

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

CREATE TABLE "composition" (
  "name_pinyin" text,
  "name_wade_giles" text,
  "characters" text,
  "type" text,
  "construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Construction is named of fu-hsing?`:
```sql
                SELECT "construction" FROM "composition" WHERE "name_wade_giles"='fu-hsing';
```
## Task
Generate a SQL query to answer the following question:
`which Construction is named heng-hai?`

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

CREATE TABLE "composition" (
  "name_pinyin" text,
  "name_wade_giles" text,
  "characters" text,
  "type" text,
  "construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `which Construction is named heng-hai?`:
```sql
                SELECT "construction" FROM "composition" WHERE "name_wade_giles"='heng-hai';
```
## Task
Generate a SQL query to answer the following question:
`Who  has a Construction of 1873, foochow navy yard?`

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

CREATE TABLE "composition" (
  "name_pinyin" text,
  "name_wade_giles" text,
  "characters" text,
  "type" text,
  "construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who  has a Construction of 1873, foochow navy yard?`:
```sql
                SELECT "characters" FROM "composition" WHERE "construction"='1873, foochow navy yard';
```
## Task
Generate a SQL query to answer the following question:
`Which Name (pinyin) is named fu-ching?`

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

CREATE TABLE "composition" (
  "name_pinyin" text,
  "name_wade_giles" text,
  "characters" text,
  "type" text,
  "construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name (pinyin) is named fu-ching?`:
```sql
                SELECT "name_pinyin" FROM "composition" WHERE "name_wade_giles"='fu-ching';
```
## Task
Generate a SQL query to answer the following question:
`Who has a Construction of 1870, foochow navy yard, and a Name (Wade Giles) of fu-hsing?`

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

CREATE TABLE "composition" (
  "name_pinyin" text,
  "name_wade_giles" text,
  "characters" text,
  "type" text,
  "construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a Construction of 1870, foochow navy yard, and a Name (Wade Giles) of fu-hsing?`:
```sql
                SELECT "characters" FROM "composition" WHERE "construction"='1870, foochow navy yard' AND "name_wade_giles"='fu-hsing';
```
## Task
Generate a SQL query to answer the following question:
`Which Label has a Release of liebesgrüsse aus ost-berlin?`

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

CREATE TABLE "discography" (
  "release" text,
  "track" text,
  "format" text,
  "label" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Label has a Release of liebesgrüsse aus ost-berlin?`:
```sql
                SELECT "label" FROM "discography" WHERE "release"='liebesgrüsse aus ost-berlin';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the person with more than 5 games played?`

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

CREATE TABLE "leading_scorers" (
  "rank" real,
  "player" text,
  "games_played" real,
  "goals" real,
  "assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the person with more than 5 games played?`:
```sql
                SELECT SUM("rank") FROM "leading_scorers" WHERE "games_played">5;
```
## Task
Generate a SQL query to answer the following question:
`How many golds have a bronze greater than 1, a silver greater than 1, with total as the rank?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds have a bronze greater than 1, a silver greater than 1, with total as the rank?`:
```sql
                SELECT COUNT("gold") FROM "medals_table" WHERE "bronze">1 AND "silver">1 AND "rank"='total';
```
## Task
Generate a SQL query to answer the following question:
`How many golds have a bronze greater than 1, total as the nation, and a silver less than 18?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds have a bronze greater than 1, total as the nation, and a silver less than 18?`:
```sql
                SELECT COUNT("gold") FROM "medals_table" WHERE "bronze">1 AND "nation"='total' AND "silver"<18;
```
## Task
Generate a SQL query to answer the following question:
`How many bronzes have west germany as the nation?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many bronzes have west germany as the nation?`:
```sql
                SELECT SUM("bronze") FROM "medals_table" WHERE "nation"='west germany';
```
## Task
Generate a SQL query to answer the following question:
`How many golds have denmark as the nation, with a total less than 1?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds have denmark as the nation, with a total less than 1?`:
```sql
                SELECT COUNT("gold") FROM "medals_table" WHERE "nation"='denmark' AND "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`How many totals have 1 for the gold, 12 for the rank, and a sliver greater than 0?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many totals have 1 for the gold, 12 for the rank, and a sliver greater than 0?`:
```sql
                SELECT COUNT("total") FROM "medals_table" WHERE "gold"=1 AND "rank"='12' AND "silver">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest silver that has 1 for the bronze, 1 as the total, 17 as the rank, with a gold less than 0?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest silver that has 1 for the bronze, 1 as the total, 17 as the rank, with a gold less than 0?`:
```sql
                SELECT MIN("silver") FROM "medals_table" WHERE "bronze"=1 AND "total"=1 AND "rank"='17' AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the First Publisher prior to 1999?`

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

CREATE TABLE "bibliography" (
  "japanese_title" text,
  "english_title" text,
  "year" real,
  "first_publisher" text,
  "isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the First Publisher prior to 1999?`:
```sql
                SELECT "first_publisher" FROM "bibliography" WHERE "year"<1999;
```
## Task
Generate a SQL query to answer the following question:
`What is the ISBN in 1999?`

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

CREATE TABLE "bibliography" (
  "japanese_title" text,
  "english_title" text,
  "year" real,
  "first_publisher" text,
  "isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ISBN in 1999?`:
```sql
                SELECT "isbn" FROM "bibliography" WHERE "year"=1999;
```
## Task
Generate a SQL query to answer the following question:
`What is the ISBN of Japanese Title of 霧の訪問者 (kiri no hōmonsha)?`

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

CREATE TABLE "bibliography" (
  "japanese_title" text,
  "english_title" text,
  "year" real,
  "first_publisher" text,
  "isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ISBN of Japanese Title of 霧の訪問者 (kiri no hōmonsha)?`:
```sql
                SELECT "isbn" FROM "bibliography" WHERE "japanese_title"='霧の訪問者 (kiri no hōmonsha)';
```
## Task
Generate a SQL query to answer the following question:
`What is the First Publisher in 2007?`

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

CREATE TABLE "bibliography" (
  "japanese_title" text,
  "english_title" text,
  "year" real,
  "first_publisher" text,
  "isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the First Publisher in 2007?`:
```sql
                SELECT "first_publisher" FROM "bibliography" WHERE "year"=2007;
```
## Task
Generate a SQL query to answer the following question:
`What is the Year of Kodansha Novels' Tokyo Nightmare?`

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

CREATE TABLE "bibliography" (
  "japanese_title" text,
  "english_title" text,
  "year" real,
  "first_publisher" text,
  "isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Year of Kodansha Novels' Tokyo Nightmare?`:
```sql
                SELECT "year" FROM "bibliography" WHERE "first_publisher"='kodansha novels' AND "english_title"='tokyo nightmare';
```
## Task
Generate a SQL query to answer the following question:
`What Year has an ISBN OF ISBN 4-06-182042-7?`

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

CREATE TABLE "bibliography" (
  "japanese_title" text,
  "english_title" text,
  "year" real,
  "first_publisher" text,
  "isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Year has an ISBN OF ISBN 4-06-182042-7?`:
```sql
                SELECT AVG("year") FROM "bibliography" WHERE "isbn"='isbn 4-06-182042-7';
```
## Task
Generate a SQL query to answer the following question:
`What is the bronze number for the nation with less than 0 gold?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bronze number for the nation with less than 0 gold?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the January climate figure for Eastman?`

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

CREATE TABLE "climate" (
  "city" text,
  "region" text,
  "july" text,
  "january" text,
  "annual_precipitation" text,
  "plant_hardiness_zone" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the January climate figure for Eastman?`:
```sql
                SELECT "january" FROM "climate" WHERE "region"='eastman';
```
## Task
Generate a SQL query to answer the following question:
`In what city is the July temperature 23/9°c (73/48°f)?`

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

CREATE TABLE "climate" (
  "city" text,
  "region" text,
  "july" text,
  "january" text,
  "annual_precipitation" text,
  "plant_hardiness_zone" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what city is the July temperature 23/9°c (73/48°f)?`:
```sql
                SELECT "city" FROM "climate" WHERE "july"='23/9°c (73/48°f)';
```
## Task
Generate a SQL query to answer the following question:
`What is the July temperature where the annual precipitation is 514mm (20.2in)?`

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

CREATE TABLE "climate" (
  "city" text,
  "region" text,
  "july" text,
  "january" text,
  "annual_precipitation" text,
  "plant_hardiness_zone" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the July temperature where the annual precipitation is 514mm (20.2in)?`:
```sql
                SELECT "july" FROM "climate" WHERE "annual_precipitation"='514mm (20.2in)';
```
## Task
Generate a SQL query to answer the following question:
`What is the July temperature where plant hardiness zone is 2B and January figure is −12/−23°c (10-9°f)?`

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

CREATE TABLE "climate" (
  "city" text,
  "region" text,
  "july" text,
  "january" text,
  "annual_precipitation" text,
  "plant_hardiness_zone" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the July temperature where plant hardiness zone is 2B and January figure is −12/−23°c (10-9°f)?`:
```sql
                SELECT "july" FROM "climate" WHERE "plant_hardiness_zone"='2b' AND "january"='−12/−23°c (10-9°f)';
```
## Task
Generate a SQL query to answer the following question:
`What is the plant hardiness zone in the Northern region where the annual precipitation is 443mm (17.4in)?`

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

CREATE TABLE "climate" (
  "city" text,
  "region" text,
  "july" text,
  "january" text,
  "annual_precipitation" text,
  "plant_hardiness_zone" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the plant hardiness zone in the Northern region where the annual precipitation is 443mm (17.4in)?`:
```sql
                SELECT "plant_hardiness_zone" FROM "climate" WHERE "region"='northern' AND "annual_precipitation"='443mm (17.4in)';
```
## Task
Generate a SQL query to answer the following question:
`In what city is the plant hardiness zone 2B and January temp is −12/−23°c (10/-9°f)?`

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

CREATE TABLE "climate" (
  "city" text,
  "region" text,
  "july" text,
  "january" text,
  "annual_precipitation" text,
  "plant_hardiness_zone" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what city is the plant hardiness zone 2B and January temp is −12/−23°c (10/-9°f)?`:
```sql
                SELECT "city" FROM "climate" WHERE "plant_hardiness_zone"='2b' AND "january"='−12/−23°c (10/-9°f)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Total Apps listing for Paul Wilson?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Total Apps listing for Paul Wilson?`:
```sql
                SELECT "total_apps" FROM "appearances_and_goals" WHERE "name"='paul wilson';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner at Milan Circuit Race?`

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

CREATE TABLE "route_and_stages" (
  "date" text,
  "course" text,
  "distance" text,
  "type" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner at Milan Circuit Race?`:
```sql
                SELECT "winner" FROM "route_and_stages" WHERE "course"='milan circuit race';
```