cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the total for guests with a ship name of rv indochina, and a crew smaller than 28?`

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

CREATE TABLE "ships_cruising_in_asia" (
  "ship_name" text,
  "year_built" real,
  "length" text,
  "crew" real,
  "guests" real,
  "staterooms" real,
  "comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for guests with a ship name of rv indochina, and a crew smaller than 28?`:
```sql
                SELECT COUNT("guests") FROM "ships_cruising_in_asia" WHERE "ship_name"='rv indochina' AND "crew"<28;
```
## Task
Generate a SQL query to answer the following question:
`what is the country when the total is 111 and the day 1 is 69?`

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

CREATE TABLE "qualification_round" (
  "rank" real,
  "athlete" text,
  "country" text,
  "day_1" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the country when the total is 111 and the day 1 is 69?`:
```sql
                SELECT "country" FROM "qualification_round" WHERE "total"=111 AND "day_1"=69;
```
## Task
Generate a SQL query to answer the following question:
`what is the average rank when the day 1 is less than 71 and the country is romania?`

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

CREATE TABLE "qualification_round" (
  "rank" real,
  "athlete" text,
  "country" text,
  "day_1" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average rank when the day 1 is less than 71 and the country is romania?`:
```sql
                SELECT AVG("rank") FROM "qualification_round" WHERE "day_1"<71 AND "country"='romania';
```
## Task
Generate a SQL query to answer the following question:
`how many times is the athlete jin di and the total less than 118?`

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

CREATE TABLE "qualification_round" (
  "rank" real,
  "athlete" text,
  "country" text,
  "day_1" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the athlete jin di and the total less than 118?`:
```sql
                SELECT COUNT("rank") FROM "qualification_round" WHERE "athlete"='jin di' AND "total"<118;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest goal for a GEO nat., that ended after 2010?`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" text,
  "goals" real,
  "ends" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest goal for a GEO nat., that ended after 2010?`:
```sql
                SELECT MAX("goals") FROM "squad_information" WHERE "nat"='geo' AND "ends">2010;
```
## Task
Generate a SQL query to answer the following question:
`what is the venue when the year is 2006, the competition is asian games and the event is 400 m?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the venue when the year is 2006, the competition is asian games and the event is 400 m?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "year"=2006 AND "competition"='asian games' AND "event"='400 m';
```
## Task
Generate a SQL query to answer the following question:
`what is the venue when the event is 4x400 m relay and the competition is asian championships?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the venue when the event is 4x400 m relay and the competition is asian championships?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "event"='4x400 m relay' AND "competition"='asian championships';
```
## Task
Generate a SQL query to answer the following question:
`what is the venue when the competition is asian games, the event is 4x400 m relay and the year is 2002?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the venue when the competition is asian games, the event is 4x400 m relay and the year is 2002?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "competition"='asian games' AND "event"='4x400 m relay' AND "year"=2002;
```
## Task
Generate a SQL query to answer the following question:
`During the voting order 11, when the commentator was pierre tchernia, who was the spokesperson?`

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

CREATE TABLE "international_broadcasts_and_voting" (
  "voting_order" real,
  "country" text,
  "spokespersons" text,
  "commentator" text,
  "broadcaster" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the voting order 11, when the commentator was pierre tchernia, who was the spokesperson?`:
```sql
                SELECT "spokespersons" FROM "international_broadcasts_and_voting" WHERE "commentator"='pierre tchernia' AND "voting_order"=11;
```
## Task
Generate a SQL query to answer the following question:
`What was the voting order when bunny carr was the commentator?`

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

CREATE TABLE "international_broadcasts_and_voting" (
  "voting_order" real,
  "country" text,
  "spokespersons" text,
  "commentator" text,
  "broadcaster" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the voting order when bunny carr was the commentator?`:
```sql
                SELECT SUM("voting_order") FROM "international_broadcasts_and_voting" WHERE "commentator"='bunny carr';
```
## Task
Generate a SQL query to answer the following question:
`Who was the commentator when the spokesperson was michael aspel?`

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

CREATE TABLE "international_broadcasts_and_voting" (
  "voting_order" real,
  "country" text,
  "spokespersons" text,
  "commentator" text,
  "broadcaster" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the commentator when the spokesperson was michael aspel?`:
```sql
                SELECT "commentator" FROM "international_broadcasts_and_voting" WHERE "spokespersons"='michael aspel';
```
## Task
Generate a SQL query to answer the following question:
`What was the voting order when the commentator was renato tagliani?`

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

CREATE TABLE "international_broadcasts_and_voting" (
  "voting_order" real,
  "country" text,
  "spokespersons" text,
  "commentator" text,
  "broadcaster" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the voting order when the commentator was renato tagliani?`:
```sql
                SELECT "voting_order" FROM "international_broadcasts_and_voting" WHERE "commentator"='renato tagliani';
```
## Task
Generate a SQL query to answer the following question:
`Which Bronze has a Total smaller than 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bronze has a Total smaller than 1?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`How much Silver has a Bronze larger than 1, and a Gold of 0, and a Rank smaller than 4?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Silver has a Bronze larger than 1, and a Gold of 0, and a Rank smaller than 4?`:
```sql
                SELECT COUNT("silver") FROM "medal_table" WHERE "bronze">1 AND "gold"=0 AND "rank"<4;
```
## Task
Generate a SQL query to answer the following question:
`Which Bronze has a Rank of 4, and a Gold smaller than 0?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bronze has a Rank of 4, and a Gold smaller than 0?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "rank"=4 AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`How much Gold has a Bronze smaller than 2, and a Silver of 0, and a Rank larger than 3?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Gold has a Bronze smaller than 2, and a Silver of 0, and a Rank larger than 3?`:
```sql
                SELECT SUM("gold") FROM "medal_table" WHERE "bronze"<2 AND "silver"=0 AND "rank">3;
```
## Task
Generate a SQL query to answer the following question:
`What percentage of the 2011 population had a mother tongue language that was spoken by 45.22% of the population in 2006 (over 120)?`

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

CREATE TABLE "mother_tongue_language_2006_and_2011" (
  "mother_tongue" text,
  "population_2006" real,
  "percentage_2006" text,
  "population_2011" real,
  "percentage_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of the 2011 population had a mother tongue language that was spoken by 45.22% of the population in 2006 (over 120)?`:
```sql
                SELECT "percentage_2011" FROM "mother_tongue_language_2006_and_2011" WHERE "population_2006">120 AND "percentage_2006"='45.22%';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of people in 2011 speaking the mother tongue language spoken by 120 in 2006?`

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

CREATE TABLE "mother_tongue_language_2006_and_2011" (
  "mother_tongue" text,
  "population_2006" real,
  "percentage_2006" text,
  "population_2011" real,
  "percentage_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of people in 2011 speaking the mother tongue language spoken by 120 in 2006?`:
```sql
                SELECT COUNT("population_2011") FROM "mother_tongue_language_2006_and_2011" WHERE "population_2006"=120;
```
## Task
Generate a SQL query to answer the following question:
`How many people ha Romanian as their mother tongue in 2006?`

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

CREATE TABLE "mother_tongue_language_2006_and_2011" (
  "mother_tongue" text,
  "population_2006" real,
  "percentage_2006" text,
  "population_2011" real,
  "percentage_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people ha Romanian as their mother tongue in 2006?`:
```sql
                SELECT MAX("population_2006") FROM "mother_tongue_language_2006_and_2011" WHERE "mother_tongue"='romanian';
```
## Task
Generate a SQL query to answer the following question:
`What is the mother tongue language shared by 300 people in 2006?`

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

CREATE TABLE "mother_tongue_language_2006_and_2011" (
  "mother_tongue" text,
  "population_2006" real,
  "percentage_2006" text,
  "population_2011" real,
  "percentage_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mother tongue language shared by 300 people in 2006?`:
```sql
                SELECT "mother_tongue" FROM "mother_tongue_language_2006_and_2011" WHERE "population_2006"=300;
```
## Task
Generate a SQL query to answer the following question:
`What percentage of people in 2011 had a mother tongue that was shared by less than 8,085 in 2006 and less than 145 in 2011?`

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

CREATE TABLE "mother_tongue_language_2006_and_2011" (
  "mother_tongue" text,
  "population_2006" real,
  "percentage_2006" text,
  "population_2011" real,
  "percentage_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of people in 2011 had a mother tongue that was shared by less than 8,085 in 2006 and less than 145 in 2011?`:
```sql
                SELECT "percentage_2011" FROM "mother_tongue_language_2006_and_2011" WHERE "population_2006"<'8,085' AND "population_2011"<145;
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of points when the English translation is Long Live Life and the draw is less than 2?`

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

CREATE TABLE "results" (
  "draw" real,
  "language" text,
  "song" text,
  "english_translation" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of points when the English translation is Long Live Life and the draw is less than 2?`:
```sql
                SELECT COUNT("points") FROM "results" WHERE "english_translation"='long live life' AND "draw"<2;
```
## Task
Generate a SQL query to answer the following question:
`What's the language of Draw number 9?`

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

CREATE TABLE "results" (
  "draw" real,
  "language" text,
  "song" text,
  "english_translation" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the language of Draw number 9?`:
```sql
                SELECT "language" FROM "results" WHERE "draw"=9;
```
## Task
Generate a SQL query to answer the following question:
`What are the lowest points when the language is Portuguese?`

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

CREATE TABLE "results" (
  "draw" real,
  "language" text,
  "song" text,
  "english_translation" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the lowest points when the language is Portuguese?`:
```sql
                SELECT MIN("points") FROM "results" WHERE "language"='portuguese';
```
## Task
Generate a SQL query to answer the following question:
`What's the island with a summit of Haleakalā?`

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

CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" (
  "rank" real,
  "summit" text,
  "country" text,
  "island" text,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the island with a summit of Haleakalā?`:
```sql
                SELECT "island" FROM "the_six_s_ultra_prominent_summit_of_the_" WHERE "summit"='haleakalā';
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest Col ranked less than 6 with an Island of Molokaʻi?`

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

CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" (
  "rank" real,
  "summit" text,
  "country" text,
  "island" text,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest Col ranked less than 6 with an Island of Molokaʻi?`:
```sql
                SELECT MIN("col_m") FROM "the_six_s_ultra_prominent_summit_of_the_" WHERE "island"='island of molokaʻi' AND "rank"<6;
```
## Task
Generate a SQL query to answer the following question:
`What's the col (m) ranked more than 4 with a summit of Kawaikini?`

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

CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" (
  "rank" real,
  "summit" text,
  "country" text,
  "island" text,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the col (m) ranked more than 4 with a summit of Kawaikini?`:
```sql
                SELECT "col_m" FROM "the_six_s_ultra_prominent_summit_of_the_" WHERE "rank">4 AND "summit"='kawaikini';
```
## Task
Generate a SQL query to answer the following question:
`What's the rank when the col (m) is less than 33 and has a summit of Haleakalā?`

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

CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" (
  "rank" real,
  "summit" text,
  "country" text,
  "island" text,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the rank when the col (m) is less than 33 and has a summit of Haleakalā?`:
```sql
                SELECT SUM("rank") FROM "the_six_s_ultra_prominent_summit_of_the_" WHERE "col_m"<33 AND "summit"='haleakalā';
```
## Task
Generate a SQL query to answer the following question:
`What's the summit when the rank is less than 2 and has a col (m) of 0?`

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

CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" (
  "rank" real,
  "summit" text,
  "country" text,
  "island" text,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the summit when the rank is less than 2 and has a col (m) of 0?`:
```sql
                SELECT "summit" FROM "the_six_s_ultra_prominent_summit_of_the_" WHERE "col_m"=0 AND "rank"<2;
```
## Task
Generate a SQL query to answer the following question:
`Which Year has an Edition of 41st?`

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

CREATE TABLE "games" (
  "edition" text,
  "year" text,
  "city" text,
  "country" text,
  "date" text,
  "no_of_events" real,
  "top_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year has an Edition of 41st?`:
```sql
                SELECT "year" FROM "games" WHERE "edition"='41st';
```
## Task
Generate a SQL query to answer the following question:
`How many Events have a Country of trinidad and tobago, and a Date of march 30-april 1?`

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

CREATE TABLE "games" (
  "edition" text,
  "year" text,
  "city" text,
  "country" text,
  "date" text,
  "no_of_events" real,
  "top_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Events have a Country of trinidad and tobago, and a Date of march 30-april 1?`:
```sql
                SELECT "no_of_events" FROM "games" WHERE "country"='trinidad and tobago' AND "date"='march 30-april 1';
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a Top Team of jam, and an Edition of 31st?`

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

CREATE TABLE "games" (
  "edition" text,
  "year" text,
  "city" text,
  "country" text,
  "date" text,
  "no_of_events" real,
  "top_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Top Team of jam, and an Edition of 31st?`:
```sql
                SELECT "country" FROM "games" WHERE "top_team"='jam' AND "edition"='31st';
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the final with a partner of Brett Steven?`

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

CREATE TABLE "doubles_titles_22_19" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome of the final with a partner of Brett Steven?`:
```sql
                SELECT "outcome" FROM "doubles_titles_22_19" WHERE "partner"='brett steven';
```
## Task
Generate a SQL query to answer the following question:
`On what type of surface was the tournament of Italy f28?`

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

CREATE TABLE "doubles_titles_21" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what type of surface was the tournament of Italy f28?`:
```sql
                SELECT "surface" FROM "doubles_titles_21" WHERE "tournament"='italy f28';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in the final of the Senegal f2 tournament>`

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

CREATE TABLE "doubles_titles_21" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in the final of the Senegal f2 tournament>`:
```sql
                SELECT "opponent_in_the_final" FROM "doubles_titles_21" WHERE "tournament"='senegal f2';
```
## Task
Generate a SQL query to answer the following question:
`What's the score on December 12, 1998?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the score on December 12, 1998?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='december 12, 1998';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue when the score was 7-1?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue when the score was 7-1?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "score"='7-1';
```
## Task
Generate a SQL query to answer the following question:
`What's the score of the friendly competition?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the score of the friendly competition?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "competition"='friendly';
```
## Task
Generate a SQL query to answer the following question:
`What's the competition that happened in Singapore?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the competition that happened in Singapore?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "venue"='singapore';
```
## Task
Generate a SQL query to answer the following question:
`What's the venue of the 1995 Southeast Asian Games?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the venue of the 1995 Southeast Asian Games?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "competition"='1995 southeast asian games';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the inauguration in the row with an entry of lifespan in the lifespan column?`

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

CREATE TABLE "list" (
  "president" text,
  "date_of_birth" text,
  "date_of_inauguration" text,
  "age_at_inauguration" text,
  "end_of_term" text,
  "length_of_retirement" text,
  "date_of_death" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the inauguration in the row with an entry of lifespan in the lifespan column?`:
```sql
                SELECT "date_of_inauguration" FROM "list" WHERE "lifespan"='lifespan';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of death entry in the row that has a date of inauguration entry of date of inauguration?`

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

CREATE TABLE "list" (
  "president" text,
  "date_of_birth" text,
  "date_of_inauguration" text,
  "age_at_inauguration" text,
  "end_of_term" text,
  "length_of_retirement" text,
  "date_of_death" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of death entry in the row that has a date of inauguration entry of date of inauguration?`:
```sql
                SELECT "date_of_death" FROM "list" WHERE "date_of_inauguration"='date of inauguration';
```
## Task
Generate a SQL query to answer the following question:
`What is the length of retirement for president Sharma, Shankar Shankar Dayal Sharma?`

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

CREATE TABLE "list" (
  "president" text,
  "date_of_birth" text,
  "date_of_inauguration" text,
  "age_at_inauguration" text,
  "end_of_term" text,
  "length_of_retirement" text,
  "date_of_death" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the length of retirement for president Sharma, Shankar Shankar Dayal Sharma?`:
```sql
                SELECT "length_of_retirement" FROM "list" WHERE "president"='sharma, shankar shankar dayal sharma';
```
## Task
Generate a SQL query to answer the following question:
`How many draw is in a place that is less than 1?`

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

CREATE TABLE "results_of_heat_5" (
  "draw" real,
  "artist" text,
  "song" text,
  "percentage" text,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many draw is in a place that is less than 1?`:
```sql
                SELECT COUNT("draw") FROM "results_of_heat_5" WHERE "place"<1;
```
## Task
Generate a SQL query to answer the following question:
`What percentage has a less than 5 place, and a greater than 3 draw, and "S Teb" as the song?`

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

CREATE TABLE "results_of_heat_5" (
  "draw" real,
  "artist" text,
  "song" text,
  "percentage" text,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage has a less than 5 place, and a greater than 3 draw, and "S Teb" as the song?`:
```sql
                SELECT "percentage" FROM "results_of_heat_5" WHERE "place"<5 AND "draw">3 AND "song"='\"s teb\"';
```
## Task
Generate a SQL query to answer the following question:
`Emilya Valenti has what draw average?`

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

CREATE TABLE "results_of_heat_5" (
  "draw" real,
  "artist" text,
  "song" text,
  "percentage" text,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `Emilya Valenti has what draw average?`:
```sql
                SELECT AVG("draw") FROM "results_of_heat_5" WHERE "artist"='emilya valenti';
```
## Task
Generate a SQL query to answer the following question:
`What's the airing date of Armed Reaction 陀槍師姐 with 20 episodes in the Modern Action genre having an official website?`

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

CREATE TABLE "second_line_series" (
  "airing_date" text,
  "english_title_chinese_title" text,
  "number_of_episodes" real,
  "genre" text,
  "official_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the airing date of Armed Reaction 陀槍師姐 with 20 episodes in the Modern Action genre having an official website?`:
```sql
                SELECT "airing_date" FROM "second_line_series" WHERE "official_website"='official website' AND "number_of_episodes"=20 AND "genre"='modern action' AND "english_title_chinese_title"='armed reaction 陀槍師姐';
```
## Task
Generate a SQL query to answer the following question:
`What's the airing date for the show with 62 episodes?`

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

CREATE TABLE "second_line_series" (
  "airing_date" text,
  "english_title_chinese_title" text,
  "number_of_episodes" real,
  "genre" text,
  "official_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the airing date for the show with 62 episodes?`:
```sql
                SELECT "airing_date" FROM "second_line_series" WHERE "number_of_episodes"=62;
```
## Task
Generate a SQL query to answer the following question:
`What's the official website of Burning Flame 烈火雄心 with 22 episodes?`

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

CREATE TABLE "second_line_series" (
  "airing_date" text,
  "english_title_chinese_title" text,
  "number_of_episodes" real,
  "genre" text,
  "official_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the official website of Burning Flame 烈火雄心 with 22 episodes?`:
```sql
                SELECT "official_website" FROM "second_line_series" WHERE "number_of_episodes">22 AND "english_title_chinese_title"='burning flame 烈火雄心';
```
## Task
Generate a SQL query to answer the following question:
`what is the position for the competitor that has a score more than 7`

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

CREATE TABLE "qualified_competitors" (
  "position" text,
  "gymnast" text,
  "a_score" real,
  "b_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the position for the competitor that has a score more than 7`:
```sql
                SELECT "position" FROM "qualified_competitors" WHERE "a_score">7;
```
## Task
Generate a SQL query to answer the following question:
`what is the score for the 5th position and a score less than 7`

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

CREATE TABLE "qualified_competitors" (
  "position" text,
  "gymnast" text,
  "a_score" real,
  "b_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score for the 5th position and a score less than 7`:
```sql
                SELECT MIN("b_score") FROM "qualified_competitors" WHERE "position"='5th' AND "a_score"<7;
```
## Task
Generate a SQL query to answer the following question:
`what is the total scored for the 8th position and a score more than 6.6`

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

CREATE TABLE "qualified_competitors" (
  "position" text,
  "gymnast" text,
  "a_score" real,
  "b_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total scored for the 8th position and a score more than 6.6`:
```sql
                SELECT MAX("total") FROM "qualified_competitors" WHERE "position"='8th' AND "a_score">6.6;
```
## Task
Generate a SQL query to answer the following question:
`What is the Meet of the Event with a Time of 7:55.02?`

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

CREATE TABLE "women" (
  "event" text,
  "time" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Meet of the Event with a Time of 7:55.02?`:
```sql
                SELECT "meet" FROM "women" WHERE "time"='7:55.02';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location of the Event with a Time of 2:22.32?`

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

CREATE TABLE "women" (
  "event" text,
  "time" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location of the Event with a Time of 2:22.32?`:
```sql
                SELECT "location" FROM "women" WHERE "time"='2:22.32';
```
## Task
Generate a SQL query to answer the following question:
`Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Body Length/mm larger than 18.4?`

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

CREATE TABLE "type_i" (
  "part_number" text,
  "pins" text,
  "body_width_mm" real,
  "body_length_mm" real,
  "lead_pitch_mm" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Body Length/mm larger than 18.4?`:
```sql
                SELECT MIN("body_width_mm") FROM "type_i" WHERE "lead_pitch_mm"<0.55 AND "body_length_mm">18.4;
```
## Task
Generate a SQL query to answer the following question:
`Which Body Length/mm has a Lead Pitch/mm smaller than 0.5?`

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

CREATE TABLE "type_i" (
  "part_number" text,
  "pins" text,
  "body_width_mm" real,
  "body_length_mm" real,
  "lead_pitch_mm" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Body Length/mm has a Lead Pitch/mm smaller than 0.5?`:
```sql
                SELECT AVG("body_length_mm") FROM "type_i" WHERE "lead_pitch_mm"<0.5;
```
## Task
Generate a SQL query to answer the following question:
`How much Body Width/mm has a Body Length/mm of 18.4, and Pins of 40?`

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

CREATE TABLE "type_i" (
  "part_number" text,
  "pins" text,
  "body_width_mm" real,
  "body_length_mm" real,
  "lead_pitch_mm" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Body Width/mm has a Body Length/mm of 18.4, and Pins of 40?`:
```sql
                SELECT COUNT("body_width_mm") FROM "type_i" WHERE "body_length_mm"=18.4 AND "pins"='40';
```
## Task
Generate a SQL query to answer the following question:
`Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Part Number of tsop48?`

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

CREATE TABLE "type_i" (
  "part_number" text,
  "pins" text,
  "body_width_mm" real,
  "body_length_mm" real,
  "lead_pitch_mm" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Part Number of tsop48?`:
```sql
                SELECT MIN("body_width_mm") FROM "type_i" WHERE "lead_pitch_mm"<0.55 AND "part_number"='tsop48';
```
## Task
Generate a SQL query to answer the following question:
`Which Lead Pitch/mm has a Part Number of tsop40, and a Body Length/mm larger than 18.4?`

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

CREATE TABLE "type_i" (
  "part_number" text,
  "pins" text,
  "body_width_mm" real,
  "body_length_mm" real,
  "lead_pitch_mm" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lead Pitch/mm has a Part Number of tsop40, and a Body Length/mm larger than 18.4?`:
```sql
                SELECT MAX("lead_pitch_mm") FROM "type_i" WHERE "part_number"='tsop40' AND "body_length_mm">18.4;
```
## Task
Generate a SQL query to answer the following question:
`What was the least attendance when the time was 3:15?`

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

CREATE TABLE "toronto_blue_jays_vs_oakland_athletics" (
  "game" real,
  "date" text,
  "location" text,
  "time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the least attendance when the time was 3:15?`:
```sql
                SELECT MIN("attendance") FROM "toronto_blue_jays_vs_oakland_athletics" WHERE "time"='3:15';
```
## Task
Generate a SQL query to answer the following question:
`What date was at Oakland-Alameda County Coliseum with a time of 3:40 and a game less than 5?`

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

CREATE TABLE "toronto_blue_jays_vs_oakland_athletics" (
  "game" real,
  "date" text,
  "location" text,
  "time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date was at Oakland-Alameda County Coliseum with a time of 3:40 and a game less than 5?`:
```sql
                SELECT "date" FROM "toronto_blue_jays_vs_oakland_athletics" WHERE "game"<5 AND "location"='oakland-alameda county coliseum' AND "time"='3:40';
```
## Task
Generate a SQL query to answer the following question:
`Which Bronze has a Gold larger than 1, and a Total larger than 11, and a Silver larger than 5?`

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

CREATE TABLE "by_city" (
  "rank" real,
  "nation" 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 Gold larger than 1, and a Total larger than 11, and a Silver larger than 5?`:
```sql
                SELECT AVG("bronze") FROM "by_city" WHERE "gold">1 AND "total">11 AND "silver">5;
```
## Task
Generate a SQL query to answer the following question:
`How many silvers have more than 2 golds?`

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

CREATE TABLE "by_city" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many silvers have more than 2 golds?`:
```sql
                SELECT COUNT("silver") FROM "by_city" WHERE "gold">2;
```
## Task
Generate a SQL query to answer the following question:
`What percentage of browsers were using Firefox or other Mozilla browsers during the period in which 1.93% were using Chrome?`

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

CREATE TABLE "usa_usage_share_data_from_stat_owl_com" (
  "internet_explorer" text,
  "firefox_other_mozilla" text,
  "chrome" text,
  "safari" text,
  "opera" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of browsers were using Firefox or other Mozilla browsers during the period in which 1.93% were using Chrome?`:
```sql
                SELECT "firefox_other_mozilla" FROM "usa_usage_share_data_from_stat_owl_com" WHERE "chrome"='1.93%';
```
## Task
Generate a SQL query to answer the following question:
`What percentage of browsers were using Internet Explorer during the period in which 24.91% were using Chrome?`

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

CREATE TABLE "usa_usage_share_data_from_stat_owl_com" (
  "internet_explorer" text,
  "firefox_other_mozilla" text,
  "chrome" text,
  "safari" text,
  "opera" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of browsers were using Internet Explorer during the period in which 24.91% were using Chrome?`:
```sql
                SELECT "internet_explorer" FROM "usa_usage_share_data_from_stat_owl_com" WHERE "chrome"='24.91%';
```
## Task
Generate a SQL query to answer the following question:
`What percentage of browsers were using Chrome during the period in which 72.03% were using Internet Explorer?`

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

CREATE TABLE "usa_usage_share_data_from_stat_owl_com" (
  "internet_explorer" text,
  "firefox_other_mozilla" text,
  "chrome" text,
  "safari" text,
  "opera" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of browsers were using Chrome during the period in which 72.03% were using Internet Explorer?`:
```sql
                SELECT "chrome" FROM "usa_usage_share_data_from_stat_owl_com" WHERE "internet_explorer"='72.03%';
```
## Task
Generate a SQL query to answer the following question:
`What percentage of browsers were using Safari during the period in which 2.05% were using Chrome?`

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

CREATE TABLE "usa_usage_share_data_from_stat_owl_com" (
  "internet_explorer" text,
  "firefox_other_mozilla" text,
  "chrome" text,
  "safari" text,
  "opera" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of browsers were using Safari during the period in which 2.05% were using Chrome?`:
```sql
                SELECT "safari" FROM "usa_usage_share_data_from_stat_owl_com" WHERE "chrome"='2.05%';
```
## Task
Generate a SQL query to answer the following question:
`What percentage of browsers were using Chrome during the period in which 0.30% were using Opera and 6.77% were using Safari?`

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

CREATE TABLE "usa_usage_share_data_from_stat_owl_com" (
  "internet_explorer" text,
  "firefox_other_mozilla" text,
  "chrome" text,
  "safari" text,
  "opera" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of browsers were using Chrome during the period in which 0.30% were using Opera and 6.77% were using Safari?`:
```sql
                SELECT "chrome" FROM "usa_usage_share_data_from_stat_owl_com" WHERE "opera"='0.30%' AND "safari"='6.77%';
```
## Task
Generate a SQL query to answer the following question:
`Which TV network was located in Brazil?`

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

CREATE TABLE "international_broadcasts" (
  "country" text,
  "tv_network_s" text,
  "series_premiere" text,
  "weekly_schedule" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which TV network was located in Brazil?`:
```sql
                SELECT "tv_network_s" FROM "international_broadcasts" WHERE "country"='brazil';
```
## Task
Generate a SQL query to answer the following question:
`What country has a series premier of unknown and mbc action as their TV network?`

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

CREATE TABLE "international_broadcasts" (
  "country" text,
  "tv_network_s" text,
  "series_premiere" text,
  "weekly_schedule" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a series premier of unknown and mbc action as their TV network?`:
```sql
                SELECT "country" FROM "international_broadcasts" WHERE "series_premiere"='unknown' AND "tv_network_s"='mbc action';
```
## Task
Generate a SQL query to answer the following question:
`What is the weekly schedule for the network sky italia?`

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

CREATE TABLE "international_broadcasts" (
  "country" text,
  "tv_network_s" text,
  "series_premiere" text,
  "weekly_schedule" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weekly schedule for the network sky italia?`:
```sql
                SELECT "weekly_schedule" FROM "international_broadcasts" WHERE "tv_network_s"='sky italia';
```
## Task
Generate a SQL query to answer the following question:
`How many Gold medals for the Nations with 6 or more Bronze medals and 18 or more Silver?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Gold medals for the Nations with 6 or more Bronze medals and 18 or more Silver?`:
```sql
                SELECT AVG("gold") FROM "medals_table" WHERE "bronze">6 AND "silver">18;
```
## Task
Generate a SQL query to answer the following question:
`How many Gold medals did the Soviet Union receive?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Gold medals did the Soviet Union receive?`:
```sql
                SELECT AVG("gold") FROM "medals_table" WHERE "nation"='soviet union';
```
## Task
Generate a SQL query to answer the following question:
`What pos is John Mann Category:Articles with Hcards with the New York Athletic Club?`

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

CREATE TABLE "current_roster" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "2012_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pos is John Mann Category:Articles with Hcards with the New York Athletic Club?`:
```sql
                SELECT "pos" FROM "current_roster" WHERE "2012_club"='new york athletic club' AND "name"='john mann category:articles with hcards';
```
## Task
Generate a SQL query to answer the following question:
`What's the weight when the pos is CB and is part of the New York Athletic Club?`

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

CREATE TABLE "current_roster" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "2012_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the weight when the pos is CB and is part of the New York Athletic Club?`:
```sql
                SELECT "weight" FROM "current_roster" WHERE "pos"='cb' AND "2012_club"='new york athletic club';
```