cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is SECOND, when FIRST is Western Australia?`

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

CREATE TABLE "1992_93_to_1996_97" (
  "season" text,
  "first" text,
  "second" text,
  "third" text,
  "fourth" text,
  "fifth" text,
  "sixth" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is SECOND, when FIRST is Western Australia?`:
```sql
                SELECT "second" FROM "1992_93_to_1996_97" WHERE "first"='western australia';
```
## Task
Generate a SQL query to answer the following question:
`How many losses does corinthians have when they scored over 22 points?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses does corinthians have when they scored over 22 points?`:
```sql
                SELECT COUNT("lost") FROM "torneio_rio_s_o_paulo" WHERE "team"='corinthians' AND "points">22;
```
## Task
Generate a SQL query to answer the following question:
`What was the termination type for the headphones with comfort pads and selling for $150?`

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

CREATE TABLE "current_line_of_headphones" (
  "headphone_model" text,
  "headphone_class" text,
  "driver_matched_d_b" real,
  "construction" text,
  "earpads" text,
  "termination" text,
  "us_msrp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the termination type for the headphones with comfort pads and selling for $150?`:
```sql
                SELECT "termination" FROM "current_line_of_headphones" WHERE "earpads"='comfort pads' AND "us_msrp"='$150';
```
## Task
Generate a SQL query to answer the following question:
`What are the earpads for the headphones that are Reference class and have MSRP of $695?`

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

CREATE TABLE "current_line_of_headphones" (
  "headphone_model" text,
  "headphone_class" text,
  "driver_matched_d_b" real,
  "construction" text,
  "earpads" text,
  "termination" text,
  "us_msrp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the earpads for the headphones that are Reference class and have MSRP of $695?`:
```sql
                SELECT "earpads" FROM "current_line_of_headphones" WHERE "headphone_class"='reference' AND "us_msrp"='$695';
```
## Task
Generate a SQL query to answer the following question:
`What earpads do the headphones with driver-matched dB over 0.05 and MSRP of $79 have?`

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

CREATE TABLE "current_line_of_headphones" (
  "headphone_model" text,
  "headphone_class" text,
  "driver_matched_d_b" real,
  "construction" text,
  "earpads" text,
  "termination" text,
  "us_msrp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What earpads do the headphones with driver-matched dB over 0.05 and MSRP of $79 have?`:
```sql
                SELECT "earpads" FROM "current_line_of_headphones" WHERE "driver_matched_d_b">0.05 AND "us_msrp"='$79';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the race from round 1?`

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

CREATE TABLE "calendar" (
  "round" real,
  "race_name" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner_s" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the race from round 1?`:
```sql
                SELECT "race_name" FROM "calendar" WHERE "round"=1;
```
## Task
Generate a SQL query to answer the following question:
`Which race was in Sydney, New South Wales?`

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

CREATE TABLE "calendar" (
  "round" real,
  "race_name" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner_s" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which race was in Sydney, New South Wales?`:
```sql
                SELECT "race_name" FROM "calendar" WHERE "city_state"='sydney, new south wales';
```
## Task
Generate a SQL query to answer the following question:
`Which circuit had a round larger than 5?`

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

CREATE TABLE "calendar" (
  "round" real,
  "race_name" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner_s" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which circuit had a round larger than 5?`:
```sql
                SELECT "circuit" FROM "calendar" WHERE "round">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the story published on October 19, 2011?`

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

CREATE TABLE "conan_dark_horse_comics" (
  "issue" text,
  "date" text,
  "title" text,
  "story" text,
  "color" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the story published on October 19, 2011?`:
```sql
                SELECT "story" FROM "conan_dark_horse_comics" WHERE "date"='october 19, 2011';
```
## Task
Generate a SQL query to answer the following question:
`What Issue number was released on August 17, 2011?`

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

CREATE TABLE "conan_dark_horse_comics" (
  "issue" text,
  "date" text,
  "title" text,
  "story" text,
  "color" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Issue number was released on August 17, 2011?`:
```sql
                SELECT "issue" FROM "conan_dark_horse_comics" WHERE "date"='august 17, 2011';
```
## Task
Generate a SQL query to answer the following question:
`What story title was included in Issue #8?`

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

CREATE TABLE "conan_dark_horse_comics" (
  "issue" text,
  "date" text,
  "title" text,
  "story" text,
  "color" text
);
### SQL
Given the database schema, here is the SQL query that answers `What story title was included in Issue #8?`:
```sql
                SELECT "story" FROM "conan_dark_horse_comics" WHERE "issue"='#8';
```
## Task
Generate a SQL query to answer the following question:
`Which young classification has general classification of Christian Vande Velde for Team Columbia and Mark Cavendish?`

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

CREATE TABLE "jersey_progress" (
  "stage_winner" text,
  "general_classification" text,
  "young_classification" text,
  "mountains_classification" text,
  "sprint_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which young classification has general classification of Christian Vande Velde for Team Columbia and Mark Cavendish?`:
```sql
                SELECT "young_classification" FROM "jersey_progress" WHERE "general_classification"='christian vande velde' AND "team_classification"='team columbia' AND "sprint_classification"='mark cavendish';
```
## Task
Generate a SQL query to answer the following question:
`What mountains classification corresponds to Mark Cavendish and the Garmin-Chipotle-H30?`

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

CREATE TABLE "jersey_progress" (
  "stage_winner" text,
  "general_classification" text,
  "young_classification" text,
  "mountains_classification" text,
  "sprint_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What mountains classification corresponds to Mark Cavendish and the Garmin-Chipotle-H30?`:
```sql
                SELECT "mountains_classification" FROM "jersey_progress" WHERE "general_classification"='mark cavendish' AND "team_classification"='garmin-chipotle-h30';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner for a Sprint Classification and Young Classification to Mark Cavendish and Garmin-Chipotle-H30 for team?`

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

CREATE TABLE "jersey_progress" (
  "stage_winner" text,
  "general_classification" text,
  "young_classification" text,
  "mountains_classification" text,
  "sprint_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner for a Sprint Classification and Young Classification to Mark Cavendish and Garmin-Chipotle-H30 for team?`:
```sql
                SELECT "stage_winner" FROM "jersey_progress" WHERE "sprint_classification"='mark cavendish' AND "team_classification"='garmin-chipotle-h30' AND "young_classification"='mark cavendish';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest population (2010 Census) that has a rank smaller than 45, municipality of gimpo, and populaion (2000 Census) larger than 117,594?`

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

CREATE TABLE "list_of_cities" (
  "rank" real,
  "municipality" text,
  "population_2010_census" real,
  "population_2005_census" real,
  "population_2000_census" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest population (2010 Census) that has a rank smaller than 45, municipality of gimpo, and populaion (2000 Census) larger than 117,594?`:
```sql
                SELECT MIN("population_2010_census") FROM "list_of_cities" WHERE "population_2000_census">'117,594' AND "municipality"='gimpo' AND "rank"<45;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest population (2000 Census) that has a population (2010 Census) larger than 1,071,913 and municipality of Suwon?`

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

CREATE TABLE "list_of_cities" (
  "rank" real,
  "municipality" text,
  "population_2010_census" real,
  "population_2005_census" real,
  "population_2000_census" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest population (2000 Census) that has a population (2010 Census) larger than 1,071,913 and municipality of Suwon?`:
```sql
                SELECT MIN("population_2000_census") FROM "list_of_cities" WHERE "municipality"='suwon' AND "population_2010_census">'1,071,913';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest population (2000 Census) that has a rank of 43, population (2010 Census) larger than 231,271, and population (2005 Census) larger than 157,632?`

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

CREATE TABLE "list_of_cities" (
  "rank" real,
  "municipality" text,
  "population_2010_census" real,
  "population_2005_census" real,
  "population_2000_census" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest population (2000 Census) that has a rank of 43, population (2010 Census) larger than 231,271, and population (2005 Census) larger than 157,632?`:
```sql
                SELECT MAX("population_2000_census") FROM "list_of_cities" WHERE "population_2005_census">'157,632' AND "rank"=43 AND "population_2010_census">'231,271';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of rank that has population (2005 Census) smaller than 193,398 and population (2000 Census) of 167,231?`

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

CREATE TABLE "list_of_cities" (
  "rank" real,
  "municipality" text,
  "population_2010_census" real,
  "population_2005_census" real,
  "population_2000_census" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of rank that has population (2005 Census) smaller than 193,398 and population (2000 Census) of 167,231?`:
```sql
                SELECT COUNT("rank") FROM "list_of_cities" WHERE "population_2000_census"='167,231' AND "population_2005_census"<'193,398';
```
## Task
Generate a SQL query to answer the following question:
`Who had the lowest rank for a capacity of 197,13% and a capacity larger than 1,010,000?`

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

CREATE TABLE "brazil_s_40_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity" real,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the lowest rank for a capacity of 197,13% and a capacity larger than 1,010,000?`:
```sql
                SELECT MIN("rank") FROM "brazil_s_40_busiest_airports_by_passenge" WHERE "capacity_in_use"='197,13%' AND "capacity">'1,010,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the average capacity for less than 8,261,355 passengers, and 126,06% in use?`

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

CREATE TABLE "brazil_s_40_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity" real,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average capacity for less than 8,261,355 passengers, and 126,06% in use?`:
```sql
                SELECT AVG("capacity") FROM "brazil_s_40_busiest_airports_by_passenge" WHERE "total_passengers"<'8,261,355' AND "capacity_in_use"='126,06%';
```
## Task
Generate a SQL query to answer the following question:
`Which outcome has a partner named Mark Dickson, with the opponents of Hans Gildemeister Belus Prajoux?`

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

CREATE TABLE "doubles_10" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which outcome has a partner named Mark Dickson, with the opponents of Hans Gildemeister Belus Prajoux?`:
```sql
                SELECT "outcome" FROM "doubles_10" WHERE "partner"='mark dickson' AND "opponents_in_the_final"='hans gildemeister belus prajoux';
```
## Task
Generate a SQL query to answer the following question:
`What is the Format with a Catalog that is vcrd 103?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Format with a Catalog that is vcrd 103?`:
```sql
                SELECT "format" FROM "release_history" WHERE "catalog"='vcrd 103';
```
## Task
Generate a SQL query to answer the following question:
`What is the Region with a Catalog that is vlmx 1087-3?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Region with a Catalog that is vlmx 1087-3?`:
```sql
                SELECT "region" FROM "release_history" WHERE "catalog"='vlmx 1087-3';
```
## Task
Generate a SQL query to answer the following question:
`What is the Format with a Label of electropolis and a Date that is 2002?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Format with a Label of electropolis and a Date that is 2002?`:
```sql
                SELECT "format" FROM "release_history" WHERE "label"='electropolis' AND "date"='2002';
```
## Task
Generate a SQL query to answer the following question:
`Which result's attendance was more than 60,705 when the week number is less than 13?`

### 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 `Which result's attendance was more than 60,705 when the week number is less than 13?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance">'60,705' AND "week"<13;
```
## Task
Generate a SQL query to answer the following question:
`How many in the cultural and educational panel have a university of Dublin of 3 & A labor panel larger than 11?`

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

CREATE TABLE "composition_of_the_9th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many in the cultural and educational panel have a university of Dublin of 3 & A labor panel larger than 11?`:
```sql
                SELECT COUNT("cultural_and_educational_panel") FROM "composition_of_the_9th_seanad" WHERE "university_of_dublin"=3 AND "labour_panel">11;
```
## Task
Generate a SQL query to answer the following question:
`What is Margin, when Match Date is Oct 17, 2007?`

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

CREATE TABLE "one_day_international" (
  "s_no" real,
  "team_a" text,
  "team_b" text,
  "winner" text,
  "margin" text,
  "match_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Margin, when Match Date is Oct 17, 2007?`:
```sql
                SELECT "margin" FROM "one_day_international" WHERE "match_date"='oct 17, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What is Team (B), when S No is greater than 17?`

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

CREATE TABLE "one_day_international" (
  "s_no" real,
  "team_a" text,
  "team_b" text,
  "winner" text,
  "margin" text,
  "match_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team (B), when S No is greater than 17?`:
```sql
                SELECT "team_b" FROM "one_day_international" WHERE "s_no">17;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of S No(s), when the Margin is 16 runs?`

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

CREATE TABLE "one_day_international" (
  "s_no" real,
  "team_a" text,
  "team_b" text,
  "winner" text,
  "margin" text,
  "match_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of S No(s), when the Margin is 16 runs?`:
```sql
                SELECT COUNT("s_no") FROM "one_day_international" WHERE "margin"='16 runs';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest S No, when the Match Date is Nov 1, 2003?`

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

CREATE TABLE "one_day_international" (
  "s_no" real,
  "team_a" text,
  "team_b" text,
  "winner" text,
  "margin" text,
  "match_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest S No, when the Match Date is Nov 1, 2003?`:
```sql
                SELECT MAX("s_no") FROM "one_day_international" WHERE "match_date"='nov 1, 2003';
```
## Task
Generate a SQL query to answer the following question:
`What is Team (B), when S No is less than 18, when Margin is 8 Wickets, and when Match Date is Oct 30, 1989?`

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

CREATE TABLE "one_day_international" (
  "s_no" real,
  "team_a" text,
  "team_b" text,
  "winner" text,
  "margin" text,
  "match_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team (B), when S No is less than 18, when Margin is 8 Wickets, and when Match Date is Oct 30, 1989?`:
```sql
                SELECT "team_b" FROM "one_day_international" WHERE "s_no"<18 AND "margin"='8 wickets' AND "match_date"='oct 30, 1989';
```
## Task
Generate a SQL query to answer the following question:
`When was the last time, since December 14, 1986, that the attendance was lower than 47,096?`

### 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 `When was the last time, since December 14, 1986, that the attendance was lower than 47,096?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "date"='december 14, 1986' AND "attendance"<'47,096';
```
## Task
Generate a SQL query to answer the following question:
`What is the Surface of indoor/carpet Outcome on 13 October 1996`

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

CREATE TABLE "doubles_finals" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Surface of indoor/carpet Outcome on 13 October 1996`:
```sql
                SELECT "outcome" FROM "doubles_finals" WHERE "surface"='indoor/carpet' AND "date"='13 october 1996';
```
## Task
Generate a SQL query to answer the following question:
`What the Outcome for the Tournament of Johannesburg, South Africa`

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

CREATE TABLE "doubles_finals" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What the Outcome for the Tournament of Johannesburg, South Africa`:
```sql
                SELECT "outcome" FROM "doubles_finals" WHERE "tournament"='johannesburg, south africa';
```
## Task
Generate a SQL query to answer the following question:
`What is the launch site of the delta iv rocket?`

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

CREATE TABLE "block_iif" (
  "date" text,
  "rocket" text,
  "type" text,
  "launch_site" text,
  "satellite" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the launch site of the delta iv rocket?`:
```sql
                SELECT "launch_site" FROM "block_iif" WHERE "rocket"='delta iv';
```
## Task
Generate a SQL query to answer the following question:
`What is the type of the gps iif-10 satellite with an unknown date?`

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

CREATE TABLE "block_iif" (
  "date" text,
  "rocket" text,
  "type" text,
  "launch_site" text,
  "satellite" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of the gps iif-10 satellite with an unknown date?`:
```sql
                SELECT "type" FROM "block_iif" WHERE "date"='unknown' AND "satellite"='gps iif-10';
```
## Task
Generate a SQL query to answer the following question:
`What is the type of the gps iif-10 satellite?`

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

CREATE TABLE "block_iif" (
  "date" text,
  "rocket" text,
  "type" text,
  "launch_site" text,
  "satellite" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of the gps iif-10 satellite?`:
```sql
                SELECT "type" FROM "block_iif" WHERE "satellite"='gps iif-10';
```
## Task
Generate a SQL query to answer the following question:
`What is the launch site of the delta iv rocket with an unknown date and a gps iif-10 satellite?`

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

CREATE TABLE "block_iif" (
  "date" text,
  "rocket" text,
  "type" text,
  "launch_site" text,
  "satellite" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the launch site of the delta iv rocket with an unknown date and a gps iif-10 satellite?`:
```sql
                SELECT "launch_site" FROM "block_iif" WHERE "date"='unknown' AND "rocket"='delta iv' AND "satellite"='gps iif-10';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the gps iif-7 satellite?`

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

CREATE TABLE "block_iif" (
  "date" text,
  "rocket" text,
  "type" text,
  "launch_site" text,
  "satellite" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the gps iif-7 satellite?`:
```sql
                SELECT "date" FROM "block_iif" WHERE "satellite"='gps iif-7';
```
## Task
Generate a SQL query to answer the following question:
`What was the finish for 1992?`

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

CREATE TABLE "indy_500_results" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the finish for 1992?`:
```sql
                SELECT "finish" FROM "indy_500_results" WHERE "year"=1992;
```
## Task
Generate a SQL query to answer the following question:
`What was Andretti's finish for the year he had a Buick engine and started 16th?`

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

CREATE TABLE "indy_500_results" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Andretti's finish for the year he had a Buick engine and started 16th?`:
```sql
                SELECT "finish" FROM "indy_500_results" WHERE "engine"='buick' AND "start"='16th';
```
## Task
Generate a SQL query to answer the following question:
`What was Andretti's finish the year he started 16th with a Buick engine?`

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

CREATE TABLE "indy_500_results" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Andretti's finish the year he started 16th with a Buick engine?`:
```sql
                SELECT "finish" FROM "indy_500_results" WHERE "engine"='buick' AND "start"='16th';
```
## Task
Generate a SQL query to answer the following question:
`How many years were there a men's double of györgy vörös gábor petrovits and a men's single of györgy vörös?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years were there a men's double of györgy vörös gábor petrovits and a men's single of györgy vörös?`:
```sql
                SELECT SUM("year") FROM "past_winners" WHERE "men_s_doubles"='györgy vörös gábor petrovits' AND "men_s_singles"='györgy vörös';
```
## Task
Generate a SQL query to answer the following question:
`Which Drawn has a Points of 6, and a Against larger than 16?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Drawn has a Points of 6, and a Against larger than 16?`:
```sql
                SELECT SUM("drawn") FROM "campeonato_paulista" WHERE "points"=6 AND "against">16;
```
## Task
Generate a SQL query to answer the following question:
`Which Points has a Difference of 3, and a Played smaller than 10?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points has a Difference of 3, and a Played smaller than 10?`:
```sql
                SELECT AVG("points") FROM "campeonato_paulista" WHERE "difference"='3' AND "played"<10;
```
## Task
Generate a SQL query to answer the following question:
`Which Points has a Team of são paulo athletic, and a Position larger than 5?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points has a Team of são paulo athletic, and a Position larger than 5?`:
```sql
                SELECT SUM("points") FROM "campeonato_paulista" WHERE "team"='são paulo athletic' AND "position">5;
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Played larger than 9, and a Points smaller than 11, and a Drawn smaller than 0?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Played larger than 9, and a Points smaller than 11, and a Drawn smaller than 0?`:
```sql
                SELECT MIN("position") FROM "campeonato_paulista" WHERE "played">9 AND "points"<11 AND "drawn"<0;
```
## Task
Generate a SQL query to answer the following question:
`What track has a catalogue of 47-9465?`

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

CREATE TABLE "1997_reissue_bonus_tracks" (
  "track" real,
  "recorded" text,
  "catalogue" text,
  "release_date" text,
  "song_title" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What track has a catalogue of 47-9465?`:
```sql
                SELECT SUM("track") FROM "1997_reissue_bonus_tracks" WHERE "catalogue"='47-9465';
```
## Task
Generate a SQL query to answer the following question:
`What track has a time of 2:30?`

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

CREATE TABLE "1997_reissue_bonus_tracks" (
  "track" real,
  "recorded" text,
  "catalogue" text,
  "release_date" text,
  "song_title" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What track has a time of 2:30?`:
```sql
                SELECT "track" FROM "1997_reissue_bonus_tracks" WHERE "time"='2:30';
```
## Task
Generate a SQL query to answer the following question:
`What catalogue was recorded on 9/10/67 and a release date of 1/9/68?`

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

CREATE TABLE "1997_reissue_bonus_tracks" (
  "track" real,
  "recorded" text,
  "catalogue" text,
  "release_date" text,
  "song_title" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What catalogue was recorded on 9/10/67 and a release date of 1/9/68?`:
```sql
                SELECT "catalogue" FROM "1997_reissue_bonus_tracks" WHERE "recorded"='9/10/67' AND "release_date"='1/9/68';
```
## Task
Generate a SQL query to answer the following question:
`Where does Norway rank in total medals among countries with fewer than 7 bronzes?`

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

CREATE TABLE "all_time_medal_tables" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where does Norway rank in total medals among countries with fewer than 7 bronzes?`:
```sql
                SELECT "rank" FROM "all_time_medal_tables" WHERE "bronze"<7 AND "nation"='norway';
```
## Task
Generate a SQL query to answer the following question:
`What is the Inns of 435 Runs?`

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

CREATE TABLE "best_batting_strike_rate" (
  "player" text,
  "team" text,
  "inns" real,
  "runs" real,
  "balls" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Inns of 435 Runs?`:
```sql
                SELECT "inns" FROM "best_batting_strike_rate" WHERE "runs"=435;
```
## Task
Generate a SQL query to answer the following question:
`What is the average 1st place with a Rank that is larger than 10?`

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

CREATE TABLE "total_team_ranking_open_section" (
  "rank" real,
  "country" text,
  "1st_place" real,
  "2nd_place" real,
  "3rd_place" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average 1st place with a Rank that is larger than 10?`:
```sql
                SELECT AVG("1st_place") FROM "total_team_ranking_open_section" WHERE "rank">10;
```
## Task
Generate a SQL query to answer the following question:
`What week was the Runner-up Lori McNeil?`

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

CREATE TABLE "november" (
  "week_of" text,
  "tier" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What week was the Runner-up Lori McNeil?`:
```sql
                SELECT "week_of" FROM "november" WHERE "runner_up"='lori mcneil';
```
## Task
Generate a SQL query to answer the following question:
`When the runner-up was Jing-qian Yi, who was the winner?`

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

CREATE TABLE "november" (
  "week_of" text,
  "tier" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the runner-up was Jing-qian Yi, who was the winner?`:
```sql
                SELECT "winner" FROM "november" WHERE "runner_up"='jing-qian yi';
```
## Task
Generate a SQL query to answer the following question:
`Who was the musical guest when the panelists were Nancy Sorrell and Samia Smith?`

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

CREATE TABLE "series_2" (
  "episode_number" real,
  "air_date" text,
  "guest_host" text,
  "musical_guest_song_performed" text,
  "who_knows_the_most_about_the_guest_host_panelists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the musical guest when the panelists were Nancy Sorrell and Samia Smith?`:
```sql
                SELECT "musical_guest_song_performed" FROM "series_2" WHERE "who_knows_the_most_about_the_guest_host_panelists"='nancy sorrell and samia smith';
```
## Task
Generate a SQL query to answer the following question:
`Who was the guest host for episode numbers under 6 and panelists of Jade Goody and Kenzie?`

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

CREATE TABLE "series_2" (
  "episode_number" real,
  "air_date" text,
  "guest_host" text,
  "musical_guest_song_performed" text,
  "who_knows_the_most_about_the_guest_host_panelists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the guest host for episode numbers under 6 and panelists of Jade Goody and Kenzie?`:
```sql
                SELECT "guest_host" FROM "series_2" WHERE "episode_number"<6 AND "who_knows_the_most_about_the_guest_host_panelists"='jade goody and kenzie';
```
## Task
Generate a SQL query to answer the following question:
`Who were the panelists on episode number 4?`

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

CREATE TABLE "series_2" (
  "episode_number" real,
  "air_date" text,
  "guest_host" text,
  "musical_guest_song_performed" text,
  "who_knows_the_most_about_the_guest_host_panelists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the panelists on episode number 4?`:
```sql
                SELECT "who_knows_the_most_about_the_guest_host_panelists" FROM "series_2" WHERE "episode_number"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest episode number in which Jamie Oliver guest-hosted?`

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

CREATE TABLE "series_2" (
  "episode_number" real,
  "air_date" text,
  "guest_host" text,
  "musical_guest_song_performed" text,
  "who_knows_the_most_about_the_guest_host_panelists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest episode number in which Jamie Oliver guest-hosted?`:
```sql
                SELECT MAX("episode_number") FROM "series_2" WHERE "guest_host"='jamie oliver';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the home game for the Cavaliers where Lebron James (46) was the lead scorer?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the home game for the Cavaliers where Lebron James (46) was the lead scorer?`:
```sql
                SELECT "score" FROM "march" WHERE "home"='cavaliers' AND "leading_scorer"='lebron james (46)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the leading scorer against the visiting team Bulls?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the leading scorer against the visiting team Bulls?`:
```sql
                SELECT "leading_scorer" FROM "march" WHERE "visitor"='bulls';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game played against the home team Rockets?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game played against the home team Rockets?`:
```sql
                SELECT "date" FROM "march" WHERE "home"='rockets';
```
## Task
Generate a SQL query to answer the following question:
`What was the Date of the Cimmeria Issue for which the Penciller was Tomás Giorello?`

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

CREATE TABLE "conan_dark_horse_comics" (
  "issue" text,
  "date" text,
  "title" text,
  "penciller" text,
  "color" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Date of the Cimmeria Issue for which the Penciller was Tomás Giorello?`:
```sql
                SELECT "date" FROM "conan_dark_horse_comics" WHERE "penciller"='tomás giorello' AND "title"='cimmeria';
```
## Task
Generate a SQL query to answer the following question:
`When did the Issue with the Title Homecoming come out?`

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

CREATE TABLE "conan_dark_horse_comics" (
  "issue" text,
  "date" text,
  "title" text,
  "penciller" text,
  "color" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the Issue with the Title Homecoming come out?`:
```sql
                SELECT "date" FROM "conan_dark_horse_comics" WHERE "title"='homecoming';
```
## Task
Generate a SQL query to answer the following question:
`Which average match has a lost greater than 0, points greater than 6, legia warszawa as the team, and a draw less than 0?`

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

CREATE TABLE "first_league" (
  "team" text,
  "match" real,
  "points" real,
  "draw" real,
  "lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which average match has a lost greater than 0, points greater than 6, legia warszawa as the team, and a draw less than 0?`:
```sql
                SELECT AVG("match") FROM "first_league" WHERE "lost">0 AND "points">6 AND "team"='legia warszawa' AND "draw"<0;
```
## Task
Generate a SQL query to answer the following question:
`What draw has a lost less than 6 with 28 as the points?`

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

CREATE TABLE "first_league" (
  "team" text,
  "match" real,
  "points" real,
  "draw" real,
  "lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `What draw has a lost less than 6 with 28 as the points?`:
```sql
                SELECT "draw" FROM "first_league" WHERE "lost"<6 AND "points"=28;
```
## Task
Generate a SQL query to answer the following question:
`Which average lost that has a match less than 14?`

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

CREATE TABLE "first_league" (
  "team" text,
  "match" real,
  "points" real,
  "draw" real,
  "lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which average lost that has a match less than 14?`:
```sql
                SELECT AVG("lost") FROM "first_league" WHERE "match"<14;
```
## Task
Generate a SQL query to answer the following question:
`What is the Match for skra warszawa?`

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

CREATE TABLE "second_league" (
  "team" text,
  "match" text,
  "points" text,
  "draw" text,
  "lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Match for skra warszawa?`:
```sql
                SELECT "match" FROM "second_league" WHERE "team"='skra warszawa';
```
## Task
Generate a SQL query to answer the following question:
`What is the Draw for skra warszawa?`

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

CREATE TABLE "second_league" (
  "team" text,
  "match" text,
  "points" text,
  "draw" text,
  "lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Draw for skra warszawa?`:
```sql
                SELECT "draw" FROM "second_league" WHERE "team"='skra warszawa';
```
## Task
Generate a SQL query to answer the following question:
`What is the Lost when the points were dissolved?`

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

CREATE TABLE "second_league" (
  "team" text,
  "match" text,
  "points" text,
  "draw" text,
  "lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Lost when the points were dissolved?`:
```sql
                SELECT "lost" FROM "second_league" WHERE "points"='dissolved';
```
## Task
Generate a SQL query to answer the following question:
`What is the Draw for match 10, and the team was skra warszawa?`

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

CREATE TABLE "second_league" (
  "team" text,
  "match" text,
  "points" text,
  "draw" text,
  "lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Draw for match 10, and the team was skra warszawa?`:
```sql
                SELECT "draw" FROM "second_league" WHERE "match"='10' AND "team"='skra warszawa';
```
## Task
Generate a SQL query to answer the following question:
`What is the Draw for the team of tramwajarz łódź?`

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

CREATE TABLE "second_league" (
  "team" text,
  "match" text,
  "points" text,
  "draw" text,
  "lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Draw for the team of tramwajarz łódź?`:
```sql
                SELECT "draw" FROM "second_league" WHERE "team"='tramwajarz łódź';
```
## Task
Generate a SQL query to answer the following question:
`What is the Draw for the team tramwajarz łódź?`

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

CREATE TABLE "second_league" (
  "team" text,
  "match" text,
  "points" text,
  "draw" text,
  "lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Draw for the team tramwajarz łódź?`:
```sql
                SELECT "draw" FROM "second_league" WHERE "team"='tramwajarz łódź';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location when the novelty is gen?`

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

CREATE TABLE "newly_named_dinosaurs" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location when the novelty is gen?`:
```sql
                SELECT "location" FROM "newly_named_dinosaurs" WHERE "novelty"='gen';
```
## Task
Generate a SQL query to answer the following question:
`What shows for Unit with a status of nomen oblitum?`

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

CREATE TABLE "newly_named_dinosaurs" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for Unit with a status of nomen oblitum?`:
```sql
                SELECT "unit" FROM "newly_named_dinosaurs" WHERE "status"='nomen oblitum';
```