cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What team was the Away team when the Tie no was 3?`

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

CREATE TABLE "fifth_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 team was the Away team when the Tie no was 3?`:
```sql
                SELECT "away_team" FROM "fifth_round_proper" WHERE "tie_no"='3';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tie no when the away team was Burnley?`

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

CREATE TABLE "fifth_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 Tie no when the away team was Burnley?`:
```sql
                SELECT "tie_no" FROM "fifth_round_proper" WHERE "away_team"='burnley';
```
## Task
Generate a SQL query to answer the following question:
`What shows for Tie no when Sheffield United was the Away team?`

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

CREATE TABLE "fifth_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 shows for Tie no when Sheffield United was the Away team?`:
```sql
                SELECT "tie_no" FROM "fifth_round_proper" WHERE "away_team"='sheffield united';
```
## Task
Generate a SQL query to answer the following question:
`What rank is the team with 1 silver, 3 bronze and a total of less than 8 medals?`

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

CREATE TABLE "overall" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What rank is the team with 1 silver, 3 bronze and a total of less than 8 medals?`:
```sql
                SELECT COUNT("rank") FROM "overall" WHERE "silver"=1 AND "bronze"=3 AND "total"<8;
```
## Task
Generate a SQL query to answer the following question:
`Which Balls Faced has a Average of 39.13 and Runs Scored larger than 313?`

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

CREATE TABLE "australia" (
  "name" text,
  "innings" real,
  "runs_scored" real,
  "balls_faced" real,
  "average" real,
  "s_r" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Balls Faced has a Average of 39.13 and Runs Scored larger than 313?`:
```sql
                SELECT SUM("balls_faced") FROM "australia" WHERE "average"=39.13 AND "runs_scored">313;
```
## Task
Generate a SQL query to answer the following question:
`Which Name has an Average of 48.83?`

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

CREATE TABLE "australia" (
  "name" text,
  "innings" real,
  "runs_scored" real,
  "balls_faced" real,
  "average" real,
  "s_r" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has an Average of 48.83?`:
```sql
                SELECT "name" FROM "australia" WHERE "average"=48.83;
```
## Task
Generate a SQL query to answer the following question:
`Which average S.R. has an Average of 39.13 and Balls Faced larger than 318?`

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

CREATE TABLE "australia" (
  "name" text,
  "innings" real,
  "runs_scored" real,
  "balls_faced" real,
  "average" real,
  "s_r" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which average S.R. has an Average of 39.13 and Balls Faced larger than 318?`:
```sql
                SELECT AVG("s_r") FROM "australia" WHERE "average"=39.13 AND "balls_faced">318;
```
## Task
Generate a SQL query to answer the following question:
`How many S.R. that has Runs Scored of 161 and an Average larger than 26.83?`

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

CREATE TABLE "australia" (
  "name" text,
  "innings" real,
  "runs_scored" real,
  "balls_faced" real,
  "average" real,
  "s_r" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many S.R. that has Runs Scored of 161 and an Average larger than 26.83?`:
```sql
                SELECT SUM("s_r") FROM "australia" WHERE "runs_scored"=161 AND "average">26.83;
```
## Task
Generate a SQL query to answer the following question:
`What kind of Average has a S.R. of 70.43 and Runs Scored smaller than 293?`

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

CREATE TABLE "australia" (
  "name" text,
  "innings" real,
  "runs_scored" real,
  "balls_faced" real,
  "average" real,
  "s_r" real
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Average has a S.R. of 70.43 and Runs Scored smaller than 293?`:
```sql
                SELECT MIN("average") FROM "australia" WHERE "s_r"=70.43 AND "runs_scored"<293;
```
## Task
Generate a SQL query to answer the following question:
`Which S.R. has a Average smaller than 23.63 Runs Scored of 49?`

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

CREATE TABLE "australia" (
  "name" text,
  "innings" real,
  "runs_scored" real,
  "balls_faced" real,
  "average" real,
  "s_r" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which S.R. has a Average smaller than 23.63 Runs Scored of 49?`:
```sql
                SELECT "s_r" FROM "australia" WHERE "average"<23.63 AND "runs_scored"=49;
```
## Task
Generate a SQL query to answer the following question:
`What is the Acquisition that has less than 22, in the 2002 season?`

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

CREATE TABLE "h" (
  "name" text,
  "position" text,
  "number" real,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Acquisition that has less than 22, in the 2002 season?`:
```sql
                SELECT "acquisition_via" FROM "h" WHERE "number"<22 AND "season"='2002';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of the acquisition of import in the 2002 season?`

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

CREATE TABLE "h" (
  "name" text,
  "position" text,
  "number" real,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of the acquisition of import in the 2002 season?`:
```sql
                SELECT "number" FROM "h" WHERE "acquisition_via"='import' AND "season"='2002';
```
## Task
Generate a SQL query to answer the following question:
`What is the name from the 2002 season, and acquired via free agency?`

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

CREATE TABLE "h" (
  "name" text,
  "position" text,
  "number" real,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name from the 2002 season, and acquired via free agency?`:
```sql
                SELECT "name" FROM "h" WHERE "season"='2002' AND "acquisition_via"='free agency';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player acquired via import and larger than 22?`

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

CREATE TABLE "h" (
  "name" text,
  "position" text,
  "number" real,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player acquired via import and larger than 22?`:
```sql
                SELECT "name" FROM "h" WHERE "acquisition_via"='import' AND "number">22;
```
## Task
Generate a SQL query to answer the following question:
`Who was on the prohibition ticket when Abraham J. Cuddeback was on the Greenback ticket?`

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

CREATE TABLE "1876_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "prohibition_ticket" text,
  "greenback_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was on the prohibition ticket when Abraham J. Cuddeback was on the Greenback ticket?`:
```sql
                SELECT "prohibition_ticket" FROM "1876_state_election_results" WHERE "greenback_ticket"='abraham j. cuddeback';
```
## Task
Generate a SQL query to answer the following question:
`Which office was Richard M. Griffin vying for on the Greenback ticket?`

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

CREATE TABLE "1876_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "prohibition_ticket" text,
  "greenback_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which office was Richard M. Griffin vying for on the Greenback ticket?`:
```sql
                SELECT "office" FROM "1876_state_election_results" WHERE "greenback_ticket"='richard m. griffin';
```
## Task
Generate a SQL query to answer the following question:
`Who was on the Prohibition ticket when Thomas Armstrong ran on the Greenback ticket?`

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

CREATE TABLE "1876_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "prohibition_ticket" text,
  "greenback_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was on the Prohibition ticket when Thomas Armstrong ran on the Greenback ticket?`:
```sql
                SELECT "prohibition_ticket" FROM "1876_state_election_results" WHERE "greenback_ticket"='thomas armstrong';
```
## Task
Generate a SQL query to answer the following question:
`Who was on the prohibition ticket when the Greenback ticket had Thomas Armstrong?`

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

CREATE TABLE "1876_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "prohibition_ticket" text,
  "greenback_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was on the prohibition ticket when the Greenback ticket had Thomas Armstrong?`:
```sql
                SELECT "prohibition_ticket" FROM "1876_state_election_results" WHERE "greenback_ticket"='thomas armstrong';
```
## Task
Generate a SQL query to answer the following question:
`Who was on the Republican ticket for the office of Inspector of state prisons?`

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

CREATE TABLE "1876_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "prohibition_ticket" text,
  "greenback_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was on the Republican ticket for the office of Inspector of state prisons?`:
```sql
                SELECT "republican_ticket" FROM "1876_state_election_results" WHERE "office"='inspector of state prisons';
```
## Task
Generate a SQL query to answer the following question:
`What office did Henry Hagner run for on the prohibition ticket?`

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

CREATE TABLE "1876_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "prohibition_ticket" text,
  "greenback_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What office did Henry Hagner run for on the prohibition ticket?`:
```sql
                SELECT "office" FROM "1876_state_election_results" WHERE "prohibition_ticket"='henry hagner';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of 13.5 inch/1400 lb that has a 0 13.5 inch/1250 lb; 3 for a total and a 15 inch less than 1?`

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

CREATE TABLE "hits_on_german_ships" (
  "ship" text,
  "15_inch" real,
  "13_5_inch_1400lb" real,
  "13_5_inch_1250lb" real,
  "12_inch" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of 13.5 inch/1400 lb that has a 0 13.5 inch/1250 lb; 3 for a total and a 15 inch less than 1?`:
```sql
                SELECT COUNT("13_5_inch_1400lb") FROM "hits_on_german_ships" WHERE "13_5_inch_1250lb"=0 AND "total"=3 AND "15_inch"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the home of the team with a 16-8 record?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home of the team with a 16-8 record?`:
```sql
                SELECT "home" FROM "december" WHERE "record"='16-8';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game that ended with a score of 96-89?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game that ended with a score of 96-89?`:
```sql
                SELECT "date" FROM "december" WHERE "score"='96-89';
```
## Task
Generate a SQL query to answer the following question:
`How many people went to the game with Indiana visiting?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people went to the game with Indiana visiting?`:
```sql
                SELECT "attendance" FROM "december" WHERE "visitor"='indiana';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the Cleveland home game with a 20-8 record?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the Cleveland home game with a 20-8 record?`:
```sql
                SELECT "date" FROM "december" WHERE "home"='cleveland' AND "record"='20-8';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the New Jersey home game?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the New Jersey home game?`:
```sql
                SELECT "score" FROM "december" WHERE "home"='new jersey';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the game with a final score of 75-90?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game with a final score of 75-90?`:
```sql
                SELECT "attendance" FROM "december" WHERE "score"='75-90';
```
## Task
Generate a SQL query to answer the following question:
`What is Mike Weir's To par?`

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

CREATE TABLE "final_round_sunday" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Mike Weir's To par?`:
```sql
                SELECT "to_par" FROM "final_round_sunday" WHERE "player"='mike weir';
```
## Task
Generate a SQL query to answer the following question:
`From Country is Vijay Singh?`

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

CREATE TABLE "final_round_sunday" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `From Country is Vijay Singh?`:
```sql
                SELECT "country" FROM "final_round_sunday" WHERE "player"='vijay singh';
```
## Task
Generate a SQL query to answer the following question:
`What is the Player in T5 Place?`

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

CREATE TABLE "final_round_sunday" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Player in T5 Place?`:
```sql
                SELECT "player" FROM "final_round_sunday" WHERE "place"='t5';
```
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player with a Score of 73-73-65-73=284?`

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

CREATE TABLE "final_round_sunday" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Place of the Player with a Score of 73-73-65-73=284?`:
```sql
                SELECT "place" FROM "final_round_sunday" WHERE "score"='73-73-65-73=284';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Home captain that played at the venue Oval?`

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

CREATE TABLE "australia_in_england_1902" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Home captain that played at the venue Oval?`:
```sql
                SELECT "home_captain" FROM "australia_in_england_1902" WHERE "venue"='oval';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Away captain that played on 12,13,14 Jun 1902 which resulted in a draw?`

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

CREATE TABLE "australia_in_england_1902" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Away captain that played on 12,13,14 Jun 1902 which resulted in a draw?`:
```sql
                SELECT "away_captain" FROM "australia_in_england_1902" WHERE "result"='draw' AND "date"='12,13,14 jun 1902';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Away captain that played on 11,12,13 Aug 1902?`

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

CREATE TABLE "australia_in_england_1902" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Away captain that played on 11,12,13 Aug 1902?`:
```sql
                SELECT "away_captain" FROM "australia_in_england_1902" WHERE "date"='11,12,13 aug 1902';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game that was played on 29,30–31 May 1902?`

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

CREATE TABLE "australia_in_england_1902" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game that was played on 29,30–31 May 1902?`:
```sql
                SELECT "result" FROM "australia_in_england_1902" WHERE "date"='29,30–31 may 1902';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game that was played on 3,4,5 Jul 1902?`

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

CREATE TABLE "australia_in_england_1902" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game that was played on 3,4,5 Jul 1902?`:
```sql
                SELECT "result" FROM "australia_in_england_1902" WHERE "date"='3,4,5 jul 1902';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of ends lost when there are 15 blank ends, less than 14 stolen ends?`

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

CREATE TABLE "standings" (
  "locale" text,
  "skip" text,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of ends lost when there are 15 blank ends, less than 14 stolen ends?`:
```sql
                SELECT COUNT("ends_lost") FROM "standings" WHERE "blank_ends"=15 AND "stolen_ends"<14;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of blank ends when the stolen ends were 17 and Jennifer Jones was skipped with a more than 83 shot pct?`

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

CREATE TABLE "standings" (
  "locale" text,
  "skip" text,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of blank ends when the stolen ends were 17 and Jennifer Jones was skipped with a more than 83 shot pct?`:
```sql
                SELECT COUNT("blank_ends") FROM "standings" WHERE "stolen_ends"=17 AND "skip"='jennifer jones' AND "shot_pct">83;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Wins, when F/Laps is greater than 1, and when Points is 80?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Wins, when F/Laps is greater than 1, and when Points is 80?`:
```sql
                SELECT AVG("wins") FROM "career_summary" WHERE "f_laps">1 AND "points"='80';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Races, when Podiums is less than 3, when Wins is 0, when Season is after 2001, and when Points is 32?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Races, when Podiums is less than 3, when Wins is 0, when Season is after 2001, and when Points is 32?`:
```sql
                SELECT SUM("races") FROM "career_summary" WHERE "podiums"<3 AND "wins"=0 AND "season">2001 AND "points"='32';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Season, when F/Laps is 1, and when Poles is less than 0?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Season, when F/Laps is 1, and when Poles is less than 0?`:
```sql
                SELECT AVG("season") FROM "career_summary" WHERE "f_laps"=1 AND "poles"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Poles, when Series is Ginetta Championship, and when Season is before 2007?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Poles, when Series is Ginetta Championship, and when Season is before 2007?`:
```sql
                SELECT MAX("poles") FROM "career_summary" WHERE "series"='ginetta championship' AND "season"<2007;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest wk 7 with a wk 3 value of 12, a wk 4 less than 9, and a wk 2 greater than 11?`

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

CREATE TABLE "ranking_movement" (
  "poll" text,
  "wk_2" real,
  "wk_3" real,
  "wk_4" real,
  "wk_5" real,
  "wk_6" real,
  "wk_7" real,
  "wk_8" real,
  "wk_9" real,
  "wk_10" real,
  "wk_11" real,
  "wk_12" real,
  "wk_13" text,
  "wk_14" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest wk 7 with a wk 3 value of 12, a wk 4 less than 9, and a wk 2 greater than 11?`:
```sql
                SELECT MIN("wk_7") FROM "ranking_movement" WHERE "wk_3"=12 AND "wk_4"<9 AND "wk_2">11;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest wk 3 value with an n/r in wk 14, a wk 2 value of 7, and a wk 11 value greater than 18?`

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

CREATE TABLE "ranking_movement" (
  "poll" text,
  "wk_2" real,
  "wk_3" real,
  "wk_4" real,
  "wk_5" real,
  "wk_6" real,
  "wk_7" real,
  "wk_8" real,
  "wk_9" real,
  "wk_10" real,
  "wk_11" real,
  "wk_12" real,
  "wk_13" text,
  "wk_14" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest wk 3 value with an n/r in wk 14, a wk 2 value of 7, and a wk 11 value greater than 18?`:
```sql
                SELECT MIN("wk_3") FROM "ranking_movement" WHERE "wk_14"='n/r' AND "wk_2"=7 AND "wk_11">18;
```
## Task
Generate a SQL query to answer the following question:
`What is the Date for the actual title archie bunker's place?`

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

CREATE TABLE "1980s" (
  "spoofed_title" text,
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date for the actual title archie bunker's place?`:
```sql
                SELECT "date" FROM "1980s" WHERE "actual_title"='archie bunker''s place';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the Artist for the Spoofed Title of the moron downer jr. show?`

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

CREATE TABLE "1980s" (
  "spoofed_title" text,
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the Artist for the Spoofed Title of the moron downer jr. show?`:
```sql
                SELECT "artist" FROM "1980s" WHERE "spoofed_title"='the moron downer jr. show';
```
## Task
Generate a SQL query to answer the following question:
`What issue was the Spoofed Title of the crockford files in?`

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

CREATE TABLE "1980s" (
  "spoofed_title" text,
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What issue was the Spoofed Title of the crockford files in?`:
```sql
                SELECT "issue" FROM "1980s" WHERE "spoofed_title"='the crockford files';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the writer for issue 224?`

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

CREATE TABLE "1980s" (
  "spoofed_title" text,
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the writer for issue 224?`:
```sql
                SELECT "writer" FROM "1980s" WHERE "issue"=224;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest amount of points had a lost number of 2 when the position was less than 1?`

### 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 `What is the smallest amount of points had a lost number of 2 when the position was less than 1?`:
```sql
                SELECT MIN("points") FROM "campeonato_paulista" WHERE "lost"=2 AND "position"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the mean number of against when the position is less than 1?`

### 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 `What is the mean number of against when the position is less than 1?`:
```sql
                SELECT AVG("against") FROM "campeonato_paulista" WHERE "position"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the mean number of played when there are less than 18 points and the position is less than 8?`

### 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 `What is the mean number of played when there are less than 18 points and the position is less than 8?`:
```sql
                SELECT AVG("played") FROM "campeonato_paulista" WHERE "points"<18 AND "position"<8;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of lost when against is less than 37, drawn is more than 2, and played is more than 20?`

### 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 `What is the sum of lost when against is less than 37, drawn is more than 2, and played is more than 20?`:
```sql
                SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "against"<37 AND "drawn">2 AND "played">20;
```
## Task
Generate a SQL query to answer the following question:
`What is the total area of drakenstein and a population less than 251,262?`

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

CREATE TABLE "geography" (
  "name" text,
  "seat" text,
  "population_2011" real,
  "area_km_2" real,
  "density_inhabitants_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total area of drakenstein and a population less than 251,262?`:
```sql
                SELECT COUNT("area_km_2") FROM "geography" WHERE "name"='drakenstein' AND "population_2011"<'251,262';
```
## Task
Generate a SQL query to answer the following question:
`For Stellenbosch, which has a population larger than 155,733, what is the average area?`

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

CREATE TABLE "geography" (
  "name" text,
  "seat" text,
  "population_2011" real,
  "area_km_2" real,
  "density_inhabitants_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `For Stellenbosch, which has a population larger than 155,733, what is the average area?`:
```sql
                SELECT AVG("area_km_2") FROM "geography" WHERE "name"='stellenbosch' AND "population_2011">'155,733';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest population for the area that has a density of 36.7?`

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

CREATE TABLE "geography" (
  "name" text,
  "seat" text,
  "population_2011" real,
  "area_km_2" real,
  "density_inhabitants_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest population for the area that has a density of 36.7?`:
```sql
                SELECT MIN("population_2011") FROM "geography" WHERE "density_inhabitants_km_2"=36.7;
```
## Task
Generate a SQL query to answer the following question:
`How many points against has team Cardiff had when there were less than 7 tries?`

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

CREATE TABLE "pool_4" (
  "team" text,
  "tries_for" real,
  "tries_against" real,
  "try_diff" text,
  "points_for" real,
  "points_against" real,
  "points_diff" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points against has team Cardiff had when there were less than 7 tries?`:
```sql
                SELECT COUNT("points_against") FROM "pool_4" WHERE "team"='cardiff' AND "tries_against"<7;
```
## Task
Generate a SQL query to answer the following question:
`What is the amount of fog where the rain is 1 109?`

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

CREATE TABLE "comparison_of_meteorological_data_at_for" (
  "sunshine_hrs_year" text,
  "rain_mm_year" text,
  "snow_days_year" real,
  "storms_days_year" real,
  "fog_days_year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the amount of fog where the rain is 1 109?`:
```sql
                SELECT SUM("fog_days_year") FROM "comparison_of_meteorological_data_at_for" WHERE "rain_mm_year"='1 109';
```
## Task
Generate a SQL query to answer the following question:
`What is the amount of snow where the days for storms are 31?`

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

CREATE TABLE "comparison_of_meteorological_data_at_for" (
  "sunshine_hrs_year" text,
  "rain_mm_year" text,
  "snow_days_year" real,
  "storms_days_year" real,
  "fog_days_year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the amount of snow where the days for storms are 31?`:
```sql
                SELECT SUM("snow_days_year") FROM "comparison_of_meteorological_data_at_for" WHERE "storms_days_year"=31;
```
## Task
Generate a SQL query to answer the following question:
`What is the amount of snow where the sunshine is 1 633, and storms are lower than 29?`

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

CREATE TABLE "comparison_of_meteorological_data_at_for" (
  "sunshine_hrs_year" text,
  "rain_mm_year" text,
  "snow_days_year" real,
  "storms_days_year" real,
  "fog_days_year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the amount of snow where the sunshine is 1 633, and storms are lower than 29?`:
```sql
                SELECT AVG("snow_days_year") FROM "comparison_of_meteorological_data_at_for" WHERE "sunshine_hrs_year"='1 633' AND "storms_days_year"<29;
```
## Task
Generate a SQL query to answer the following question:
`What are the number of storms where fog is lower than 74, and sunshine is 2 668?`

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

CREATE TABLE "comparison_of_meteorological_data_at_for" (
  "sunshine_hrs_year" text,
  "rain_mm_year" text,
  "snow_days_year" real,
  "storms_days_year" real,
  "fog_days_year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the number of storms where fog is lower than 74, and sunshine is 2 668?`:
```sql
                SELECT COUNT("storms_days_year") FROM "comparison_of_meteorological_data_at_for" WHERE "fog_days_year"<74 AND "sunshine_hrs_year"='2 668';
```
## Task
Generate a SQL query to answer the following question:
`Who is the away team for the tome team Leeds United, at the League Cup Competition?`

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

CREATE TABLE "last_five_head_to_head_fixtures" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the away team for the tome team Leeds United, at the League Cup Competition?`:
```sql
                SELECT "away_team" FROM "last_five_head_to_head_fixtures" WHERE "home_team"='leeds united' AND "competition"='league cup';
```
## Task
Generate a SQL query to answer the following question:
`What chassis has patrick racing as an entrant, with a start greater than 6?`

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

CREATE TABLE "indianapolis_500" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" real,
  "finish" real,
  "entrant" text
);
### SQL
Given the database schema, here is the SQL query that answers `What chassis has patrick racing as an entrant, with a start greater than 6?`:
```sql
                SELECT "chassis" FROM "indianapolis_500" WHERE "entrant"='patrick racing' AND "start">6;
```
## Task
Generate a SQL query to answer the following question:
`What is the average finish that has 24 as the start, with a year after 1987?`

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

CREATE TABLE "indianapolis_500" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" real,
  "finish" real,
  "entrant" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average finish that has 24 as the start, with a year after 1987?`:
```sql
                SELECT AVG("finish") FROM "indianapolis_500" WHERE "start"=24 AND "year">1987;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest year that has lola t93/00 as the chassis with a start leas than 14?`

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

CREATE TABLE "indianapolis_500" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" real,
  "finish" real,
  "entrant" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest year that has lola t93/00 as the chassis with a start leas than 14?`:
```sql
                SELECT MIN("year") FROM "indianapolis_500" WHERE "chassis"='lola t93/00' AND "start"<14;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest finish that has a start greater than 27, with a year after 1985?`

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

CREATE TABLE "indianapolis_500" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" real,
  "finish" real,
  "entrant" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest finish that has a start greater than 27, with a year after 1985?`:
```sql
                SELECT MIN("finish") FROM "indianapolis_500" WHERE "start">27 AND "year">1985;
```
## Task
Generate a SQL query to answer the following question:
`What start has a ford cosworth dfx as the engine, a year later than 1981, and kraco enterprises as the entrant?`

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

CREATE TABLE "indianapolis_500" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" real,
  "finish" real,
  "entrant" text
);
### SQL
Given the database schema, here is the SQL query that answers `What start has a ford cosworth dfx as the engine, a year later than 1981, and kraco enterprises as the entrant?`:
```sql
                SELECT "start" FROM "indianapolis_500" WHERE "engine"='ford cosworth dfx' AND "year">1981 AND "entrant"='kraco enterprises';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date, when the Team Record is 2-0?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text,
  "team_record" text,
  "game_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date, when the Team Record is 2-0?`:
```sql
                SELECT "date" FROM "season_schedule" WHERE "team_record"='2-0';
```
## Task
Generate a SQL query to answer the following question:
`What is the Team Record, when the Result is l 0–24?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text,
  "team_record" text,
  "game_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Team Record, when the Result is l 0–24?`:
```sql
                SELECT "team_record" FROM "season_schedule" WHERE "result"='l 0–24';
```
## Task
Generate a SQL query to answer the following question:
`What is Team Record, when Attendance is 16,151?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text,
  "team_record" text,
  "game_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team Record, when Attendance is 16,151?`:
```sql
                SELECT "team_record" FROM "season_schedule" WHERE "attendance"='16,151';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest draw that has points greater than 4, with a match greater than 5?`

### 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 is the highest draw that has points greater than 4, with a match greater than 5?`:
```sql
                SELECT MAX("draw") FROM "first_league" WHERE "points">4 AND "match">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the average draw that has a lost less than 4, gwardia bydgoszcz as the team, with a match greater than 5?`

### 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 is the average draw that has a lost less than 4, gwardia bydgoszcz as the team, with a match greater than 5?`:
```sql
                SELECT AVG("draw") FROM "first_league" WHERE "lost"<4 AND "team"='gwardia bydgoszcz' AND "match">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest match that has a lost greater than 3, and kolejarz rawicz as the team?`

### 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 is the lowest match that has a lost greater than 3, and kolejarz rawicz as the team?`:
```sql
                SELECT MIN("match") FROM "first_league" WHERE "lost">3 AND "team"='kolejarz rawicz';
```
## Task
Generate a SQL query to answer the following question:
`How many matches have 0 as the lost?`

### 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 `How many matches have 0 as the lost?`:
```sql
                SELECT COUNT("match") FROM "first_league" WHERE "lost"=0;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Game with a Score that is w 104–90 (ot)?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Game with a Score that is w 104–90 (ot)?`:
```sql
                SELECT SUM("game") FROM "game_log" WHERE "score"='w 104–90 (ot)';
```
## Task
Generate a SQL query to answer the following question:
`What is the High rebounds of a Game with 56?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the High rebounds of a Game with 56?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "game"=56;
```