cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which label is in Australia?`

### 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 `Which label is in Australia?`:
```sql
                SELECT "label" FROM "release_history" WHERE "region"='australia';
```
## Task
Generate a SQL query to answer the following question:
`The match that lasted 2:43 has what record?`

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

CREATE TABLE "boxing_record" (
  "date" text,
  "result" text,
  "opponent" text,
  "venue" text,
  "location" text,
  "method" text,
  "round" real,
  "time" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `The match that lasted 2:43 has what record?`:
```sql
                SELECT "record" FROM "boxing_record" WHERE "time"='2:43';
```
## Task
Generate a SQL query to answer the following question:
`The match that was held at Club Med Sandpiper has what method?`

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

CREATE TABLE "boxing_record" (
  "date" text,
  "result" text,
  "opponent" text,
  "venue" text,
  "location" text,
  "method" text,
  "round" real,
  "time" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `The match that was held at Club Med Sandpiper has what method?`:
```sql
                SELECT "method" FROM "boxing_record" WHERE "venue"='club med sandpiper';
```
## Task
Generate a SQL query to answer the following question:
`The match of at Michael's Eighth Avenue venue against Tim Coleman that went 3:00 has what record?`

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

CREATE TABLE "boxing_record" (
  "date" text,
  "result" text,
  "opponent" text,
  "venue" text,
  "location" text,
  "method" text,
  "round" real,
  "time" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `The match of at Michael's Eighth Avenue venue against Tim Coleman that went 3:00 has what record?`:
```sql
                SELECT "record" FROM "boxing_record" WHERE "time"='3:00' AND "venue"='michael''s eighth avenue' AND "opponent"='tim coleman';
```
## Task
Generate a SQL query to answer the following question:
`What method did the match at Club Med Sandpiper have?`

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

CREATE TABLE "boxing_record" (
  "date" text,
  "result" text,
  "opponent" text,
  "venue" text,
  "location" text,
  "method" text,
  "round" real,
  "time" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What method did the match at Club Med Sandpiper have?`:
```sql
                SELECT "method" FROM "boxing_record" WHERE "venue"='club med sandpiper';
```
## Task
Generate a SQL query to answer the following question:
`What is the Label of the release with Catalog number LPM-2899?`

### 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 Label of the release with Catalog number LPM-2899?`:
```sql
                SELECT "label" FROM "release_history" WHERE "catalog"='lpm-2899';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the RCA release with Catalog number SF-7635?`

### 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 Date of the RCA release with Catalog number SF-7635?`:
```sql
                SELECT "date" FROM "release_history" WHERE "label"='rca' AND "catalog"='sf-7635';
```
## Task
Generate a SQL query to answer the following question:
`What is the Catalog of the RCA release?`

### 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 Catalog of the RCA release?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "label"='rca';
```
## Task
Generate a SQL query to answer the following question:
`What is the Catalog number of the CD Reissue Universal release?`

### 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 Catalog number of the CD Reissue Universal release?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "format"='cd reissue' AND "label"='universal';
```
## Task
Generate a SQL query to answer the following question:
`What is the Label of the release on Stereo vinyl LP with Catalog number SF-7635?`

### 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 Label of the release on Stereo vinyl LP with Catalog number SF-7635?`:
```sql
                SELECT "label" FROM "release_history" WHERE "format"='stereo vinyl lp' AND "catalog"='sf-7635';
```
## Task
Generate a SQL query to answer the following question:
`What university has a 2009 int'l student review greater than 268 and median rank greater than 4?`

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

CREATE TABLE "taiwan" (
  "2010_arwu_rankings" text,
  "2010_qs_world_rankings" text,
  "2010_qs_asian_rankings" text,
  "2010_eduniversal_rankings" text,
  "2009_qs_asian_rankings_int_l_faculty_review" text,
  "2009_qs_asian_rankings_int_l_student_review" real,
  "2000_singapore_asiaweek_rankings" text,
  "university" text,
  "local" text,
  "median_ranks" real
);
### SQL
Given the database schema, here is the SQL query that answers `What university has a 2009 int'l student review greater than 268 and median rank greater than 4?`:
```sql
                SELECT "university" FROM "taiwan" WHERE "median_ranks">4 AND "2009_qs_asian_rankings_int_l_student_review">268;
```
## Task
Generate a SQL query to answer the following question:
`What's the ARWU ranking that has the int' student review of 144, a median rank of less than 10, and 2000 Singapore “Asiaweek” of none?`

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

CREATE TABLE "taiwan" (
  "2010_arwu_rankings" text,
  "2010_qs_world_rankings" text,
  "2010_qs_asian_rankings" text,
  "2010_eduniversal_rankings" text,
  "2009_qs_asian_rankings_int_l_faculty_review" text,
  "2009_qs_asian_rankings_int_l_student_review" real,
  "2000_singapore_asiaweek_rankings" text,
  "university" text,
  "local" text,
  "median_ranks" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the ARWU ranking that has the int' student review of 144, a median rank of less than 10, and 2000 Singapore “Asiaweek” of none?`:
```sql
                SELECT "2010_arwu_rankings" FROM "taiwan" WHERE "2000_singapore_asiaweek_rankings"='none' AND "median_ranks"<10 AND "2009_qs_asian_rankings_int_l_student_review"=144;
```
## Task
Generate a SQL query to answer the following question:
`Name the local that has the Int'l student review less than 320 and 2010 Eduniversal ranking of none.`

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

CREATE TABLE "taiwan" (
  "2010_arwu_rankings" text,
  "2010_qs_world_rankings" text,
  "2010_qs_asian_rankings" text,
  "2010_eduniversal_rankings" text,
  "2009_qs_asian_rankings_int_l_faculty_review" text,
  "2009_qs_asian_rankings_int_l_student_review" real,
  "2000_singapore_asiaweek_rankings" text,
  "university" text,
  "local" text,
  "median_ranks" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the local that has the Int'l student review less than 320 and 2010 Eduniversal ranking of none.`:
```sql
                SELECT "local" FROM "taiwan" WHERE "2010_eduniversal_rankings"='none' AND "2010_arwu_rankings"='none' AND "2009_qs_asian_rankings_int_l_student_review"<320;
```
## Task
Generate a SQL query to answer the following question:
`What's the int'l student review that has the 2010 QS Rank of none?`

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

CREATE TABLE "taiwan" (
  "2010_arwu_rankings" text,
  "2010_qs_world_rankings" text,
  "2010_qs_asian_rankings" text,
  "2010_eduniversal_rankings" text,
  "2009_qs_asian_rankings_int_l_faculty_review" text,
  "2009_qs_asian_rankings_int_l_student_review" real,
  "2000_singapore_asiaweek_rankings" text,
  "university" text,
  "local" text,
  "median_ranks" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the int'l student review that has the 2010 QS Rank of none?`:
```sql
                SELECT SUM("2009_qs_asian_rankings_int_l_student_review") FROM "taiwan" WHERE "2010_qs_asian_rankings"='none';
```
## Task
Generate a SQL query to answer the following question:
`What university has an int'l student review of 195?`

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

CREATE TABLE "taiwan" (
  "2010_arwu_rankings" text,
  "2010_qs_world_rankings" text,
  "2010_qs_asian_rankings" text,
  "2010_eduniversal_rankings" text,
  "2009_qs_asian_rankings_int_l_faculty_review" text,
  "2009_qs_asian_rankings_int_l_student_review" real,
  "2000_singapore_asiaweek_rankings" text,
  "university" text,
  "local" text,
  "median_ranks" real
);
### SQL
Given the database schema, here is the SQL query that answers `What university has an int'l student review of 195?`:
```sql
                SELECT "university" FROM "taiwan" WHERE "2009_qs_asian_rankings_int_l_student_review"=195;
```
## Task
Generate a SQL query to answer the following question:
`WHAT CANDIDATE HAD A MARGIN OF ERROR OF ± 4.5%, WHEN PAT TOOMEY WAS 45% AND JOE SESTAK WAS 38%?`

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

CREATE TABLE "polling" (
  "poll_source" text,
  "date_s_administered" text,
  "sample_size" real,
  "margin_of_error" text,
  "joe_sestak_d" text,
  "pat_toomey_r" text,
  "other" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT CANDIDATE HAD A MARGIN OF ERROR OF ± 4.5%, WHEN PAT TOOMEY WAS 45% AND JOE SESTAK WAS 38%?`:
```sql
                SELECT "other" FROM "polling" WHERE "margin_of_error"='± 4.5%' AND "pat_toomey_r"='45%' AND "joe_sestak_d"='38%';
```
## Task
Generate a SQL query to answer the following question:
`WHAT DATE DID JOE SESTAK HAVE 46% WITH ± 3.0% MARGIN OF ERROR?`

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

CREATE TABLE "polling" (
  "poll_source" text,
  "date_s_administered" text,
  "sample_size" real,
  "margin_of_error" text,
  "joe_sestak_d" text,
  "pat_toomey_r" text,
  "other" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT DATE DID JOE SESTAK HAVE 46% WITH ± 3.0% MARGIN OF ERROR?`:
```sql
                SELECT "date_s_administered" FROM "polling" WHERE "joe_sestak_d"='46%' AND "margin_of_error"='± 3.0%';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE POINTS PERCENTAGE WITH A TOTAL OF 1-2-2 RECORD?`

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

CREATE TABLE "solheim_cup_record" (
  "year" text,
  "total_matches" real,
  "total_w_l_h" text,
  "singles_w_l_h" text,
  "points_won" real,
  "points_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE POINTS PERCENTAGE WITH A TOTAL OF 1-2-2 RECORD?`:
```sql
                SELECT "points_pct" FROM "solheim_cup_record" WHERE "total_w_l_h"='1-2-2';
```
## Task
Generate a SQL query to answer the following question:
`WHAT YEAR HAD 5 TOTAL MATCHES?`

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

CREATE TABLE "solheim_cup_record" (
  "year" text,
  "total_matches" real,
  "total_w_l_h" text,
  "singles_w_l_h" text,
  "points_won" real,
  "points_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT YEAR HAD 5 TOTAL MATCHES?`:
```sql
                SELECT "year" FROM "solheim_cup_record" WHERE "total_matches"=5;
```
## Task
Generate a SQL query to answer the following question:
`What is the quantity preserved when 4 were made of class F-21?`

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

CREATE TABLE "class_f_2_8_0" (
  "class" text,
  "wheel_arrangement" text,
  "fleet_number_s" text,
  "manufacturer" text,
  "year_made" text,
  "quantity_made" text,
  "quantity_preserved" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the quantity preserved when 4 were made of class F-21?`:
```sql
                SELECT "quantity_preserved" FROM "class_f_2_8_0" WHERE "quantity_made"='4' AND "class"='f-21';
```
## Task
Generate a SQL query to answer the following question:
`What fleet number had 3 made?`

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

CREATE TABLE "class_f_2_8_0" (
  "class" text,
  "wheel_arrangement" text,
  "fleet_number_s" text,
  "manufacturer" text,
  "year_made" text,
  "quantity_made" text,
  "quantity_preserved" text
);
### SQL
Given the database schema, here is the SQL query that answers `What fleet number had 3 made?`:
```sql
                SELECT "fleet_number_s" FROM "class_f_2_8_0" WHERE "quantity_made"='3';
```
## Task
Generate a SQL query to answer the following question:
`What class had 1 made and fleet number of 406?`

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

CREATE TABLE "class_f_2_8_0" (
  "class" text,
  "wheel_arrangement" text,
  "fleet_number_s" text,
  "manufacturer" text,
  "year_made" text,
  "quantity_made" text,
  "quantity_preserved" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class had 1 made and fleet number of 406?`:
```sql
                SELECT "class" FROM "class_f_2_8_0" WHERE "quantity_made"='1' AND "fleet_number_s"='406';
```
## Task
Generate a SQL query to answer the following question:
`What class has 0 preserved and 2 made?`

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

CREATE TABLE "class_f_2_8_0" (
  "class" text,
  "wheel_arrangement" text,
  "fleet_number_s" text,
  "manufacturer" text,
  "year_made" text,
  "quantity_made" text,
  "quantity_preserved" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class has 0 preserved and 2 made?`:
```sql
                SELECT "class" FROM "class_f_2_8_0" WHERE "quantity_preserved"='0' AND "quantity_made"='2';
```
## Task
Generate a SQL query to answer the following question:
`What rank has a population of 4839400?`

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

CREATE TABLE "largest_cities_proper_by_population" (
  "rank" real,
  "city" text,
  "population" text,
  "definition" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank has a population of 4839400?`:
```sql
                SELECT MIN("rank") FROM "largest_cities_proper_by_population" WHERE "population"='4839400';
```
## Task
Generate a SQL query to answer the following question:
`What's the rank of the Province-Level Municipality?`

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

CREATE TABLE "largest_cities_proper_by_population" (
  "rank" real,
  "city" text,
  "population" text,
  "definition" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the rank of the Province-Level Municipality?`:
```sql
                SELECT "rank" FROM "largest_cities_proper_by_population" WHERE "definition"='province-level municipality';
```
## Task
Generate a SQL query to answer the following question:
`What rank was Core Districts + Inner Suburbs and had a population of 10123000?`

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

CREATE TABLE "largest_cities_proper_by_population" (
  "rank" real,
  "city" text,
  "population" text,
  "definition" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank was Core Districts + Inner Suburbs and had a population of 10123000?`:
```sql
                SELECT MAX("rank") FROM "largest_cities_proper_by_population" WHERE "definition"='core districts + inner suburbs' AND "population"='10123000';
```
## Task
Generate a SQL query to answer the following question:
`What is Points, when Draws is less than 7, when Wins is less than 16, and when Goals For is "35"?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Points, when Draws is less than 7, when Wins is less than 16, and when Goals For is "35"?`:
```sql
                SELECT "points" FROM "group_ii" WHERE "draws"<7 AND "wins"<16 AND "goals_for"=35;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Losses, when Position is greater than 8, when Goals For is greater than 34, when Points is "25", and when Draws is less than 5?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Losses, when Position is greater than 8, when Goals For is greater than 34, when Points is "25", and when Draws is less than 5?`:
```sql
                SELECT COUNT("losses") FROM "group_ii" WHERE "position">8 AND "goals_for">34 AND "points"=25 AND "draws"<5;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Wins, when Points is less than "19"?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Wins, when Points is less than "19"?`:
```sql
                SELECT AVG("wins") FROM "group_ii" WHERE "points"<19;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Goals, when Played is greater than 30?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Goals, when Played is greater than 30?`:
```sql
                SELECT MIN("goals_for") FROM "group_ii" WHERE "played">30;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Played, when Losses is "13", and when Position is greater than 11?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Played, when Losses is "13", and when Position is greater than 11?`:
```sql
                SELECT SUM("played") FROM "group_ii" WHERE "losses"=13 AND "position">11;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Wins, when Losses is less than 10, when Goal Difference is less than 46, when Goals is less than 63, and when Played is less than 30?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Wins, when Losses is less than 10, when Goal Difference is less than 46, when Goals is less than 63, and when Played is less than 30?`:
```sql
                SELECT MIN("wins") FROM "group_ii" WHERE "losses"<10 AND "goal_difference"<46 AND "goals_for"<63 AND "played"<30;
```
## Task
Generate a SQL query to answer the following question:
`How many viewed the episode gary gets boundaries?`

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

CREATE TABLE "season_1_2008_2009_weekly_ratings" (
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "18_49" text,
  "viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewed the episode gary gets boundaries?`:
```sql
                SELECT COUNT("viewers") FROM "season_1_2008_2009_weekly_ratings" WHERE "episode"='gary gets boundaries';
```
## Task
Generate a SQL query to answer the following question:
`What episode had 6.71 viewers?`

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

CREATE TABLE "season_1_2008_2009_weekly_ratings" (
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "18_49" text,
  "viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What episode had 6.71 viewers?`:
```sql
                SELECT "episode" FROM "season_1_2008_2009_weekly_ratings" WHERE "viewers"=6.71;
```
## Task
Generate a SQL query to answer the following question:
`When did the episode air that had 7.3 viewers?`

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

CREATE TABLE "season_1_2008_2009_weekly_ratings" (
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "18_49" text,
  "viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did the episode air that had 7.3 viewers?`:
```sql
                SELECT "air_date" FROM "season_1_2008_2009_weekly_ratings" WHERE "viewers"=7.3;
```
## Task
Generate a SQL query to answer the following question:
`What day in March is the game with a 48-13-11 record and a game number less than 72?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day in March is the game with a 48-13-11 record and a game number less than 72?`:
```sql
                SELECT SUM("march") FROM "schedule_and_results" WHERE "record"='48-13-11' AND "game"<72;
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent of game 75?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent of game 75?`:
```sql
                SELECT "opponent" FROM "schedule_and_results" WHERE "game"=75;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest game number of the game after March 2 with the minnesota north stars as the opponent?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest game number of the game after March 2 with the minnesota north stars as the opponent?`:
```sql
                SELECT MIN("game") FROM "schedule_and_results" WHERE "march">2 AND "opponent"='minnesota north stars';
```
## Task
Generate a SQL query to answer the following question:
`The winner, Craig Lowndes, was in what location/state?`

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

CREATE TABLE "race_calendar" (
  "circuit" text,
  "location_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `The winner, Craig Lowndes, was in what location/state?`:
```sql
                SELECT "location_state" FROM "race_calendar" WHERE "winner"='craig lowndes';
```
## Task
Generate a SQL query to answer the following question:
`The Eastern Creek Raceway circuit is on what date?`

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

CREATE TABLE "race_calendar" (
  "circuit" text,
  "location_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Eastern Creek Raceway circuit is on what date?`:
```sql
                SELECT "date" FROM "race_calendar" WHERE "circuit"='eastern creek raceway';
```
## Task
Generate a SQL query to answer the following question:
`Castrol Perkins Motorsport and the winner Russell Ingall was in what location/state?`

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

CREATE TABLE "race_calendar" (
  "circuit" text,
  "location_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Castrol Perkins Motorsport and the winner Russell Ingall was in what location/state?`:
```sql
                SELECT "location_state" FROM "race_calendar" WHERE "team"='castrol perkins motorsport' AND "winner"='russell ingall';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 1998 when 1996 is 1R, and 2002 is not held?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 1998 when 1996 is 1R, and 2002 is not held?`:
```sql
                SELECT "1998" FROM "singles_performance_timeline" WHERE "1996"='1r' AND "2002"='not held';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1996 when the 1994 is A, the 2003 is A, and the 2001 is 1R?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1996 when the 1994 is A, the 2003 is A, and the 2001 is 1R?`:
```sql
                SELECT "1996" FROM "singles_performance_timeline" WHERE "1994"='a' AND "2003"='a' AND "2001"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 1991 when 2002 is 2R?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 1991 when 2002 is 2R?`:
```sql
                SELECT "1991" FROM "singles_performance_timeline" WHERE "2002"='2r';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 2006 when 1999 is Grand Slam Tournaments?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2006 when 1999 is Grand Slam Tournaments?`:
```sql
                SELECT "2006" FROM "singles_performance_timeline" WHERE "1990"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 2006 when 2000 is 1r, 1996 is A, and Tournament is Cincinnati Masters?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2006 when 2000 is 1r, 1996 is A, and Tournament is Cincinnati Masters?`:
```sql
                SELECT "2006" FROM "singles_performance_timeline" WHERE "2000"='1r' AND "1996"='a' AND "tournament"='cincinnati masters';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tournament when the 1990 is Olympic Games?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tournament when the 1990 is Olympic Games?`:
```sql
                SELECT "tournament" FROM "singles_performance_timeline" WHERE "1990"='olympic games';
```
## Task
Generate a SQL query to answer the following question:
`Which Location has a Record of 0-1?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location has a Record of 0-1?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='0-1';
```
## Task
Generate a SQL query to answer the following question:
`What is Record, when Method is "Technical Submission (Rear Naked Choke)"?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Record, when Method is "Technical Submission (Rear Naked Choke)"?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "method"='technical submission (rear naked choke)';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Round(s), when Method is "Submission (Banana Split)"?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Round(s), when Method is "Submission (Banana Split)"?`:
```sql
                SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "method"='submission (banana split)';
```
## Task
Generate a SQL query to answer the following question:
`What is Time, when Event is "GCM: Demolition 1"?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Time, when Event is "GCM: Demolition 1"?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "event"='gcm: demolition 1';
```
## Task
Generate a SQL query to answer the following question:
`Which year was "the 12 year old boy" performed?`

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

CREATE TABLE "partial_discography" (
  "year" real,
  "title" text,
  "performer" text,
  "label" text,
  "cat_no" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which year was "the 12 year old boy" performed?`:
```sql
                SELECT "year" FROM "partial_discography" WHERE "title"='\"the 12 year old boy\"';
```
## Task
Generate a SQL query to answer the following question:
`What year had a 100m freestyle event?`

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

CREATE TABLE "canadian_records" (
  "event" text,
  "long_course_short_course" text,
  "year_set" real,
  "time" text,
  "meet" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had a 100m freestyle event?`:
```sql
                SELECT COUNT("year_set") FROM "canadian_records" WHERE "event"='100m freestyle';
```
## Task
Generate a SQL query to answer the following question:
`What event had a short course in 2010?`

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

CREATE TABLE "canadian_records" (
  "event" text,
  "long_course_short_course" text,
  "year_set" real,
  "time" text,
  "meet" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event had a short course in 2010?`:
```sql
                SELECT "event" FROM "canadian_records" WHERE "long_course_short_course"='short course' AND "year_set"=2010;
```
## Task
Generate a SQL query to answer the following question:
`What year did a short course have a time of 7:51.80?`

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

CREATE TABLE "canadian_records" (
  "event" text,
  "long_course_short_course" text,
  "year_set" real,
  "time" text,
  "meet" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did a short course have a time of 7:51.80?`:
```sql
                SELECT COUNT("year_set") FROM "canadian_records" WHERE "long_course_short_course"='short course' AND "time"='7:51.80';
```
## Task
Generate a SQL query to answer the following question:
`What was the latest year that had a 100m freestyle?`

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

CREATE TABLE "canadian_records" (
  "event" text,
  "long_course_short_course" text,
  "year_set" real,
  "time" text,
  "meet" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest year that had a 100m freestyle?`:
```sql
                SELECT MAX("year_set") FROM "canadian_records" WHERE "event"='100m freestyle';
```
## Task
Generate a SQL query to answer the following question:
`In what place was the song that had a draw of 3?`

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

CREATE TABLE "national_final_29_march_1992" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what place was the song that had a draw of 3?`:
```sql
                SELECT "place" FROM "national_final_29_march_1992" WHERE "draw"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of points for the 7th placed song with a draw greater than 8?`

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

CREATE TABLE "national_final_29_march_1992" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of points for the 7th placed song with a draw greater than 8?`:
```sql
                SELECT MIN("points") FROM "national_final_29_march_1992" WHERE "place"='7th' AND "draw">8;
```
## Task
Generate a SQL query to answer the following question:
`How many points did Joe O'Meara have?`

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

CREATE TABLE "national_final_29_march_1992" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did Joe O'Meara have?`:
```sql
                SELECT COUNT("points") FROM "national_final_29_march_1992" WHERE "artist"='joe o''meara';
```
## Task
Generate a SQL query to answer the following question:
`What was the draw for "Feel The Pain" which placed in 2nd and had more than 79 points?`

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

CREATE TABLE "national_final_29_march_1992" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the draw for "Feel The Pain" which placed in 2nd and had more than 79 points?`:
```sql
                SELECT AVG("draw") FROM "national_final_29_march_1992" WHERE "place"='2nd' AND "song"='\"feel the pain\"' AND "points">79;
```
## Task
Generate a SQL query to answer the following question:
`How many points did Linda Martin have?`

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

CREATE TABLE "national_final_29_march_1992" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did Linda Martin have?`:
```sql
                SELECT COUNT("points") FROM "national_final_29_march_1992" WHERE "artist"='linda martin';
```
## Task
Generate a SQL query to answer the following question:
`In what place did "feel the pain" come in?`

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

CREATE TABLE "national_final_29_march_1992" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what place did "feel the pain" come in?`:
```sql
                SELECT "place" FROM "national_final_29_march_1992" WHERE "song"='\"feel the pain\"';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE SCORE WITH A WEEK LARGER THAN 13, AND VISITOR TEAM MONTREAL ALOUETTES?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE SCORE WITH A WEEK LARGER THAN 13, AND VISITOR TEAM MONTREAL ALOUETTES?`:
```sql
                SELECT "score" FROM "season_schedule" WHERE "week">13 AND "visitor"='montreal alouettes';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE AVERAGE WEEK WITH A DATE OF JULY 25?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE AVERAGE WEEK WITH A DATE OF JULY 25?`:
```sql
                SELECT AVG("week") FROM "season_schedule" WHERE "date"='july 25';
```
## Task
Generate a SQL query to answer the following question:
`What was the tie for the Crystal Palace team?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tie for the Crystal Palace team?`:
```sql
                SELECT "tie_no" FROM "fourth_round_proper" WHERE "home_team"='crystal palace';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance for No. 15 tie?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance for No. 15 tie?`:
```sql
                SELECT "attendance" FROM "fourth_round_proper" WHERE "tie_no"='15';
```
## Task
Generate a SQL query to answer the following question:
`WHich Open Cup has a Division larger than 4?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Open Cup has a Division larger than 4?`:
```sql
                SELECT "open_cup" FROM "year_by_year" WHERE "division">4;
```
## Task
Generate a SQL query to answer the following question:
`Name the League which has a Regular Season of 3rd, atlantic?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the League which has a Regular Season of 3rd, atlantic?`:
```sql
                SELECT "league" FROM "year_by_year" WHERE "regular_season"='3rd, atlantic';
```
## Task
Generate a SQL query to answer the following question:
`WHICH Regular Season has a Division of 4?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHICH Regular Season has a Division of 4?`:
```sql
                SELECT "regular_season" FROM "year_by_year" WHERE "division"=4;
```
## Task
Generate a SQL query to answer the following question:
`WHICH Regular Season has a League of npsl, and a Year of 2008?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHICH Regular Season has a League of npsl, and a Year of 2008?`:
```sql
                SELECT "regular_season" FROM "year_by_year" WHERE "league"='npsl' AND "year"='2008';
```
## Task
Generate a SQL query to answer the following question:
`NAME THE Playoffs that HAVE a League of npsl, and a Open Cup of did not enter, and a Year of 2013?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `NAME THE Playoffs that HAVE a League of npsl, and a Open Cup of did not enter, and a Year of 2013?`:
```sql
                SELECT "playoffs" FROM "year_by_year" WHERE "league"='npsl' AND "open_cup"='did not enter' AND "year"='2013';
```
## Task
Generate a SQL query to answer the following question:
`What is the average February that has 18-26-10 as the record, with a game less than 54?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average February that has 18-26-10 as the record, with a game less than 54?`:
```sql
                SELECT AVG("february") FROM "schedule_and_results" WHERE "record"='18-26-10' AND "game"<54;
```
## Task
Generate a SQL query to answer the following question:
`How many Februarys have montreal canadiens as the opponent, and 18-25-10 as the record, with a game greater than 53?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Februarys have montreal canadiens as the opponent, and 18-25-10 as the record, with a game greater than 53?`:
```sql
                SELECT COUNT("february") FROM "schedule_and_results" WHERE "opponent"='montreal canadiens' AND "record"='18-25-10' AND "game">53;
```