cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the date for the row with a new entries this round of 44?`

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

CREATE TABLE "calendar" (
  "round" text,
  "date" text,
  "matches" real,
  "clubs" text,
  "new_entries_this_round" text,
  "prize_money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the row with a new entries this round of 44?`:
```sql
                SELECT "date" FROM "calendar" WHERE "new_entries_this_round"='44';
```
## Task
Generate a SQL query to answer the following question:
`Which Against has Wins of 11, and Losses smaller than 7?`

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

CREATE TABLE "2012_ladder" (
  "hampden_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Against has Wins of 11, and Losses smaller than 7?`:
```sql
                SELECT AVG("against") FROM "2012_ladder" WHERE "wins"=11 AND "losses"<7;
```
## Task
Generate a SQL query to answer the following question:
`Which Draws have Losses larger than 8, and a Hampden FL of terang-mortlake?`

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

CREATE TABLE "2012_ladder" (
  "hampden_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Draws have Losses larger than 8, and a Hampden FL of terang-mortlake?`:
```sql
                SELECT "draws" FROM "2012_ladder" WHERE "losses">8 AND "hampden_fl"='terang-mortlake';
```
## Task
Generate a SQL query to answer the following question:
`Which Byes have Losses smaller than 4?`

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

CREATE TABLE "2012_ladder" (
  "hampden_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Byes have Losses smaller than 4?`:
```sql
                SELECT AVG("byes") FROM "2012_ladder" WHERE "losses"<4;
```
## Task
Generate a SQL query to answer the following question:
`What's the total draws when the losses are less than 10, less than 2 byes, and 13 wins?`

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

CREATE TABLE "2010_ladder" (
  "wimmera_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total draws when the losses are less than 10, less than 2 byes, and 13 wins?`:
```sql
                SELECT COUNT("draws") FROM "2010_ladder" WHERE "losses"<10 AND "wins"=13 AND "byes"<2;
```
## Task
Generate a SQL query to answer the following question:
`What's the total draws for Ararat when the byes are less than 2?`

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

CREATE TABLE "2010_ladder" (
  "wimmera_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total draws for Ararat when the byes are less than 2?`:
```sql
                SELECT SUM("draws") FROM "2010_ladder" WHERE "wimmera_fl"='ararat' AND "byes"<2;
```
## Task
Generate a SQL query to answer the following question:
`What's the total losses when there are 8 wins and less than 2 byes?`

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

CREATE TABLE "2010_ladder" (
  "wimmera_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total losses when there are 8 wins and less than 2 byes?`:
```sql
                SELECT SUM("losses") FROM "2010_ladder" WHERE "wins"=8 AND "byes"<2;
```
## Task
Generate a SQL query to answer the following question:
`What's the least losses for Horsham Saints with more than 13 wins and less than 1211 against?`

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

CREATE TABLE "2010_ladder" (
  "wimmera_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the least losses for Horsham Saints with more than 13 wins and less than 1211 against?`:
```sql
                SELECT MIN("losses") FROM "2010_ladder" WHERE "against"<1211 AND "wimmera_fl"='horsham saints' AND "wins">13;
```
## Task
Generate a SQL query to answer the following question:
`What are the draws when the losses are less than 1?`

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

CREATE TABLE "2010_ladder" (
  "wimmera_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the draws when the losses are less than 1?`:
```sql
                SELECT SUM("draws") FROM "2010_ladder" WHERE "losses"<1;
```
## Task
Generate a SQL query to answer the following question:
`What are the amount of wins when the draws are less than 0 and the against is 1348?`

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

CREATE TABLE "2010_ladder" (
  "wimmera_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the amount of wins when the draws are less than 0 and the against is 1348?`:
```sql
                SELECT MIN("wins") FROM "2010_ladder" WHERE "against"=1348 AND "draws"<0;
```
## Task
Generate a SQL query to answer the following question:
`What was the total city area for vehari city with a serial number bigger than 36?`

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

CREATE TABLE "punjab" (
  "serial_no" real,
  "district" text,
  "headquartered_city" text,
  "city_population_2009" real,
  "city_area_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total city area for vehari city with a serial number bigger than 36?`:
```sql
                SELECT COUNT("city_area_km_2") FROM "punjab" WHERE "headquartered_city"='vehari city' AND "serial_no">36;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest city population for the district of rajanpur district with a area of 6 km squared and a serial number less than 29?`

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

CREATE TABLE "punjab" (
  "serial_no" real,
  "district" text,
  "headquartered_city" text,
  "city_population_2009" real,
  "city_area_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest city population for the district of rajanpur district with a area of 6 km squared and a serial number less than 29?`:
```sql
                SELECT MIN("city_population_2009") FROM "punjab" WHERE "city_area_km_2"=6 AND "district"='rajanpur district' AND "serial_no"<29;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the serial numbers for narowal city?`

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

CREATE TABLE "punjab" (
  "serial_no" real,
  "district" text,
  "headquartered_city" text,
  "city_population_2009" real,
  "city_area_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the serial numbers for narowal city?`:
```sql
                SELECT SUM("serial_no") FROM "punjab" WHERE "headquartered_city"='narowal city';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the area for the bahawalnagar district with a population more than 134,936?`

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

CREATE TABLE "punjab" (
  "serial_no" real,
  "district" text,
  "headquartered_city" text,
  "city_population_2009" real,
  "city_area_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the area for the bahawalnagar district with a population more than 134,936?`:
```sql
                SELECT SUM("city_area_km_2") FROM "punjab" WHERE "district"='bahawalnagar district' AND "city_population_2009">'134,936';
```
## Task
Generate a SQL query to answer the following question:
`What district was the city with an area smaller than 12 square kilometers and a serial number of 35?`

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

CREATE TABLE "punjab" (
  "serial_no" real,
  "district" text,
  "headquartered_city" text,
  "city_population_2009" real,
  "city_area_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What district was the city with an area smaller than 12 square kilometers and a serial number of 35?`:
```sql
                SELECT "district" FROM "punjab" WHERE "city_area_km_2"<12 AND "serial_no"=35;
```
## Task
Generate a SQL query to answer the following question:
`After pick number 158, what is the next round a USC player was picked?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `After pick number 158, what is the next round a USC player was picked?`:
```sql
                SELECT MIN("round") FROM "nfl_draft" WHERE "school"='usc' AND "pick">158;
```
## Task
Generate a SQL query to answer the following question:
`Jim Obradovich, picked after round 2, but before pick 183, plays what position?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `Jim Obradovich, picked after round 2, but before pick 183, plays what position?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "round">2 AND "pick"<183 AND "player"='jim obradovich';
```
## Task
Generate a SQL query to answer the following question:
`What time has q as the notes, and Australia as the country?`

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

CREATE TABLE "heat_5" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time has q as the notes, and Australia as the country?`:
```sql
                SELECT "time" FROM "heat_5" WHERE "notes"='q' AND "country"='australia';
```
## Task
Generate a SQL query to answer the following question:
`What notes have a rank greater than 2, with mexico as the country?`

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

CREATE TABLE "heat_5" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What notes have a rank greater than 2, with mexico as the country?`:
```sql
                SELECT "notes" FROM "heat_5" WHERE "rank">2 AND "country"='mexico';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of bronzes for teams with more than 0 silver and a total under 1?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of bronzes for teams with more than 0 silver and a total under 1?`:
```sql
                SELECT SUM("bronze") FROM "medal_table" WHERE "silver">0 AND "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of golds for teams with 1 bronze, less than 3 silver, and a total over 2?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of golds for teams with 1 bronze, less than 3 silver, and a total over 2?`:
```sql
                SELECT AVG("gold") FROM "medal_table" WHERE "bronze"=1 AND "total">2 AND "silver"<3;
```
## Task
Generate a SQL query to answer the following question:
`What type of yacht has a LOA of 15.15 metres?`

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

CREATE TABLE "handicap_results_top_10" (
  "position" real,
  "sail_number" text,
  "yacht" text,
  "state_country" text,
  "yacht_type" text,
  "loa_metres" real,
  "skipper" text,
  "corrected_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of yacht has a LOA of 15.15 metres?`:
```sql
                SELECT "yacht_type" FROM "handicap_results_top_10" WHERE "loa_metres"=15.15;
```
## Task
Generate a SQL query to answer the following question:
`What Soap Opera with the character Teemu Luotola?`

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

CREATE TABLE "finland" (
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Soap Opera with the character Teemu Luotola?`:
```sql
                SELECT "soap_opera" FROM "finland" WHERE "character"='teemu luotola';
```
## Task
Generate a SQL query to answer the following question:
`What beer has a record of 4.08?`

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

CREATE TABLE "pure_alcohol_consumption_among_adults_ag" (
  "country" text,
  "recorded" real,
  "unrecorded" real,
  "total" real,
  "beer" real,
  "wine" real,
  "spirits" real,
  "other" real
);
### SQL
Given the database schema, here is the SQL query that answers `What beer has a record of 4.08?`:
```sql
                SELECT "beer" FROM "pure_alcohol_consumption_among_adults_ag" WHERE "recorded"=4.08;
```
## Task
Generate a SQL query to answer the following question:
`Which round has an Opposing Team of manchester united?`

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

CREATE TABLE "fa_cup" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round has an Opposing Team of manchester united?`:
```sql
                SELECT "round" FROM "fa_cup" WHERE "opposing_team"='manchester united';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has an Against larger than 0?`

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

CREATE TABLE "fa_cup" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has an Against larger than 0?`:
```sql
                SELECT "date" FROM "fa_cup" WHERE "against">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Against has a Round of fourth round?`

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

CREATE TABLE "fa_cup" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Against has a Round of fourth round?`:
```sql
                SELECT MIN("against") FROM "fa_cup" WHERE "round"='fourth round';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue on 17/02/2008?`

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

CREATE TABLE "fa_cup" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue on 17/02/2008?`:
```sql
                SELECT "venue" FROM "fa_cup" WHERE "date"='17/02/2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the average quantity for coaches manufactured in 1921/23, and had 40 seats?`

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

CREATE TABLE "iron_coaches" (
  "class_to_1928" text,
  "class_from_1928" text,
  "seats" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "remarks" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average quantity for coaches manufactured in 1921/23, and had 40 seats?`:
```sql
                SELECT AVG("quantity") FROM "iron_coaches" WHERE "year_s_of_manufacture"='1921/23' AND "seats"='40';
```
## Task
Generate a SQL query to answer the following question:
`Which class to 1928 value had years of manufacture of 1921/23 and class from 1928 of BCi-21?`

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

CREATE TABLE "iron_coaches" (
  "class_to_1928" text,
  "class_from_1928" text,
  "seats" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "remarks" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which class to 1928 value had years of manufacture of 1921/23 and class from 1928 of BCi-21?`:
```sql
                SELECT "class_to_1928" FROM "iron_coaches" WHERE "year_s_of_manufacture"='1921/23' AND "class_from_1928"='bci-21';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest quantity having a Class to 1928 of BDi-21?`

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

CREATE TABLE "iron_coaches" (
  "class_to_1928" text,
  "class_from_1928" text,
  "seats" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "remarks" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest quantity having a Class to 1928 of BDi-21?`:
```sql
                SELECT MIN("quantity") FROM "iron_coaches" WHERE "class_to_1928"='bdi-21';
```
## Task
Generate a SQL query to answer the following question:
`Which class from 1928 had a class to 1928 of BDi-21?`

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

CREATE TABLE "iron_coaches" (
  "class_to_1928" text,
  "class_from_1928" text,
  "seats" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "remarks" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which class from 1928 had a class to 1928 of BDi-21?`:
```sql
                SELECT "class_from_1928" FROM "iron_coaches" WHERE "class_to_1928"='bdi-21';
```
## Task
Generate a SQL query to answer the following question:
`What were the remarks for the coach having a class from 1928 of Cid-21B?`

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

CREATE TABLE "iron_coaches" (
  "class_to_1928" text,
  "class_from_1928" text,
  "seats" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "remarks" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the remarks for the coach having a class from 1928 of Cid-21B?`:
```sql
                SELECT "remarks" FROM "iron_coaches" WHERE "class_from_1928"='cid-21b';
```
## Task
Generate a SQL query to answer the following question:
`Which B Score has a Total larger than 15.325, and an A Score smaller than 6.4?`

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

CREATE TABLE "qualified_competitors" (
  "position" real,
  "gymnast" text,
  "a_score" real,
  "b_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which B Score has a Total larger than 15.325, and an A Score smaller than 6.4?`:
```sql
                SELECT SUM("b_score") FROM "qualified_competitors" WHERE "total">15.325 AND "a_score"<6.4;
```
## Task
Generate a SQL query to answer the following question:
`Which Total has an A Score of 6.5, and a Position larger than 5?`

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

CREATE TABLE "qualified_competitors" (
  "position" real,
  "gymnast" text,
  "a_score" real,
  "b_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has an A Score of 6.5, and a Position larger than 5?`:
```sql
                SELECT MIN("total") FROM "qualified_competitors" WHERE "a_score"=6.5 AND "position">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the date of week 11?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of week 11?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=11;
```
## Task
Generate a SQL query to answer the following question:
`What is the latest week when the chicago bears are the opponent?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest week when the chicago bears are the opponent?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "opponent"='chicago bears';
```
## Task
Generate a SQL query to answer the following question:
`What song placed higher than#4?`

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

CREATE TABLE "results_of_heat_3" (
  "draw" real,
  "artist" text,
  "song" text,
  "percentage" text,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What song placed higher than#4?`:
```sql
                SELECT "song" FROM "results_of_heat_3" WHERE "place">4;
```
## Task
Generate a SQL query to answer the following question:
`Who is the artist that drew higher than 4?`

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

CREATE TABLE "results_of_heat_3" (
  "draw" real,
  "artist" text,
  "song" text,
  "percentage" text,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the artist that drew higher than 4?`:
```sql
                SELECT "artist" FROM "results_of_heat_3" WHERE "draw">4;
```
## Task
Generate a SQL query to answer the following question:
`What's the total starts with more points than 1 and the driver is Nasser Al-Attiyah?`

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

CREATE TABLE "drivers" (
  "driver" text,
  "starts" real,
  "finishes" real,
  "wins" real,
  "podiums" real,
  "stage_wins" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total starts with more points than 1 and the driver is Nasser Al-Attiyah?`:
```sql
                SELECT COUNT("starts") FROM "drivers" WHERE "driver"='nasser al-attiyah' AND "points">1;
```
## Task
Generate a SQL query to answer the following question:
`What's the smallest number of podiums having more than 6 starts and 5 finishes?`

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

CREATE TABLE "drivers" (
  "driver" text,
  "starts" real,
  "finishes" real,
  "wins" real,
  "podiums" real,
  "stage_wins" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest number of podiums having more than 6 starts and 5 finishes?`:
```sql
                SELECT MIN("podiums") FROM "drivers" WHERE "finishes"=5 AND "starts">6;
```
## Task
Generate a SQL query to answer the following question:
`What's the number of stage wins for Federico Villagra having more than 1 finish, less than 8 starts and less than 1 podium?`

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

CREATE TABLE "drivers" (
  "driver" text,
  "starts" real,
  "finishes" real,
  "wins" real,
  "podiums" real,
  "stage_wins" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of stage wins for Federico Villagra having more than 1 finish, less than 8 starts and less than 1 podium?`:
```sql
                SELECT COUNT("stage_wins") FROM "drivers" WHERE "finishes">1 AND "podiums"<1 AND "driver"='federico villagra' AND "starts"<8;
```
## Task
Generate a SQL query to answer the following question:
`What's the finishes for Lambros Athanassoulas having 0 podiums and 0 stage wins?`

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

CREATE TABLE "drivers" (
  "driver" text,
  "starts" real,
  "finishes" real,
  "wins" real,
  "podiums" real,
  "stage_wins" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the finishes for Lambros Athanassoulas having 0 podiums and 0 stage wins?`:
```sql
                SELECT SUM("finishes") FROM "drivers" WHERE "podiums"=0 AND "stage_wins"=0 AND "driver"='lambros athanassoulas';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of electorates (2003) reserved for sc with a constituency number of 50?`

### 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_2003" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of electorates (2003) reserved for sc with a constituency number of 50?`:
```sql
                SELECT AVG("number_of_electorates_2003") FROM "assembly_segments" WHERE "reserved_for_sc_st_none"='sc' AND "constituency_number"='50';
```
## Task
Generate a SQL query to answer the following question:
`Which Finals have a Pre-Season larger than 0?`

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

CREATE TABLE "goal_scorers" (
  "name" text,
  "pre_season" real,
  "a_league" real,
  "finals" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Finals have a Pre-Season larger than 0?`:
```sql
                SELECT MIN("finals") FROM "goal_scorers" WHERE "pre_season">0;
```
## Task
Generate a SQL query to answer the following question:
`How much A-League has a Pre-Season larger than 0?`

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

CREATE TABLE "goal_scorers" (
  "name" text,
  "pre_season" real,
  "a_league" real,
  "finals" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much A-League has a Pre-Season larger than 0?`:
```sql
                SELECT COUNT("a_league") FROM "goal_scorers" WHERE "pre_season">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the last issue entry for Aron's Absurd Armada?`

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

CREATE TABLE "serialized_titles" (
  "title" text,
  "author" text,
  "first_issue" text,
  "last_issue" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the last issue entry for Aron's Absurd Armada?`:
```sql
                SELECT "last_issue" FROM "serialized_titles" WHERE "title"='aron''s absurd armada';
```
## Task
Generate a SQL query to answer the following question:
`What is the title that was first published in August 2010?`

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

CREATE TABLE "serialized_titles" (
  "title" text,
  "author" text,
  "first_issue" text,
  "last_issue" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title that was first published in August 2010?`:
```sql
                SELECT "title" FROM "serialized_titles" WHERE "first_issue"='august 2010';
```
## Task
Generate a SQL query to answer the following question:
`What is the completed entry for Aron's Absurd Armada?`

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

CREATE TABLE "serialized_titles" (
  "title" text,
  "author" text,
  "first_issue" text,
  "last_issue" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the completed entry for Aron's Absurd Armada?`:
```sql
                SELECT "completed" FROM "serialized_titles" WHERE "title"='aron''s absurd armada';
```
## Task
Generate a SQL query to answer the following question:
`What is the title that was first published in February 2009 and is still ongoing?`

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

CREATE TABLE "serialized_titles" (
  "title" text,
  "author" text,
  "first_issue" text,
  "last_issue" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title that was first published in February 2009 and is still ongoing?`:
```sql
                SELECT "title" FROM "serialized_titles" WHERE "last_issue"='ongoing' AND "first_issue"='february 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the last issue entry of Time and Again?`

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

CREATE TABLE "serialized_titles" (
  "title" text,
  "author" text,
  "first_issue" text,
  "last_issue" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the last issue entry of Time and Again?`:
```sql
                SELECT "last_issue" FROM "serialized_titles" WHERE "title"='time and again';
```
## Task
Generate a SQL query to answer the following question:
`What the rank of the Virgin Islands athlete with react under 0.168?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What the rank of the Virgin Islands athlete with react under 0.168?`:
```sql
                SELECT "rank" FROM "semifinal_1" WHERE "react"<0.168 AND "nationality"='virgin islands';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank for Chris Brown with react greater than 0.244?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank for Chris Brown with react greater than 0.244?`:
```sql
                SELECT MIN("rank") FROM "semifinal_1" WHERE "athlete"='chris brown' AND "react">0.244;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank of an athlete from Belgium with react greater than 0.162?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank of an athlete from Belgium with react greater than 0.162?`:
```sql
                SELECT MAX("rank") FROM "semifinal_1" WHERE "nationality"='belgium' AND "react">0.162;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of partners for the firm with a rank under 71, other over 77, and largest city of Philadelphia?`

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

CREATE TABLE "see_also" (
  "rank" real,
  "largest_u_s_city" text,
  "total" real,
  "partners" real,
  "other" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of partners for the firm with a rank under 71, other over 77, and largest city of Philadelphia?`:
```sql
                SELECT AVG("partners") FROM "see_also" WHERE "rank"<71 AND "largest_u_s_city"='philadelphia' AND "other">77;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest rank for the city having partners of 342, other under 147, and largest city of Cleveland?`

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

CREATE TABLE "see_also" (
  "rank" real,
  "largest_u_s_city" text,
  "total" real,
  "partners" real,
  "other" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest rank for the city having partners of 342, other under 147, and largest city of Cleveland?`:
```sql
                SELECT MIN("rank") FROM "see_also" WHERE "partners"=342 AND "largest_u_s_city"='cleveland' AND "other"<147;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of partners for the city ranked under 294, total over 264, largest city of Chicago, and other over 46?`

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

CREATE TABLE "see_also" (
  "rank" real,
  "largest_u_s_city" text,
  "total" real,
  "partners" real,
  "other" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of partners for the city ranked under 294, total over 264, largest city of Chicago, and other over 46?`:
```sql
                SELECT "partners" FROM "see_also" WHERE "rank"<294 AND "total">264 AND "largest_u_s_city"='chicago' AND "other">46;
```
## Task
Generate a SQL query to answer the following question:
`What's the 2008 that has 3.4 in 2009 and more than 2.9 in 2005?`

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

CREATE TABLE "popularity_of_terrestrial_tv_stations" (
  "tv_station_operator" text,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011_1_h" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2008 that has 3.4 in 2009 and more than 2.9 in 2005?`:
```sql
                SELECT MAX("2008") FROM "popularity_of_terrestrial_tv_stations" WHERE "2009"=3.4 AND "2005">2.9;
```
## Task
Generate a SQL query to answer the following question:
`What's the 2006 if there's less than 6.7 in 2007 and less than 3.4 in 2009?`

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

CREATE TABLE "popularity_of_terrestrial_tv_stations" (
  "tv_station_operator" text,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011_1_h" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2006 if there's less than 6.7 in 2007 and less than 3.4 in 2009?`:
```sql
                SELECT SUM("2006") FROM "popularity_of_terrestrial_tv_stations" WHERE "2007"<6.7 AND "2009"<3.4;
```
## Task
Generate a SQL query to answer the following question:
`What's the total in 2005 if there's more than 10.2 in 2006, less than 29.5 in 2007, more than 4.9 in 2009 and less than 43.8 in 2010?`

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

CREATE TABLE "popularity_of_terrestrial_tv_stations" (
  "tv_station_operator" text,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011_1_h" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total in 2005 if there's more than 10.2 in 2006, less than 29.5 in 2007, more than 4.9 in 2009 and less than 43.8 in 2010?`:
```sql
                SELECT COUNT("2005") FROM "popularity_of_terrestrial_tv_stations" WHERE "2010"<43.8 AND "2007"<29.5 AND "2009">4.9 AND "2006">10.2;
```
## Task
Generate a SQL query to answer the following question:
`What is the 2009 when there's 11.8 in 2005 and less than 12.6 in 2006?`

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

CREATE TABLE "popularity_of_terrestrial_tv_stations" (
  "tv_station_operator" text,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011_1_h" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2009 when there's 11.8 in 2005 and less than 12.6 in 2006?`:
```sql
                SELECT MIN("2009") FROM "popularity_of_terrestrial_tv_stations" WHERE "2005"=11.8 AND "2006"<12.6;
```
## Task
Generate a SQL query to answer the following question:
`What's the 2005 of TV3 when there is less than 42 in 2007 and less than 29.5 in 2010?`

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

CREATE TABLE "popularity_of_terrestrial_tv_stations" (
  "tv_station_operator" text,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011_1_h" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2005 of TV3 when there is less than 42 in 2007 and less than 29.5 in 2010?`:
```sql
                SELECT MAX("2005") FROM "popularity_of_terrestrial_tv_stations" WHERE "2007"<42 AND "tv_station_operator"='tv3' AND "2010"<29.5;
```
## Task
Generate a SQL query to answer the following question:
`What date had Alexander Krasnorutskiy as a partner with a score of 6–3, 4–6, 6–2?`

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

CREATE TABLE "wins_13" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date had Alexander Krasnorutskiy as a partner with a score of 6–3, 4–6, 6–2?`:
```sql
                SELECT "date" FROM "wins_13" WHERE "partner"='alexander krasnorutskiy' AND "score"='6–3, 4–6, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`Which IHSAA Class has a Mascot of eagles, and a City of evansville?`

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

CREATE TABLE "schools" (
  "school" text,
  "city" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which IHSAA Class has a Mascot of eagles, and a City of evansville?`:
```sql
                SELECT "ihsaa_class" FROM "schools" WHERE "mascot"='eagles' AND "city"='evansville';
```
## Task
Generate a SQL query to answer the following question:
`Which City has a School of indianapolis brebeuf?`

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

CREATE TABLE "schools" (
  "school" text,
  "city" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has a School of indianapolis brebeuf?`:
```sql
                SELECT "city" FROM "schools" WHERE "school"='indianapolis brebeuf';
```
## Task
Generate a SQL query to answer the following question:
`How much Enrollment has a School of indianapolis tindley?`

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

CREATE TABLE "schools" (
  "school" text,
  "city" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Enrollment has a School of indianapolis tindley?`:
```sql
                SELECT COUNT("enrollment") FROM "schools" WHERE "school"='indianapolis tindley';
```
## Task
Generate a SQL query to answer the following question:
`Which County has an IHSAA Class of aaaa, and a Mascot of cardinals?`

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

CREATE TABLE "schools" (
  "school" text,
  "city" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which County has an IHSAA Class of aaaa, and a Mascot of cardinals?`:
```sql
                SELECT "county" FROM "schools" WHERE "ihsaa_class"='aaaa' AND "mascot"='cardinals';
```
## Task
Generate a SQL query to answer the following question:
`How many Total Goals values have 0 League Cup Goals?`

### 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" text,
  "fa_cup_goals" real,
  "league_cup_apps" real,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Total Goals values have 0 League Cup Goals?`:
```sql
                SELECT COUNT("total_goals") FROM "appearances_and_goals" WHERE "league_cup_goals"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of FA Cup Goals for players with 4 FA Cup Appearances, 49 Total Appearances, and more than 17 total goals?`

### 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" text,
  "fa_cup_goals" real,
  "league_cup_apps" real,
  "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 smallest number of FA Cup Goals for players with 4 FA Cup Appearances, 49 Total Appearances, and more than 17 total goals?`:
```sql
                SELECT MIN("fa_cup_goals") FROM "appearances_and_goals" WHERE "fa_cup_apps"='4' AND "total_apps"='49' AND "total_goals">17;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of League Goals for palyers with 0 FA Cup Goals?`

### 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" text,
  "fa_cup_goals" real,
  "league_cup_apps" real,
  "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 average number of League Goals for palyers with 0 FA Cup Goals?`:
```sql
                SELECT AVG("league_goals") FROM "appearances_and_goals" WHERE "fa_cup_goals"<0;
```
## Task
Generate a SQL query to answer the following question:
`what is the highest silver when the total is 4 and bronze is less than 1?`

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

CREATE TABLE "world_championships_total_medals" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest silver when the total is 4 and bronze is less than 1?`:
```sql
                SELECT MAX("silver") FROM "world_championships_total_medals" WHERE "total"='4' AND "bronze"<1;
```
## Task
Generate a SQL query to answer the following question:
`what is the gold when the bronze is 1, total is 6 and silver is less than 3?`

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

CREATE TABLE "world_championships_total_medals" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the gold when the bronze is 1, total is 6 and silver is less than 3?`:
```sql
                SELECT SUM("gold") FROM "world_championships_total_medals" WHERE "bronze"=1 AND "total"='6' AND "silver"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is province of community with height larger than 1.8 and is in el cibao region?`

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

CREATE TABLE "delegates" (
  "province_community" text,
  "contestant" text,
  "height" real,
  "hometown" text,
  "geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is province of community with height larger than 1.8 and is in el cibao region?`:
```sql
                SELECT "province_community" FROM "delegates" WHERE "geographical_regions"='el cibao' AND "height">1.8;
```
## Task
Generate a SQL query to answer the following question:
`What contestant is from santo domingo este and has height smaller than 1.79?`

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

CREATE TABLE "delegates" (
  "province_community" text,
  "contestant" text,
  "height" real,
  "hometown" text,
  "geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What contestant is from santo domingo este and has height smaller than 1.79?`:
```sql
                SELECT "contestant" FROM "delegates" WHERE "height"<1.79 AND "hometown"='santo domingo este';
```
## Task
Generate a SQL query to answer the following question:
`What is total number of height of province, with community of com. dom. lto. America?`

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

CREATE TABLE "delegates" (
  "province_community" text,
  "contestant" text,
  "height" real,
  "hometown" text,
  "geographical_regions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is total number of height of province, with community of com. dom. lto. America?`:
```sql
                SELECT COUNT("height") FROM "delegates" WHERE "province_community"='com. dom. lto. america';
```
## Task
Generate a SQL query to answer the following question:
`what is the previous conference when the year joined is 1932 and the mascot is tigers?`

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

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" text,
  "year_joined" text,
  "previous_conference" text,
  "year_left" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the previous conference when the year joined is 1932 and the mascot is tigers?`:
```sql
                SELECT "previous_conference" FROM "former_members" WHERE "year_joined"='1932' AND "mascot"='tigers';
```