cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who was in Lane 5 and had a heat of 7?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was in Lane 5 and had a heat of 7?`:
```sql
                SELECT "name" FROM "heats" WHERE "heat"=7 AND "lane"=5;
```
## Task
Generate a SQL query to answer the following question:
`What lane number was Hungary and had a heat of 4?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What lane number was Hungary and had a heat of 4?`:
```sql
                SELECT COUNT("lane") FROM "heats" WHERE "heat"=4 AND "nationality"='hungary';
```
## Task
Generate a SQL query to answer the following question:
`What's the date when the score was 690.3?`

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

CREATE TABLE "world_record_progression" (
  "score" text,
  "shooter" text,
  "date" text,
  "comp" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the date when the score was 690.3?`:
```sql
                SELECT "date" FROM "world_record_progression" WHERE "score"='690.3';
```
## Task
Generate a SQL query to answer the following question:
`What's the place of 1989 with a comp of ECH?`

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

CREATE TABLE "world_record_progression" (
  "score" text,
  "shooter" text,
  "date" text,
  "comp" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the place of 1989 with a comp of ECH?`:
```sql
                SELECT "place" FROM "world_record_progression" WHERE "comp"='ech' AND "date"='1989';
```
## Task
Generate a SQL query to answer the following question:
`Who was the shooter with a score of 686.4?`

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

CREATE TABLE "world_record_progression" (
  "score" text,
  "shooter" text,
  "date" text,
  "comp" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the shooter with a score of 686.4?`:
```sql
                SELECT "shooter" FROM "world_record_progression" WHERE "score"='686.4';
```
## Task
Generate a SQL query to answer the following question:
`what is the year for borderlands 2?`

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

CREATE TABLE "games_tm" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the year for borderlands 2?`:
```sql
                SELECT "year" FROM "games_tm" WHERE "game"='borderlands 2';
```
## Task
Generate a SQL query to answer the following question:
`what is the year for the game dead space 2?`

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

CREATE TABLE "games_tm" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the year for the game dead space 2?`:
```sql
                SELECT "year" FROM "games_tm" WHERE "game"='dead space 2';
```
## Task
Generate a SQL query to answer the following question:
`who is the developers for demon's souls?`

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

CREATE TABLE "games_tm" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the developers for demon's souls?`:
```sql
                SELECT "developer_s" FROM "games_tm" WHERE "game"='demon''s souls';
```
## Task
Generate a SQL query to answer the following question:
`In what year is Zaxxon the Standalone?`

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

CREATE TABLE "arcade_awards_electronic_gaming_awards" (
  "year" text,
  "arcade" text,
  "standalone" text,
  "console" text,
  "computer" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year is Zaxxon the Standalone?`:
```sql
                SELECT "year" FROM "arcade_awards_electronic_gaming_awards" WHERE "standalone"='zaxxon';
```
## Task
Generate a SQL query to answer the following question:
`What is the Standalone in the year when Space Invaders is the Console?`

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

CREATE TABLE "arcade_awards_electronic_gaming_awards" (
  "year" text,
  "arcade" text,
  "standalone" text,
  "console" text,
  "computer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Standalone in the year when Space Invaders is the Console?`:
```sql
                SELECT "standalone" FROM "arcade_awards_electronic_gaming_awards" WHERE "console"='space invaders';
```
## Task
Generate a SQL query to answer the following question:
`What is the Standalone when Tron is the Arcade?`

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

CREATE TABLE "arcade_awards_electronic_gaming_awards" (
  "year" text,
  "arcade" text,
  "standalone" text,
  "console" text,
  "computer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Standalone when Tron is the Arcade?`:
```sql
                SELECT "standalone" FROM "arcade_awards_electronic_gaming_awards" WHERE "arcade"='tron';
```
## Task
Generate a SQL query to answer the following question:
`What is the Console when Space Invaders is the Arcade?`

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

CREATE TABLE "arcade_awards_electronic_gaming_awards" (
  "year" text,
  "arcade" text,
  "standalone" text,
  "console" text,
  "computer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Console when Space Invaders is the Arcade?`:
```sql
                SELECT "console" FROM "arcade_awards_electronic_gaming_awards" WHERE "arcade"='space invaders';
```
## Task
Generate a SQL query to answer the following question:
`What position does the player from the Arizona Diamondbacks play?`

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

CREATE TABLE "supplemental_first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the player from the Arizona Diamondbacks play?`:
```sql
                SELECT "position" FROM "supplemental_first_round_selections" WHERE "team"='arizona diamondbacks';
```
## Task
Generate a SQL query to answer the following question:
`What school did P Jay Gehrke of the Kansas City Royals attend?`

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

CREATE TABLE "supplemental_first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school did P Jay Gehrke of the Kansas City Royals attend?`:
```sql
                SELECT "school" FROM "supplemental_first_round_selections" WHERE "position"='p' AND "team"='kansas city royals' AND "player"='jay gehrke';
```
## Task
Generate a SQL query to answer the following question:
`What country does Adam van Koeverden play for?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "athletes" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country does Adam van Koeverden play for?`:
```sql
                SELECT "country" FROM "heat_1" WHERE "athletes"='adam van koeverden';
```
## Task
Generate a SQL query to answer the following question:
`what is the pick when the school is jasper hs (jasper, texas)?`

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

CREATE TABLE "first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the pick when the school is jasper hs (jasper, texas)?`:
```sql
                SELECT "pick" FROM "first_round_selections" WHERE "school"='jasper hs (jasper, texas)';
```
## Task
Generate a SQL query to answer the following question:
`who is the player when the position is p and the team is oakland athletics?`

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

CREATE TABLE "first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the player when the position is p and the team is oakland athletics?`:
```sql
                SELECT "player" FROM "first_round_selections" WHERE "position"='p' AND "team"='oakland athletics';
```
## Task
Generate a SQL query to answer the following question:
`what is the school when the team is new york yankees?`

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

CREATE TABLE "first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the school when the team is new york yankees?`:
```sql
                SELECT "school" FROM "first_round_selections" WHERE "team"='new york yankees';
```
## Task
Generate a SQL query to answer the following question:
`who is the player when the school is spring hs (spring, texas)?`

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

CREATE TABLE "first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the player when the school is spring hs (spring, texas)?`:
```sql
                SELECT "player" FROM "first_round_selections" WHERE "school"='spring hs (spring, texas)';
```
## Task
Generate a SQL query to answer the following question:
`What's the melamine content of 英雄牌嬰幼兒配方乳粉 having more than 1 samples failed?`

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

CREATE TABLE "tests_conducted_by_aqsiq" (
  "producer" text,
  "product" text,
  "samples_taken" real,
  "samples_failed" real,
  "melamine_content_mg_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the melamine content of 英雄牌嬰幼兒配方乳粉 having more than 1 samples failed?`:
```sql
                SELECT "melamine_content_mg_kg" FROM "tests_conducted_by_aqsiq" WHERE "samples_failed">1 AND "product"='英雄牌嬰幼兒配方乳粉';
```
## Task
Generate a SQL query to answer the following question:
`What's the most melamine content that has more than 1 samples failed and produced by Guangzhou Jinding Dairy Products Factory?`

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

CREATE TABLE "tests_conducted_by_aqsiq" (
  "producer" text,
  "product" text,
  "samples_taken" real,
  "samples_failed" real,
  "melamine_content_mg_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the most melamine content that has more than 1 samples failed and produced by Guangzhou Jinding Dairy Products Factory?`:
```sql
                SELECT MAX("melamine_content_mg_kg") FROM "tests_conducted_by_aqsiq" WHERE "producer"='guangzhou jinding dairy products factory' AND "samples_failed">1;
```
## Task
Generate a SQL query to answer the following question:
`What's the product that has less than 98.6 melamine content, more than 1 sample failed and took less than 3 samples?`

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

CREATE TABLE "tests_conducted_by_aqsiq" (
  "producer" text,
  "product" text,
  "samples_taken" real,
  "samples_failed" real,
  "melamine_content_mg_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the product that has less than 98.6 melamine content, more than 1 sample failed and took less than 3 samples?`:
```sql
                SELECT "product" FROM "tests_conducted_by_aqsiq" WHERE "melamine_content_mg_kg"<98.6 AND "samples_failed">1 AND "samples_taken"<3;
```
## Task
Generate a SQL query to answer the following question:
`What the most samples failed for 可淇牌嬰幼兒配方乳粉 and had less than 1 samples taken?`

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

CREATE TABLE "tests_conducted_by_aqsiq" (
  "producer" text,
  "product" text,
  "samples_taken" real,
  "samples_failed" real,
  "melamine_content_mg_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `What the most samples failed for 可淇牌嬰幼兒配方乳粉 and had less than 1 samples taken?`:
```sql
                SELECT MAX("samples_failed") FROM "tests_conducted_by_aqsiq" WHERE "product"='可淇牌嬰幼兒配方乳粉' AND "samples_taken"<1;
```
## Task
Generate a SQL query to answer the following question:
`How many samples taken from producer Qingdao Suncare Nutritional Technology with a melamine content less than 53.4?`

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

CREATE TABLE "tests_conducted_by_aqsiq" (
  "producer" text,
  "product" text,
  "samples_taken" real,
  "samples_failed" real,
  "melamine_content_mg_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many samples taken from producer Qingdao Suncare Nutritional Technology with a melamine content less than 53.4?`:
```sql
                SELECT SUM("samples_taken") FROM "tests_conducted_by_aqsiq" WHERE "melamine_content_mg_kg"<53.4 AND "producer"='qingdao suncare nutritional technology';
```
## Task
Generate a SQL query to answer the following question:
`What did the golfer from Australia score?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did the golfer from Australia score?`:
```sql
                SELECT "score" FROM "third_round" WHERE "country"='australia';
```
## Task
Generate a SQL query to answer the following question:
`Which date has an Opera usage percentage of 5.1% and Internet Explorer usage of 59.5%?`

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

CREATE TABLE "europe_usage_share_data_from_at_internet" (
  "date" text,
  "internet_explorer" text,
  "firefox" text,
  "opera" text,
  "safari" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has an Opera usage percentage of 5.1% and Internet Explorer usage of 59.5%?`:
```sql
                SELECT "date" FROM "europe_usage_share_data_from_at_internet" WHERE "opera"='5.1%' AND "internet_explorer"='59.5%';
```
## Task
Generate a SQL query to answer the following question:
`Which source has a date of June 2008?`

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

CREATE TABLE "europe_usage_share_data_from_at_internet" (
  "date" text,
  "internet_explorer" text,
  "firefox" text,
  "opera" text,
  "safari" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which source has a date of June 2008?`:
```sql
                SELECT "source" FROM "europe_usage_share_data_from_at_internet" WHERE "date"='june 2008';
```
## Task
Generate a SQL query to answer the following question:
`Which source date has an Internet Explorer usage of 60.2%?`

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

CREATE TABLE "europe_usage_share_data_from_at_internet" (
  "date" text,
  "internet_explorer" text,
  "firefox" text,
  "opera" text,
  "safari" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which source date has an Internet Explorer usage of 60.2%?`:
```sql
                SELECT "source" FROM "europe_usage_share_data_from_at_internet" WHERE "internet_explorer"='60.2%';
```
## Task
Generate a SQL query to answer the following question:
`What city has the home team of the brisbane broncos?`

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

CREATE TABLE "former_or_demolished_stadiums" (
  "stadium" text,
  "capacity" real,
  "city" text,
  "country" text,
  "home_team_s" text,
  "closed_as_a_rl_stadium" real
);
### SQL
Given the database schema, here is the SQL query that answers `What city has the home team of the brisbane broncos?`:
```sql
                SELECT "city" FROM "former_or_demolished_stadiums" WHERE "home_team_s"='brisbane broncos';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest closed year in the country of france?`

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

CREATE TABLE "former_or_demolished_stadiums" (
  "stadium" text,
  "capacity" real,
  "city" text,
  "country" text,
  "home_team_s" text,
  "closed_as_a_rl_stadium" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest closed year in the country of france?`:
```sql
                SELECT MIN("closed_as_a_rl_stadium") FROM "former_or_demolished_stadiums" WHERE "country"='france';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for the event that lasted 2:20?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for the event that lasted 2:20?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "time"='2:20';
```
## Task
Generate a SQL query to answer the following question:
`Who was the fight against when loss was the result at the Gladiator Challenge 87: Collision Course event?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the fight against when loss was the result at the Gladiator Challenge 87: Collision Course event?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "event"='gladiator challenge 87: collision course';
```
## Task
Generate a SQL query to answer the following question:
`For the Cage Combat Fighting Championships: Mayhem, what was the record?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the Cage Combat Fighting Championships: Mayhem, what was the record?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='cage combat fighting championships: mayhem';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name of the Gabeca Montichiari Club?`

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

CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name of the Gabeca Montichiari Club?`:
```sql
                SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='gabeca montichiari';
```
## Task
Generate a SQL query to answer the following question:
`What is the Height of the Player from the 2008 Club of RPA Perugia?`

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

CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height of the Player from the 2008 Club of RPA Perugia?`:
```sql
                SELECT "height" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='rpa perugia';
```
## Task
Generate a SQL query to answer the following question:
`Who was the designer for The Grapefruit Moon?`

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

CREATE TABLE "season_1" (
  "restaurant_name" text,
  "original_name" text,
  "location" text,
  "chef" text,
  "designer" text,
  "still_open" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the designer for The Grapefruit Moon?`:
```sql
                SELECT "designer" FROM "season_1" WHERE "restaurant_name"='the grapefruit moon';
```
## Task
Generate a SQL query to answer the following question:
`Who is the chef at Lakes Bar and Grill?`

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

CREATE TABLE "season_1" (
  "restaurant_name" text,
  "original_name" text,
  "location" text,
  "chef" text,
  "designer" text,
  "still_open" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the chef at Lakes Bar and Grill?`:
```sql
                SELECT "chef" FROM "season_1" WHERE "restaurant_name"='lakes bar and grill';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the Cobourg, ON restaurant that had Robin de Groot as designer?`

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

CREATE TABLE "season_1" (
  "restaurant_name" text,
  "original_name" text,
  "location" text,
  "chef" text,
  "designer" text,
  "still_open" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the Cobourg, ON restaurant that had Robin de Groot as designer?`:
```sql
                SELECT "restaurant_name" FROM "season_1" WHERE "designer"='robin de groot' AND "location"='cobourg, on';
```
## Task
Generate a SQL query to answer the following question:
`What European competitions have a tier of 2 and a position of 3?`

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

CREATE TABLE "season_by_season" (
  "season" text,
  "tier" real,
  "league" text,
  "pos" real,
  "turkish_cup" text,
  "european_competitions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What European competitions have a tier of 2 and a position of 3?`:
```sql
                SELECT "european_competitions" FROM "season_by_season" WHERE "tier"=2 AND "pos"=3;
```
## Task
Generate a SQL query to answer the following question:
`Which Nation won 5 Silver, and more than 4 Gold?`

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

CREATE TABLE "all_time_medal_table_women_s_1984_2012" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nation won 5 Silver, and more than 4 Gold?`:
```sql
                SELECT "nation" FROM "all_time_medal_table_women_s_1984_2012" WHERE "silver"=5 AND "gold">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of heat for christophe lebon when lane is less than 4?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of heat for christophe lebon when lane is less than 4?`:
```sql
                SELECT COUNT("heat") FROM "heats" WHERE "lane"<4 AND "name"='christophe lebon';
```
## Task
Generate a SQL query to answer the following question:
`Who is from the united states, has a rank less than 9, and heat more than 5?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is from the united states, has a rank less than 9, and heat more than 5?`:
```sql
                SELECT "name" FROM "heats" WHERE "rank"<9 AND "heat">5 AND "nationality"='united states';
```
## Task
Generate a SQL query to answer the following question:
`Serbia has a heat less than 2 and what sum of rank?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Serbia has a heat less than 2 and what sum of rank?`:
```sql
                SELECT COUNT("rank") FROM "heats" WHERE "nationality"='serbia' AND "heat"<2;
```
## Task
Generate a SQL query to answer the following question:
`When rank is 33, what is the smallest lane?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `When rank is 33, what is the smallest lane?`:
```sql
                SELECT MIN("lane") FROM "heats" WHERE "rank"=33;
```
## Task
Generate a SQL query to answer the following question:
`Which Model has a Number of CPUs of 1–10, and a Performance (MIPS) of 49–447?`

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

CREATE TABLE "s_390_computers" (
  "model" text,
  "year_introduced" real,
  "number_of_cp_us" text,
  "performance_mips" text,
  "memory_gb" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Model has a Number of CPUs of 1–10, and a Performance (MIPS) of 49–447?`:
```sql
                SELECT "model" FROM "s_390_computers" WHERE "number_of_cp_us"='1–10' AND "performance_mips"='49–447';
```
## Task
Generate a SQL query to answer the following question:
`Which Year Introduced has a Memory (GB) of 0.125–2?`

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

CREATE TABLE "s_390_computers" (
  "model" text,
  "year_introduced" real,
  "number_of_cp_us" text,
  "performance_mips" text,
  "memory_gb" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year Introduced has a Memory (GB) of 0.125–2?`:
```sql
                SELECT MAX("year_introduced") FROM "s_390_computers" WHERE "memory_gb"='0.125–2';
```
## Task
Generate a SQL query to answer the following question:
`Which Number of CPUs has a Memory (GB) of 0.5–16?`

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

CREATE TABLE "s_390_computers" (
  "model" text,
  "year_introduced" real,
  "number_of_cp_us" text,
  "performance_mips" text,
  "memory_gb" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Number of CPUs has a Memory (GB) of 0.5–16?`:
```sql
                SELECT "number_of_cp_us" FROM "s_390_computers" WHERE "memory_gb"='0.5–16';
```
## Task
Generate a SQL query to answer the following question:
`Which Memory (GB) has a Number of CPUs of 1–6?`

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

CREATE TABLE "s_390_computers" (
  "model" text,
  "year_introduced" real,
  "number_of_cp_us" text,
  "performance_mips" text,
  "memory_gb" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Memory (GB) has a Number of CPUs of 1–6?`:
```sql
                SELECT "memory_gb" FROM "s_390_computers" WHERE "number_of_cp_us"='1–6';
```
## Task
Generate a SQL query to answer the following question:
`Which Fuel Type that has a mpg-US Extra-Urban larger than 53.5, and a mpg-US Combined larger than 50 from renault?`

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

CREATE TABLE "see_also" (
  "manufacturer" text,
  "model" text,
  "transmission" text,
  "engine_capacity" text,
  "fuel_type" text,
  "l_100km_urban_cold" real,
  "l_100km_extra_urban" real,
  "l_100km_combined" real,
  "mpg_uk_urban_cold" real,
  "mpg_uk_extra_urban" real,
  "mpg_uk_combined" real,
  "mpg_us_urban" real,
  "mpg_us_extra_urban" real,
  "mpg_us_combined" real,
  "co_2_g_km" real,
  "green_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Fuel Type that has a mpg-US Extra-Urban larger than 53.5, and a mpg-US Combined larger than 50 from renault?`:
```sql
                SELECT "fuel_type" FROM "see_also" WHERE "mpg_us_extra_urban">53.5 AND "mpg_us_combined">50 AND "manufacturer"='renault';
```
## Task
Generate a SQL query to answer the following question:
`What is the Country of the Rowers with a Rank larger than 4 and Time of 5:59.56?`

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

CREATE TABLE "semifinal_a_b_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Country of the Rowers with a Rank larger than 4 and Time of 5:59.56?`:
```sql
                SELECT "country" FROM "semifinal_a_b_1" WHERE "rank">4 AND "time"='5:59.56';
```
## Task
Generate a SQL query to answer the following question:
`What is the Time of the Belarus Player with a Rank larger than 2 and Notes of FB?`

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

CREATE TABLE "semifinal_a_b_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time of the Belarus Player with a Rank larger than 2 and Notes of FB?`:
```sql
                SELECT "time" FROM "semifinal_a_b_1" WHERE "rank">2 AND "notes"='fb' AND "country"='belarus';
```
## Task
Generate a SQL query to answer the following question:
`What is the Time of the Player with a Rank of 1 or 2 and Notes of FA?`

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

CREATE TABLE "semifinal_a_b_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time of the Player with a Rank of 1 or 2 and Notes of FA?`:
```sql
                SELECT "time" FROM "semifinal_a_b_1" WHERE "notes"='fa' AND "rank"<2;
```
## Task
Generate a SQL query to answer the following question:
`Who are the Rowers from Poland?`

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

CREATE TABLE "semifinal_a_b_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the Rowers from Poland?`:
```sql
                SELECT "rowers" FROM "semifinal_a_b_1" WHERE "country"='poland';
```
## Task
Generate a SQL query to answer the following question:
`Who are the Rowers with a Time of 5:56.38?`

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

CREATE TABLE "semifinal_a_b_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the Rowers with a Time of 5:56.38?`:
```sql
                SELECT "rowers" FROM "semifinal_a_b_1" WHERE "time"='5:56.38';
```
## Task
Generate a SQL query to answer the following question:
`What's the release date for Claws For Alarm who has a director of Charles M. Jones, no reissue, and a production number less than 1323?`

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

CREATE TABLE "1954" (
  "title" text,
  "series" text,
  "director" text,
  "production_number" real,
  "release_date" text,
  "reissue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the release date for Claws For Alarm who has a director of Charles M. Jones, no reissue, and a production number less than 1323?`:
```sql
                SELECT "release_date" FROM "1954" WHERE "production_number"<1323 AND "reissue"='no' AND "director"='charles m. jones' AND "title"='claws for alarm';
```
## Task
Generate a SQL query to answer the following question:
`What's the title of the film with the release date of 1954-12-18?`

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

CREATE TABLE "1954" (
  "title" text,
  "series" text,
  "director" text,
  "production_number" real,
  "release_date" text,
  "reissue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title of the film with the release date of 1954-12-18?`:
```sql
                SELECT "title" FROM "1954" WHERE "release_date"='1954-12-18';
```
## Task
Generate a SQL query to answer the following question:
`Was there a reissue with a release date of 1954-09-04 having a production number more than 1289 and a director of Robert McKimson?`

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

CREATE TABLE "1954" (
  "title" text,
  "series" text,
  "director" text,
  "production_number" real,
  "release_date" text,
  "reissue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Was there a reissue with a release date of 1954-09-04 having a production number more than 1289 and a director of Robert McKimson?`:
```sql
                SELECT "reissue" FROM "1954" WHERE "director"='robert mckimson' AND "production_number">1289 AND "release_date"='1954-09-04';
```
## Task
Generate a SQL query to answer the following question:
`What is the production number for Bell Hoppy in the MM Series?`

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

CREATE TABLE "1954" (
  "title" text,
  "series" text,
  "director" text,
  "production_number" real,
  "release_date" text,
  "reissue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production number for Bell Hoppy in the MM Series?`:
```sql
                SELECT COUNT("production_number") FROM "1954" WHERE "series"='mm' AND "title"='bell hoppy';
```
## Task
Generate a SQL query to answer the following question:
`How much Scored has Losses smaller than 0?`

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

CREATE TABLE "torneo_clausura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Scored has Losses smaller than 0?`:
```sql
                SELECT SUM("scored") FROM "torneo_clausura" WHERE "losses"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Wins have Losses smaller than 6, and a Position of 4, and Played larger than 9?`

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

CREATE TABLE "torneo_clausura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Wins have Losses smaller than 6, and a Position of 4, and Played larger than 9?`:
```sql
                SELECT MIN("wins") FROM "torneo_clausura" WHERE "losses"<6 AND "position"=4 AND "played">9;
```
## Task
Generate a SQL query to answer the following question:
`How much Conceded has Wins smaller than 3, and Points larger than 11?`

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

CREATE TABLE "torneo_clausura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Conceded has Wins smaller than 3, and Points larger than 11?`:
```sql
                SELECT COUNT("conceded") FROM "torneo_clausura" WHERE "wins"<3 AND "points">11;
```
## Task
Generate a SQL query to answer the following question:
`Which Draws has Points smaller than 15, and a Conceded larger than 10, and a Position larger than 8, and Wins of 1?`

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

CREATE TABLE "torneo_clausura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Draws has Points smaller than 15, and a Conceded larger than 10, and a Position larger than 8, and Wins of 1?`:
```sql
                SELECT MIN("draws") FROM "torneo_clausura" WHERE "points"<15 AND "conceded">10 AND "position">8 AND "wins"=1;
```
## Task
Generate a SQL query to answer the following question:
`How many losses have 11 points?`

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

CREATE TABLE "torneo_clausura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses have 11 points?`:
```sql
                SELECT COUNT("losses") FROM "torneo_clausura" WHERE "points"=11;
```
## Task
Generate a SQL query to answer the following question:
`What is the song title sung by Sonu Nigam with lyricists of Dev Kohli/Biddu, and number over 8?`

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

CREATE TABLE "song_list" (
  "number" real,
  "song_title" text,
  "lyricist" text,
  "singer_s" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the song title sung by Sonu Nigam with lyricists of Dev Kohli/Biddu, and number over 8?`:
```sql
                SELECT "song_title" FROM "song_list" WHERE "singer_s"='sonu nigam' AND "lyricist"='dev kohli/biddu' AND "number">8;
```
## Task
Generate a SQL query to answer the following question:
`Who was the singer for the song numbered 3, with lyricist Dev Kohli?`

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

CREATE TABLE "song_list" (
  "number" real,
  "song_title" text,
  "lyricist" text,
  "singer_s" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the singer for the song numbered 3, with lyricist Dev Kohli?`:
```sql
                SELECT "singer_s" FROM "song_list" WHERE "lyricist"='dev kohli' AND "number"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number for the song "O Sudha"?`

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

CREATE TABLE "song_list" (
  "number" real,
  "song_title" text,
  "lyricist" text,
  "singer_s" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number for the song "O Sudha"?`:
```sql
                SELECT AVG("number") FROM "song_list" WHERE "song_title"='o sudha';
```
## Task
Generate a SQL query to answer the following question:
`What is the average length for the song "Ma Ke Jaisi"?`

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

CREATE TABLE "song_list" (
  "number" real,
  "song_title" text,
  "lyricist" text,
  "singer_s" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average length for the song "Ma Ke Jaisi"?`:
```sql
                SELECT "length" FROM "song_list" WHERE "song_title"='ma ke jaisi';
```
## Task
Generate a SQL query to answer the following question:
`Who had fa cup goals of 0, league cup goals less than 2, and total goals of 2?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" real,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who had fa cup goals of 0, league cup goals less than 2, and total goals of 2?`:
```sql
                SELECT "name" FROM "appearances_and_goals" WHERE "fa_cup_goals"=0 AND "league_cup_goals"<2 AND "total_goals"=2;
```
## Task
Generate a SQL query to answer the following question:
`what is the fa cup goals when total apps is 10 (4)?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" real,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the fa cup goals when total apps is 10 (4)?`:
```sql
                SELECT SUM("fa_cup_goals") FROM "appearances_and_goals" WHERE "total_apps"='10 (4)';
```
## Task
Generate a SQL query to answer the following question:
`how many times is the fa cup apps more than 0, the position mf and the league goals 4?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" real,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the fa cup apps more than 0, the position mf and the league goals 4?`:
```sql
                SELECT COUNT("total_goals") FROM "appearances_and_goals" WHERE "fa_cup_apps">0 AND "position"='mf' AND "league_goals"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the district with more than 1,246,756 electorates and a constituency number of 191?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the district with more than 1,246,756 electorates and a constituency number of 191?`:
```sql
                SELECT "district" FROM "assembly_segments" WHERE "number_of_electorates_2009">'1,246,756' AND "constituency_number"='191';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of electorates in 2009 with a constituency of 193?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of electorates in 2009 with a constituency of 193?`:
```sql
                SELECT COUNT("number_of_electorates_2009") FROM "assembly_segments" WHERE "constituency_number"='193';
```
## Task
Generate a SQL query to answer the following question:
`What is the reserved for the constituency of 192?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the reserved for the constituency of 192?`:
```sql
                SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "constituency_number"='192';
```
## Task
Generate a SQL query to answer the following question:
`Which Artist has a Percentage of 11.32%?`

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

CREATE TABLE "results_of_heat_9" (
  "draw" real,
  "artist" text,
  "song" text,
  "percentage" text,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Artist has a Percentage of 11.32%?`:
```sql
                SELECT "artist" FROM "results_of_heat_9" WHERE "percentage"='11.32%';
```
## Task
Generate a SQL query to answer the following question:
`What is the week for November 28, 1982?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week for November 28, 1982?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "date"='november 28, 1982';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance number when the result is l 41-37?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance number when the result is l 41-37?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "result"='l 41-37';
```