cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the lowest order with a Minister that is joe hockey?`

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

CREATE TABLE "list_of_ministers_for_small_business" (
  "order" real,
  "minister" text,
  "party_affiliation" text,
  "prime_minister" text,
  "term_start" text,
  "term_end" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest order with a Minister that is joe hockey?`:
```sql
                SELECT MIN("order") FROM "list_of_ministers_for_small_business" WHERE "minister"='joe hockey';
```
## Task
Generate a SQL query to answer the following question:
`Which Years in Orlando has a Nationality of united states, and a Player of doug overton?`

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

CREATE TABLE "o" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Years in Orlando has a Nationality of united states, and a Player of doug overton?`:
```sql
                SELECT "years_in_orlando" FROM "o" WHERE "nationality"='united states' AND "player"='doug overton';
```
## Task
Generate a SQL query to answer the following question:
`Which Years in Orlando has a Nationality of united states, a Position of center, and a Player of jawann oldham?`

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

CREATE TABLE "o" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Years in Orlando has a Nationality of united states, a Position of center, and a Player of jawann oldham?`:
```sql
                SELECT "years_in_orlando" FROM "o" WHERE "nationality"='united states' AND "position"='center' AND "player"='jawann oldham';
```
## Task
Generate a SQL query to answer the following question:
`Which Years in Orlando has a Player of bo outlaw?`

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

CREATE TABLE "o" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Years in Orlando has a Player of bo outlaw?`:
```sql
                SELECT "years_in_orlando" FROM "o" WHERE "player"='bo outlaw';
```
## Task
Generate a SQL query to answer the following question:
`Which Years in Orlando has a School/Club Team of seattle?`

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

CREATE TABLE "o" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Years in Orlando has a School/Club Team of seattle?`:
```sql
                SELECT "years_in_orlando" FROM "o" WHERE "school_club_team"='seattle';
```
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a Position of center, and a Years in Orlando of 2010–2012?`

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

CREATE TABLE "o" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nationality has a Position of center, and a Years in Orlando of 2010–2012?`:
```sql
                SELECT "nationality" FROM "o" WHERE "position"='center' AND "years_in_orlando"='2010–2012';
```
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a School/Club Team of seattle?`

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

CREATE TABLE "o" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nationality has a School/Club Team of seattle?`:
```sql
                SELECT "nationality" FROM "o" WHERE "school_club_team"='seattle';
```
## Task
Generate a SQL query to answer the following question:
`When did they play at Candlestick Park?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did they play at Candlestick Park?`:
```sql
                SELECT "date" FROM "schedule" WHERE "game_site"='candlestick park';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of top-10s for events under 57 and 0 top-5s?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of top-10s for events under 57 and 0 top-5s?`:
```sql
                SELECT AVG("top_10") FROM "summary" WHERE "events"<57 AND "top_5"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of top-10s for events with more than 12 cuts made and 0 wins?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of top-10s for events with more than 12 cuts made and 0 wins?`:
```sql
                SELECT AVG("top_10") FROM "summary" WHERE "cuts_made">12 AND "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of top-25s for events with less than 2 top-10s?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of top-25s for events with less than 2 top-10s?`:
```sql
                SELECT AVG("top_25") FROM "summary" WHERE "top_10"<2;
```
## Task
Generate a SQL query to answer the following question:
`Which Works number has a Builder of canadian engine & machinery company, and a Number smaller than 3?`

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

CREATE TABLE "locomotives" (
  "number" real,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Works number has a Builder of canadian engine & machinery company, and a Number smaller than 3?`:
```sql
                SELECT "works_number" FROM "locomotives" WHERE "builder"='canadian engine & machinery company' AND "number"<3;
```
## Task
Generate a SQL query to answer the following question:
`Which Works number has a Builder of avonside engine company, and a Type of 4-6-0, and a Number smaller than 12, and a Date of december 1871?`

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

CREATE TABLE "locomotives" (
  "number" real,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Works number has a Builder of avonside engine company, and a Type of 4-6-0, and a Number smaller than 12, and a Date of december 1871?`:
```sql
                SELECT "works_number" FROM "locomotives" WHERE "builder"='avonside engine company' AND "type"='4-6-0' AND "number"<12 AND "date"='december 1871';
```
## Task
Generate a SQL query to answer the following question:
`Which Type has a Builder of avonside engine company, and a Number of 9?`

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

CREATE TABLE "locomotives" (
  "number" real,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Type has a Builder of avonside engine company, and a Number of 9?`:
```sql
                SELECT "type" FROM "locomotives" WHERE "builder"='avonside engine company' AND "number"=9;
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Type of 4-6-0, and a Number larger than 11?`

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

CREATE TABLE "locomotives" (
  "number" real,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Type of 4-6-0, and a Number larger than 11?`:
```sql
                SELECT "date" FROM "locomotives" WHERE "type"='4-6-0' AND "number">11;
```
## Task
Generate a SQL query to answer the following question:
`Which Builder has a Date of early 1871?`

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

CREATE TABLE "locomotives" (
  "number" real,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Builder has a Date of early 1871?`:
```sql
                SELECT "builder" FROM "locomotives" WHERE "date"='early 1871';
```
## Task
Generate a SQL query to answer the following question:
`What ist he Home with a Score that is 42-64?`

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

CREATE TABLE "round_four" (
  "date" text,
  "time" text,
  "home" text,
  "away" text,
  "score" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What ist he Home with a Score that is 42-64?`:
```sql
                SELECT "home" FROM "round_four" WHERE "score"='42-64';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home with a Time that is 12:00?`

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

CREATE TABLE "round_four" (
  "date" text,
  "time" text,
  "home" text,
  "away" text,
  "score" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home with a Time that is 12:00?`:
```sql
                SELECT "home" FROM "round_four" WHERE "time"='12:00';
```
## Task
Generate a SQL query to answer the following question:
`What is the Ground with a Score that is 49-80?`

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

CREATE TABLE "round_four" (
  "date" text,
  "time" text,
  "home" text,
  "away" text,
  "score" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Ground with a Score that is 49-80?`:
```sql
                SELECT "ground" FROM "round_four" WHERE "score"='49-80';
```
## Task
Generate a SQL query to answer the following question:
`What's the smallest March when the record is 22-12-6?`

### 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's the smallest March when the record is 22-12-6?`:
```sql
                SELECT MIN("march") FROM "schedule_and_results" WHERE "record"='22-12-6';
```
## Task
Generate a SQL query to answer the following question:
`Which record's march was 26?`

### 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 `Which record's march was 26?`:
```sql
                SELECT "record" FROM "schedule_and_results" WHERE "march"=26;
```
## Task
Generate a SQL query to answer the following question:
`What is the Lost with a Losing Bonus that is 4?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Lost with a Losing Bonus that is 4?`:
```sql
                SELECT "lost" FROM "league_table" WHERE "losing_bonus"='4';
```
## Task
Generate a SQL query to answer the following question:
`What is the Points with a Tries For that is 21?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Points with a Tries For that is 21?`:
```sql
                SELECT "points" FROM "league_table" WHERE "tries_for"='21';
```
## Task
Generate a SQL query to answer the following question:
`What is the Lost with a Try Bonus that is try bonus?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Lost with a Try Bonus that is try bonus?`:
```sql
                SELECT "lost" FROM "league_table" WHERE "try_bonus"='try bonus';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Total for the rank 12, and gold less than 0?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Total for the rank 12, and gold less than 0?`:
```sql
                SELECT MAX("total") FROM "medal_table" WHERE "rank"='12' AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Total when the Silver is less than 2, and a Bronze is less than 0?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Total when the Silver is less than 2, and a Bronze is less than 0?`:
```sql
                SELECT COUNT("total") FROM "medal_table" WHERE "silver"<2 AND "bronze"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the nickname of the team that has the colors blue and gold?`

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

CREATE TABLE "delaware_ice_hockey_teams" (
  "school" text,
  "nickname" text,
  "colors" text,
  "league" text,
  "class" text,
  "division" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nickname of the team that has the colors blue and gold?`:
```sql
                SELECT "nickname" FROM "delaware_ice_hockey_teams" WHERE "colors"='blue and gold';
```
## Task
Generate a SQL query to answer the following question:
`What is the nickname of the team that has the colors black and gold?`

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

CREATE TABLE "delaware_ice_hockey_teams" (
  "school" text,
  "nickname" text,
  "colors" text,
  "league" text,
  "class" text,
  "division" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nickname of the team that has the colors black and gold?`:
```sql
                SELECT "nickname" FROM "delaware_ice_hockey_teams" WHERE "colors"='black and gold';
```
## Task
Generate a SQL query to answer the following question:
`What is the nickname of the team in division 2?`

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

CREATE TABLE "delaware_ice_hockey_teams" (
  "school" text,
  "nickname" text,
  "colors" text,
  "league" text,
  "class" text,
  "division" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nickname of the team in division 2?`:
```sql
                SELECT "nickname" FROM "delaware_ice_hockey_teams" WHERE "division"='division 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the class of the Middletown High School team that is in the DSHA league?`

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

CREATE TABLE "delaware_ice_hockey_teams" (
  "school" text,
  "nickname" text,
  "colors" text,
  "league" text,
  "class" text,
  "division" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class of the Middletown High School team that is in the DSHA league?`:
```sql
                SELECT "class" FROM "delaware_ice_hockey_teams" WHERE "league"='dsha' AND "school"='middletown high school';
```
## Task
Generate a SQL query to answer the following question:
`What school is the team from that has the colors blue and gold?`

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

CREATE TABLE "delaware_ice_hockey_teams" (
  "school" text,
  "nickname" text,
  "colors" text,
  "league" text,
  "class" text,
  "division" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school is the team from that has the colors blue and gold?`:
```sql
                SELECT "school" FROM "delaware_ice_hockey_teams" WHERE "colors"='blue and gold';
```
## Task
Generate a SQL query to answer the following question:
`What are the colors for the division 2 team with the nickname, the seahawks?`

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

CREATE TABLE "delaware_ice_hockey_teams" (
  "school" text,
  "nickname" text,
  "colors" text,
  "league" text,
  "class" text,
  "division" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the colors for the division 2 team with the nickname, the seahawks?`:
```sql
                SELECT "colors" FROM "delaware_ice_hockey_teams" WHERE "division"='division 2' AND "nickname"='seahawks';
```
## Task
Generate a SQL query to answer the following question:
`Who's the Centerfold model with a Pictorials of adrianne curry, girls of tuscany?`

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

CREATE TABLE "2006" (
  "date" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Centerfold model with a Pictorials of adrianne curry, girls of tuscany?`:
```sql
                SELECT "centerfold_model" FROM "2006" WHERE "pictorials"='adrianne curry, girls of tuscany';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a 20 Questions of jason lee?`

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

CREATE TABLE "2006" (
  "date" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a 20 Questions of jason lee?`:
```sql
                SELECT "date" FROM "2006" WHERE "20_questions"='jason lee';
```
## Task
Generate a SQL query to answer the following question:
`Which Interview subject has a Pictorials of vida guerra?`

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

CREATE TABLE "2006" (
  "date" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Interview subject has a Pictorials of vida guerra?`:
```sql
                SELECT "interview_subject" FROM "2006" WHERE "pictorials"='vida guerra';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Pictorials of mercedes mcnab, girls of hawaiian tropic?`

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

CREATE TABLE "2006" (
  "date" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Pictorials of mercedes mcnab, girls of hawaiian tropic?`:
```sql
                SELECT "date" FROM "2006" WHERE "pictorials"='mercedes mcnab, girls of hawaiian tropic';
```
## Task
Generate a SQL query to answer the following question:
`Which Pictorials has a 20 Questions of eva longoria?`

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

CREATE TABLE "2006" (
  "date" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pictorials has a 20 Questions of eva longoria?`:
```sql
                SELECT "pictorials" FROM "2006" WHERE "20_questions"='eva longoria';
```
## Task
Generate a SQL query to answer the following question:
`Which Interview subject has a Centerfold model of athena lundberg?`

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

CREATE TABLE "2006" (
  "date" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Interview subject has a Centerfold model of athena lundberg?`:
```sql
                SELECT "interview_subject" FROM "2006" WHERE "centerfold_model"='athena lundberg';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of votes from the Labour Party?`

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

CREATE TABLE "2005_general_election" (
  "party" text,
  "candidate" text,
  "votes" real,
  "pct_share" text,
  "change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of votes from the Labour Party?`:
```sql
                SELECT COUNT("votes") FROM "2005_general_election" WHERE "party"='labour';
```
## Task
Generate a SQL query to answer the following question:
`Which party has less than 11,484 votes?`

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

CREATE TABLE "2005_general_election" (
  "party" text,
  "candidate" text,
  "votes" real,
  "pct_share" text,
  "change" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party has less than 11,484 votes?`:
```sql
                SELECT "party" FROM "2005_general_election" WHERE "votes"<'11,484';
```
## Task
Generate a SQL query to answer the following question:
`How many numbers had Brandon Dean as a name?`

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

CREATE TABLE "d" (
  "name" text,
  "position" text,
  "number" real,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many numbers had Brandon Dean as a name?`:
```sql
                SELECT SUM("number") FROM "d" WHERE "name"='brandon dean';
```
## Task
Generate a SQL query to answer the following question:
`What is the singular for the Meaning of night?`

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

CREATE TABLE "number" (
  "singular" text,
  "singular_gender" text,
  "plural" text,
  "plural_gender" text,
  "meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the singular for the Meaning of night?`:
```sql
                SELECT "singular" FROM "number" WHERE "meaning"='night';
```
## Task
Generate a SQL query to answer the following question:
`What is the plural for the Meaning of night?`

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

CREATE TABLE "number" (
  "singular" text,
  "singular_gender" text,
  "plural" text,
  "plural_gender" text,
  "meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the plural for the Meaning of night?`:
```sql
                SELECT "plural" FROM "number" WHERE "meaning"='night';
```
## Task
Generate a SQL query to answer the following question:
`What is the plural if the singular is nyaqot?`

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

CREATE TABLE "number" (
  "singular" text,
  "singular_gender" text,
  "plural" text,
  "plural_gender" text,
  "meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the plural if the singular is nyaqot?`:
```sql
                SELECT "plural" FROM "number" WHERE "singular"='nyaqot';
```
## Task
Generate a SQL query to answer the following question:
`What is the plural if the meaning is python and the plural gender is n?`

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

CREATE TABLE "number" (
  "singular" text,
  "singular_gender" text,
  "plural" text,
  "plural_gender" text,
  "meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the plural if the meaning is python and the plural gender is n?`:
```sql
                SELECT "plural" FROM "number" WHERE "plural_gender"='n' AND "meaning"='python';
```
## Task
Generate a SQL query to answer the following question:
`What is the plural if the singular is awu?`

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

CREATE TABLE "number" (
  "singular" text,
  "singular_gender" text,
  "plural" text,
  "plural_gender" text,
  "meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the plural if the singular is awu?`:
```sql
                SELECT "plural" FROM "number" WHERE "singular"='awu';
```
## Task
Generate a SQL query to answer the following question:
`What is the singular if the plural is xweer(a)du?`

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

CREATE TABLE "number" (
  "singular" text,
  "singular_gender" text,
  "plural" text,
  "plural_gender" text,
  "meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the singular if the plural is xweer(a)du?`:
```sql
                SELECT "singular" FROM "number" WHERE "plural"='xweer(a)du';
```
## Task
Generate a SQL query to answer the following question:
`What is the Total againsts for the Sant'Anna team with a position number greater than 10?`

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

CREATE TABLE "laf_s_campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Total againsts for the Sant'Anna team with a position number greater than 10?`:
```sql
                SELECT COUNT("against") FROM "laf_s_campeonato_paulista" WHERE "team"='sant''anna' AND "position">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of games played with 3 losses, 1 or more drawns and 10 or fewer points?`

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

CREATE TABLE "laf_s_campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of games played with 3 losses, 1 or more drawns and 10 or fewer points?`:
```sql
                SELECT SUM("played") FROM "laf_s_campeonato_paulista" WHERE "lost"=3 AND "drawn">1 AND "points"<10;
```
## Task
Generate a SQL query to answer the following question:
`What is the average lost of games played of more than 9?`

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

CREATE TABLE "laf_s_campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average lost of games played of more than 9?`:
```sql
                SELECT AVG("lost") FROM "laf_s_campeonato_paulista" WHERE "played">9;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of bronze medals for Great Britain with more than 2 medals total?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of bronze medals for Great Britain with more than 2 medals total?`:
```sql
                SELECT MIN("bronze") FROM "medals_table" WHERE "nation"='great britain' AND "total">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest wins the club with a position of 4 and less than 4 losses has?`

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

CREATE TABLE "2_lyga_zone_south" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest wins the club with a position of 4 and less than 4 losses has?`:
```sql
                SELECT MIN("wins") FROM "2_lyga_zone_south" WHERE "position"=4 AND "loses"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the points of club nevėžis-2 kėdainiai, which has more than 35 goals conceded?`

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

CREATE TABLE "2_lyga_zone_south" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the points of club nevėžis-2 kėdainiai, which has more than 35 goals conceded?`:
```sql
                SELECT SUM("points") FROM "2_lyga_zone_south" WHERE "club"='nevėžis-2 kėdainiai' AND "goals_conceded">35;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of games played of the team with 4 wins and a position less than 9?`

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

CREATE TABLE "2_lyga_zone_south" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of games played of the team with 4 wins and a position less than 9?`:
```sql
                SELECT COUNT("games_played") FROM "2_lyga_zone_south" WHERE "wins"=4 AND "position"<9;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of wins of the team with a position less than 1?`

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

CREATE TABLE "2_lyga_zone_south" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of wins of the team with a position less than 1?`:
```sql
                SELECT MAX("wins") FROM "2_lyga_zone_south" WHERE "position"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total losses against 1412, and 10 wins, but draws less than 0?`

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

CREATE TABLE "2011_ladder" (
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total losses against 1412, and 10 wins, but draws less than 0?`:
```sql
                SELECT SUM("losses") FROM "2011_ladder" WHERE "against">1412 AND "wins"=10 AND "draws"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest draw against 2161?`

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

CREATE TABLE "2011_ladder" (
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest draw against 2161?`:
```sql
                SELECT MAX("draws") FROM "2011_ladder" WHERE "against">2161;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of losses against 1412, and Byes less than 2?`

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

CREATE TABLE "2011_ladder" (
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of losses against 1412, and Byes less than 2?`:
```sql
                SELECT COUNT("losses") FROM "2011_ladder" WHERE "against"=1412 AND "byes"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest wins with less than 2 Byes?`

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

CREATE TABLE "2011_ladder" (
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest wins with less than 2 Byes?`:
```sql
                SELECT MIN("wins") FROM "2011_ladder" WHERE "byes"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest score with 0 wins and more than 2 Byes?`

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

CREATE TABLE "2011_ladder" (
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest score with 0 wins and more than 2 Byes?`:
```sql
                SELECT MAX("against") FROM "2011_ladder" WHERE "wins"=0 AND "byes">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of wins against the smaller score 1148?`

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

CREATE TABLE "2011_ladder" (
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of wins against the smaller score 1148?`:
```sql
                SELECT SUM("wins") FROM "2011_ladder" WHERE "against"<1148;
```
## Task
Generate a SQL query to answer the following question:
`Who had a rank larger than 7, less than 305 goals, and 418 matches?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a rank larger than 7, less than 305 goals, and 418 matches?`:
```sql
                SELECT "name" FROM "list_of_top_association_football_goal_sc" WHERE "rank">7 AND "goals"<305 AND "matches"='418';
```
## Task
Generate a SQL query to answer the following question:
`How many goals ranked 6?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals ranked 6?`:
```sql
                SELECT COUNT("goals") FROM "list_of_top_association_football_goal_sc" WHERE "rank"=6;
```
## Task
Generate a SQL query to answer the following question:
`How many matches had 360 goals?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many matches had 360 goals?`:
```sql
                SELECT "matches" FROM "list_of_top_association_football_goal_sc" WHERE "goals"=360;
```
## Task
Generate a SQL query to answer the following question:
`What is the Nominee from the Category that is best costume design?`

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

CREATE TABLE "original_london_production" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Nominee from the Category that is best costume design?`:
```sql
                SELECT "nominee" FROM "original_london_production" WHERE "category"='best costume design';
```
## Task
Generate a SQL query to answer the following question:
`Which Total has a Bronze larger than 12, and a Silver larger than 772, and a Country of thailand?`

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

CREATE TABLE "southeast_asian_games" (
  "country" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has a Bronze larger than 12, and a Silver larger than 772, and a Country of thailand?`:
```sql
                SELECT SUM("total") FROM "southeast_asian_games" WHERE "bronze">12 AND "silver">772 AND "country"='thailand';
```
## Task
Generate a SQL query to answer the following question:
`Which Gold has a Total of 2998, and a Bronze smaller than 1191?`

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

CREATE TABLE "southeast_asian_games" (
  "country" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Gold has a Total of 2998, and a Bronze smaller than 1191?`:
```sql
                SELECT AVG("gold") FROM "southeast_asian_games" WHERE "total"=2998 AND "bronze"<1191;
```
## Task
Generate a SQL query to answer the following question:
`Which Bronze has a Country of malaysia, and a Total smaller than 2644?`

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

CREATE TABLE "southeast_asian_games" (
  "country" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bronze has a Country of malaysia, and a Total smaller than 2644?`:
```sql
                SELECT SUM("bronze") FROM "southeast_asian_games" WHERE "country"='malaysia' AND "total"<2644;
```
## Task
Generate a SQL query to answer the following question:
`Which Silver has a Bronze smaller than 618, and a Country of laos?`

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

CREATE TABLE "southeast_asian_games" (
  "country" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Silver has a Bronze smaller than 618, and a Country of laos?`:
```sql
                SELECT "silver" FROM "southeast_asian_games" WHERE "bronze"<618 AND "country"='laos';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score with a Team that is @ portland?`

### 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,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score with a Team that is @ portland?`:
```sql
                SELECT "score" FROM "game_log" WHERE "team"='@ portland';
```
## Task
Generate a SQL query to answer the following question:
`What is the High points with a Date that is january 20?`

### 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,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the High points with a Date that is january 20?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "date"='january 20';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team that the Clippers played?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team that the Clippers played?`:
```sql
                SELECT "home" FROM "november" WHERE "visitor"='clippers';
```
## Task
Generate a SQL query to answer the following question:
`What's the record of the game where Lebron James (16) was the leading scorer?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the record of the game where Lebron James (16) was the leading scorer?`:
```sql
                SELECT "record" FROM "november" WHERE "leading_scorer"='lebron james (16)';
```
## Task
Generate a SQL query to answer the following question:
`When the venue was A and the date was 2 january 2008, what was the average attendance?`

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

CREATE TABLE "irn_bru_second_division" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the venue was A and the date was 2 january 2008, what was the average attendance?`:
```sql
                SELECT AVG("attendance") FROM "irn_bru_second_division" WHERE "venue"='a' AND "date"='2 january 2008';
```
## Task
Generate a SQL query to answer the following question:
`On 10 November 2007, what was the venue?`

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

CREATE TABLE "irn_bru_second_division" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `On 10 November 2007, what was the venue?`:
```sql
                SELECT "venue" FROM "irn_bru_second_division" WHERE "date"='10 november 2007';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the opponent Ayr United, the result 1–0, and the attendance more than 668?`

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

CREATE TABLE "irn_bru_second_division" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the opponent Ayr United, the result 1–0, and the attendance more than 668?`:
```sql
                SELECT "date" FROM "irn_bru_second_division" WHERE "result"='1–0' AND "attendance">668 AND "opponent"='ayr united';
```
## Task
Generate a SQL query to answer the following question:
`When the opponent was Brechin City and the attendance was 656, what was the Result?`

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

CREATE TABLE "irn_bru_second_division" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the opponent was Brechin City and the attendance was 656, what was the Result?`:
```sql
                SELECT "result" FROM "irn_bru_second_division" WHERE "opponent"='brechin city' AND "attendance"=656;
```
## Task
Generate a SQL query to answer the following question:
`On 1 september 2007, at the Venue A, what was the average attendance?`

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

CREATE TABLE "irn_bru_second_division" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `On 1 september 2007, at the Venue A, what was the average attendance?`:
```sql
                SELECT AVG("attendance") FROM "irn_bru_second_division" WHERE "venue"='a' AND "date"='1 september 2007';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Country of england, and a Year larger than 1971?`

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

CREATE TABLE "winners" (
  "year" real,
  "venue" text,
  "winner" text,
  "country" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Country of england, and a Year larger than 1971?`:
```sql
                SELECT "score" FROM "winners" WHERE "country"='england' AND "year">1971;
```