cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the option from Italy with general television content, and the Cielo television service?`

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

CREATE TABLE "entertainment" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the option from Italy with general television content, and the Cielo television service?`:
```sql
                SELECT "package_option" FROM "entertainment" WHERE "country"='italy' AND "content"='general television' AND "television_service"='cielo';
```
## Task
Generate a SQL query to answer the following question:
`What country has Tematico Content, and a package with sky TV and the Lei television service?`

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

CREATE TABLE "entertainment" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has Tematico Content, and a package with sky TV and the Lei television service?`:
```sql
                SELECT "country" FROM "entertainment" WHERE "content"='tematico' AND "package_option"='sky tv' AND "television_service"='lei';
```
## Task
Generate a SQL query to answer the following question:
`What is the television service that has package with sky tv, and it in Italian English?`

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

CREATE TABLE "entertainment" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the television service that has package with sky tv, and it in Italian English?`:
```sql
                SELECT "television_service" FROM "entertainment" WHERE "package_option"='sky tv' AND "language"='italian english';
```
## Task
Generate a SQL query to answer the following question:
`What language is the Tematico content with a sky tv package, and Fox Crime television service?`

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

CREATE TABLE "entertainment" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What language is the Tematico content with a sky tv package, and Fox Crime television service?`:
```sql
                SELECT "language" FROM "entertainment" WHERE "content"='tematico' AND "package_option"='sky tv' AND "television_service"='fox crime';
```
## Task
Generate a SQL query to answer the following question:
`What country has a television service with Cartello Promozionale sky hd?`

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

CREATE TABLE "entertainment" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a television service with Cartello Promozionale sky hd?`:
```sql
                SELECT "country" FROM "entertainment" WHERE "television_service"='cartello promozionale sky hd';
```
## Task
Generate a SQL query to answer the following question:
`What country has a Fox television service?`

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

CREATE TABLE "entertainment" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a Fox television service?`:
```sql
                SELECT "country" FROM "entertainment" WHERE "television_service"='fox';
```
## Task
Generate a SQL query to answer the following question:
`Who drove for Mathiasen Motorsports with dane cameron as pole position?`

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

CREATE TABLE "full_series_results" (
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who drove for Mathiasen Motorsports with dane cameron as pole position?`:
```sql
                SELECT "winning_driver" FROM "full_series_results" WHERE "winning_team"='mathiasen motorsports' AND "pole_position"='dane cameron';
```
## Task
Generate a SQL query to answer the following question:
`What winning team did Jonathan bomarito drive for when jonathan summerton had the fastest lap?`

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

CREATE TABLE "full_series_results" (
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What winning team did Jonathan bomarito drive for when jonathan summerton had the fastest lap?`:
```sql
                SELECT "winning_team" FROM "full_series_results" WHERE "winning_driver"='jonathan bomarito' AND "fastest_lap"='jonathan summerton';
```
## Task
Generate a SQL query to answer the following question:
`When Douglas Soares had the fastest lap, what was the report?`

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

CREATE TABLE "full_series_results" (
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Douglas Soares had the fastest lap, what was the report?`:
```sql
                SELECT "report" FROM "full_series_results" WHERE "fastest_lap"='douglas soares';
```
## Task
Generate a SQL query to answer the following question:
`When the winning team of mathiasen motorsports has a pole position of jonathan bomarito, who has the fastest lap?`

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

CREATE TABLE "full_series_results" (
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the winning team of mathiasen motorsports has a pole position of jonathan bomarito, who has the fastest lap?`:
```sql
                SELECT "fastest_lap" FROM "full_series_results" WHERE "winning_team"='mathiasen motorsports' AND "pole_position"='jonathan bomarito';
```
## Task
Generate a SQL query to answer the following question:
`When the driver jonathan summerton won and dane cameron had the fastest lap, what was the report?`

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

CREATE TABLE "full_series_results" (
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the driver jonathan summerton won and dane cameron had the fastest lap, what was the report?`:
```sql
                SELECT "report" FROM "full_series_results" WHERE "winning_driver"='jonathan summerton' AND "fastest_lap"='dane cameron';
```
## Task
Generate a SQL query to answer the following question:
`Which Year has a Competition of olympic games, and a Venue of atlanta, united states?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year has a Competition of olympic games, and a Venue of atlanta, united states?`:
```sql
                SELECT AVG("year") FROM "achievements" WHERE "competition"='olympic games' AND "venue"='atlanta, united states';
```
## Task
Generate a SQL query to answer the following question:
`Which Competition has a Year of 1993?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Competition has a Year of 1993?`:
```sql
                SELECT "competition" FROM "achievements" WHERE "year"=1993;
```
## Task
Generate a SQL query to answer the following question:
`Which Notes has a Competition of venice marathon?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Notes has a Competition of venice marathon?`:
```sql
                SELECT "notes" FROM "achievements" WHERE "competition"='venice marathon';
```
## Task
Generate a SQL query to answer the following question:
`Which Year has a Venue of atlanta, united states?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year has a Venue of atlanta, united states?`:
```sql
                SELECT "year" FROM "achievements" WHERE "venue"='atlanta, united states';
```
## Task
Generate a SQL query to answer the following question:
`Which Notes has a Venue of barcelona, spain?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Notes has a Venue of barcelona, spain?`:
```sql
                SELECT "notes" FROM "achievements" WHERE "venue"='barcelona, spain';
```
## Task
Generate a SQL query to answer the following question:
`Which Event has a Year of 1986?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Event has a Year of 1986?`:
```sql
                SELECT "event" FROM "achievements" WHERE "year"=1986;
```
## Task
Generate a SQL query to answer the following question:
`What is the average share for episodes with over 7.82 viewers, ranks of 3 and a weekly rank of 54?`

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

CREATE TABLE "u_s_nielsen_ratings" (
  "episode" text,
  "rating" real,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" real,
  "rank_timeslot" text,
  "rank_night" text,
  "rank_week" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average share for episodes with over 7.82 viewers, ranks of 3 and a weekly rank of 54?`:
```sql
                SELECT AVG("share") FROM "u_s_nielsen_ratings" WHERE "viewers_millions">7.82 AND "rank_timeslot"='3' AND "rank_week"='54';
```
## Task
Generate a SQL query to answer the following question:
`What is the weekly rank for the episode with a share over 7 and a rating/share of 2.3/7?`

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

CREATE TABLE "u_s_nielsen_ratings" (
  "episode" text,
  "rating" real,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" real,
  "rank_timeslot" text,
  "rank_night" text,
  "rank_week" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weekly rank for the episode with a share over 7 and a rating/share of 2.3/7?`:
```sql
                SELECT "rank_week" FROM "u_s_nielsen_ratings" WHERE "share">7 AND "rating_share_18_49"='2.3/7';
```
## Task
Generate a SQL query to answer the following question:
`What is the weekly rank of the episode with more than 7.14mil viewers, a nightly rank of 5, and a rating/share of 2.9/10?`

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

CREATE TABLE "u_s_nielsen_ratings" (
  "episode" text,
  "rating" real,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" real,
  "rank_timeslot" text,
  "rank_night" text,
  "rank_week" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weekly rank of the episode with more than 7.14mil viewers, a nightly rank of 5, and a rating/share of 2.9/10?`:
```sql
                SELECT "rank_week" FROM "u_s_nielsen_ratings" WHERE "viewers_millions">7.14 AND "rank_night"='5' AND "rating_share_18_49"='2.9/10';
```
## Task
Generate a SQL query to answer the following question:
`What is the total gain for Brandon Mcrae with a loss less than 4, and an Avg/g less than -0.1?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gp_gs" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total gain for Brandon Mcrae with a loss less than 4, and an Avg/g less than -0.1?`:
```sql
                SELECT COUNT("gain") FROM "rushing" WHERE "long"<4 AND "name"='brandon mcrae' AND "avg_g"<-0.1;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest long with a Gp-GS of 11-8, and a gain less than 228?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gp_gs" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest long with a Gp-GS of 11-8, and a gain less than 228?`:
```sql
                SELECT MIN("long") FROM "rushing" WHERE "gp_gs"='11-8' AND "gain"<228;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest gain with an 18 long, and a loss less than 191?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gp_gs" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest gain with an 18 long, and a loss less than 191?`:
```sql
                SELECT MIN("gain") FROM "rushing" WHERE "long"=18 AND "loss"<191;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of 1938 values where 1933 values are under 68.3 and 1940 valures are under 4.02?`

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

CREATE TABLE "relief" (
  "table_2_depression_data" text,
  "1929" real,
  "1931" real,
  "1933" real,
  "1937" real,
  "1938" real,
  "1940" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of 1938 values where 1933 values are under 68.3 and 1940 valures are under 4.02?`:
```sql
                SELECT SUM("1938") FROM "relief" WHERE "1933"<68.3 AND "1940"<4.02;
```
## Task
Generate a SQL query to answer the following question:
`What is the average 1940 value where 1929 values are 101.4 and 1933 values are over 68.3?`

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

CREATE TABLE "relief" (
  "table_2_depression_data" text,
  "1929" real,
  "1931" real,
  "1933" real,
  "1937" real,
  "1938" real,
  "1940" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average 1940 value where 1929 values are 101.4 and 1933 values are over 68.3?`:
```sql
                SELECT AVG("1940") FROM "relief" WHERE "1929"=101.4 AND "1933">68.3;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest 1937 value that has a 1940 value over 126?`

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

CREATE TABLE "relief" (
  "table_2_depression_data" text,
  "1929" real,
  "1931" real,
  "1933" real,
  "1937" real,
  "1938" real,
  "1940" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest 1937 value that has a 1940 value over 126?`:
```sql
                SELECT MAX("1937") FROM "relief" WHERE "1940">126;
```
## Task
Generate a SQL query to answer the following question:
`At what time is the ბრაზილიის უბანი shown?`

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

CREATE TABLE "telenovelas_currently_broadcasting" (
  "country" text,
  "telenovela" text,
  "translation" text,
  "series_premiere" text,
  "series_finale" text,
  "weekly_schedule" text,
  "timeslot" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what time is the ბრაზილიის უბანი shown?`:
```sql
                SELECT "timeslot" FROM "telenovelas_currently_broadcasting" WHERE "translation"='ბრაზილიის უბანი';
```
## Task
Generate a SQL query to answer the following question:
`What country was the series finale present and was shown Monday to Sunday at 18:45-21:00?`

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

CREATE TABLE "telenovelas_currently_broadcasting" (
  "country" text,
  "telenovela" text,
  "translation" text,
  "series_premiere" text,
  "series_finale" text,
  "weekly_schedule" text,
  "timeslot" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country was the series finale present and was shown Monday to Sunday at 18:45-21:00?`:
```sql
                SELECT "country" FROM "telenovelas_currently_broadcasting" WHERE "series_finale"='present' AND "weekly_schedule"='monday to sunday' AND "timeslot"='18:45-21:00';
```
## Task
Generate a SQL query to answer the following question:
`What series finale has the translation ოჰ ეს ცრემლები / პარალელური საიდუმლო?`

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

CREATE TABLE "telenovelas_currently_broadcasting" (
  "country" text,
  "telenovela" text,
  "translation" text,
  "series_premiere" text,
  "series_finale" text,
  "weekly_schedule" text,
  "timeslot" text
);
### SQL
Given the database schema, here is the SQL query that answers `What series finale has the translation ოჰ ეს ცრემლები / პარალელური საიდუმლო?`:
```sql
                SELECT "series_finale" FROM "telenovelas_currently_broadcasting" WHERE "translation"='ოჰ ეს ცრემლები / პარალელური საიდუმლო';
```
## Task
Generate a SQL query to answer the following question:
`What days of the week is the show aired on that runs at 16:45?`

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

CREATE TABLE "telenovelas_currently_broadcasting" (
  "country" text,
  "telenovela" text,
  "translation" text,
  "series_premiere" text,
  "series_finale" text,
  "weekly_schedule" text,
  "timeslot" text
);
### SQL
Given the database schema, here is the SQL query that answers `What days of the week is the show aired on that runs at 16:45?`:
```sql
                SELECT "weekly_schedule" FROM "telenovelas_currently_broadcasting" WHERE "timeslot"='16:45';
```
## Task
Generate a SQL query to answer the following question:
`Which days of the week does the telenovela play that is aired at 11:00?`

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

CREATE TABLE "telenovelas_currently_broadcasting" (
  "country" text,
  "telenovela" text,
  "translation" text,
  "series_premiere" text,
  "series_finale" text,
  "weekly_schedule" text,
  "timeslot" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which days of the week does the telenovela play that is aired at 11:00?`:
```sql
                SELECT "weekly_schedule" FROM "telenovelas_currently_broadcasting" WHERE "timeslot"='11:00';
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament was on 2 October 2006?`

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

CREATE TABLE "runners_up" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament was on 2 October 2006?`:
```sql
                SELECT "tournament" FROM "runners_up" WHERE "date"='2 october 2006';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Opponent in the final on 4 April 2011?`

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

CREATE TABLE "runners_up" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Opponent in the final on 4 April 2011?`:
```sql
                SELECT "opponent_in_the_final" FROM "runners_up" WHERE "date"='4 april 2011';
```
## Task
Generate a SQL query to answer the following question:
`What Surface was used on 2 June 2003?`

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

CREATE TABLE "runners_up" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Surface was used on 2 June 2003?`:
```sql
                SELECT "surface" FROM "runners_up" WHERE "date"='2 june 2003';
```
## Task
Generate a SQL query to answer the following question:
`Which award show nominated The Suite Life on Deck for the Teen Pick Show: Comedy category?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "recipient" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which award show nominated The Suite Life on Deck for the Teen Pick Show: Comedy category?`:
```sql
                SELECT "award" FROM "awards_and_nominations" WHERE "category"='teen pick show: comedy';
```
## Task
Generate a SQL query to answer the following question:
`Which award show nominated Cole Sprouse for the Favorite TV Actor category?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "recipient" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which award show nominated Cole Sprouse for the Favorite TV Actor category?`:
```sql
                SELECT "award" FROM "awards_and_nominations" WHERE "category"='favorite tv actor' AND "recipient"='cole sprouse';
```
## Task
Generate a SQL query to answer the following question:
`What category was The Suite Life on Deck nominated for later than 2010?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "recipient" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What category was The Suite Life on Deck nominated for later than 2010?`:
```sql
                SELECT "category" FROM "awards_and_nominations" WHERE "recipient"='the suite life on deck' AND "year">2010;
```
## Task
Generate a SQL query to answer the following question:
`Who won the 2010 Kids' Choice Awards?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "recipient" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the 2010 Kids' Choice Awards?`:
```sql
                SELECT "recipient" FROM "awards_and_nominations" WHERE "award"='2010 kids'' choice awards' AND "result"='won';
```
## Task
Generate a SQL query to answer the following question:
`What was the Rd. Time for October 3, 2009?`

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

CREATE TABLE "boxing_record" (
  "result" text,
  "opponent" text,
  "type" text,
  "rd_time" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Rd. Time for October 3, 2009?`:
```sql
                SELECT "rd_time" FROM "boxing_record" WHERE "date"='october 3, 2009';
```
## Task
Generate a SQL query to answer the following question:
`When was the Rd., Time 12 (12), 1:24?`

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

CREATE TABLE "boxing_record" (
  "result" text,
  "opponent" text,
  "type" text,
  "rd_time" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the Rd., Time 12 (12), 1:24?`:
```sql
                SELECT "date" FROM "boxing_record" WHERE "rd_time"='12 (12), 1:24';
```
## Task
Generate a SQL query to answer the following question:
`What is the greatest lost where played is less than 9?`

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

CREATE TABLE "apea_s_campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest lost where played is less than 9?`:
```sql
                SELECT MAX("lost") FROM "apea_s_campeonato_paulista" WHERE "played"<9;
```
## Task
Generate a SQL query to answer the following question:
`What is the greatest played with a drawn less than 1 and a position of less than 1?`

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

CREATE TABLE "apea_s_campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest played with a drawn less than 1 and a position of less than 1?`:
```sql
                SELECT MAX("played") FROM "apea_s_campeonato_paulista" WHERE "drawn"<1 AND "position"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest drawn when the points are less than 7 and the against greater than 31?`

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

CREATE TABLE "apea_s_campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest drawn when the points are less than 7 and the against greater than 31?`:
```sql
                SELECT MIN("drawn") FROM "apea_s_campeonato_paulista" WHERE "points"<7 AND "against">31;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the team that has 13 points?`

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

CREATE TABLE "apea_s_campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the team that has 13 points?`:
```sql
                SELECT "team" FROM "apea_s_campeonato_paulista" WHERE "points"=13;
```
## Task
Generate a SQL query to answer the following question:
`What was the Nominated Work earlier than 2003?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Nominated Work earlier than 2003?`:
```sql
                SELECT "nominated_work" FROM "awards_and_nominations" WHERE "year"<2003;
```
## Task
Generate a SQL query to answer the following question:
`Which method's event was flawless fighting championship 1: the beginning?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `Which method's event was flawless fighting championship 1: the beginning?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='flawless fighting championship 1: the beginning';
```
## Task
Generate a SQL query to answer the following question:
`Which method's opponent was chris clark?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `Which method's opponent was chris clark?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='chris clark';
```
## Task
Generate a SQL query to answer the following question:
`Which record's round was 3 when the event was fight festival 27?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `Which record's round was 3 when the event was fight festival 27?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "round"=3 AND "event"='fight festival 27';
```
## Task
Generate a SQL query to answer the following question:
`What is the Fourth place with a Year that is 1978?`

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

CREATE TABLE "yearly_results" (
  "year" real,
  "champion" text,
  "runner_up" text,
  "third_place" text,
  "fourth_place" text,
  "jack_tompkins_trophy_mvp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Fourth place with a Year that is 1978?`:
```sql
                SELECT "fourth_place" FROM "yearly_results" WHERE "year"=1978;
```
## Task
Generate a SQL query to answer the following question:
`What is the Fourth place with a Year that is 1966?`

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

CREATE TABLE "yearly_results" (
  "year" real,
  "champion" text,
  "runner_up" text,
  "third_place" text,
  "fourth_place" text,
  "jack_tompkins_trophy_mvp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Fourth place with a Year that is 1966?`:
```sql
                SELECT "fourth_place" FROM "yearly_results" WHERE "year"=1966;
```
## Task
Generate a SQL query to answer the following question:
`What is the Champion with a Year that is 2008?`

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

CREATE TABLE "yearly_results" (
  "year" real,
  "champion" text,
  "runner_up" text,
  "third_place" text,
  "fourth_place" text,
  "jack_tompkins_trophy_mvp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Champion with a Year that is 2008?`:
```sql
                SELECT "champion" FROM "yearly_results" WHERE "year"=2008;
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent for the game played on September 19, 1994?`

### 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 `Who was the opponent for the game played on September 19, 1994?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='september 19, 1994';
```
## Task
Generate a SQL query to answer the following question:
`In which week was attendance at 50,814?`

### 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 `In which week was attendance at 50,814?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "attendance"='50,814';
```
## Task
Generate a SQL query to answer the following question:
`What date after Week 6 was a Bye?`

### 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 date after Week 6 was a Bye?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week">6 AND "attendance"='bye';
```
## Task
Generate a SQL query to answer the following question:
`What subjunctive also has an inverse subjunctive of måchadns?`

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

CREATE TABLE "grammar" (
  "m_cha" text,
  "indicative" text,
  "imperative" text,
  "subjunctive" text,
  "inverse_subjunctive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What subjunctive also has an inverse subjunctive of måchadns?`:
```sql
                SELECT "subjunctive" FROM "grammar" WHERE "inverse_subjunctive"='måchadns';
```
## Task
Generate a SQL query to answer the following question:
`What imperative has måcha as 3.sg?`

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

CREATE TABLE "grammar" (
  "m_cha" text,
  "indicative" text,
  "imperative" text,
  "subjunctive" text,
  "inverse_subjunctive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What imperative has måcha as 3.sg?`:
```sql
                SELECT "imperative" FROM "grammar" WHERE "m_cha"='3.sg';
```
## Task
Generate a SQL query to answer the following question:
`The indicative of si måchan has what as the inverse subjunctive?`

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

CREATE TABLE "grammar" (
  "m_cha" text,
  "indicative" text,
  "imperative" text,
  "subjunctive" text,
  "inverse_subjunctive" text
);
### SQL
Given the database schema, here is the SQL query that answers `The indicative of si måchan has what as the inverse subjunctive?`:
```sql
                SELECT "inverse_subjunctive" FROM "grammar" WHERE "indicative"='si måchan';
```
## Task
Generate a SQL query to answer the following question:
`What inverse subjunctive has — as the imperative and a subjunctive of se måchadn?`

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

CREATE TABLE "grammar" (
  "m_cha" text,
  "indicative" text,
  "imperative" text,
  "subjunctive" text,
  "inverse_subjunctive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What inverse subjunctive has — as the imperative and a subjunctive of se måchadn?`:
```sql
                SELECT "inverse_subjunctive" FROM "grammar" WHERE "imperative"='—' AND "subjunctive"='se måchadn';
```
## Task
Generate a SQL query to answer the following question:
`With a subjunctive of du måchast what is the imperative?`

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

CREATE TABLE "grammar" (
  "m_cha" text,
  "indicative" text,
  "imperative" text,
  "subjunctive" text,
  "inverse_subjunctive" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a subjunctive of du måchast what is the imperative?`:
```sql
                SELECT "imperative" FROM "grammar" WHERE "subjunctive"='du måchast';
```
## Task
Generate a SQL query to answer the following question:
`What subjunctive has the indicative of se måchan(t)?`

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

CREATE TABLE "grammar" (
  "m_cha" text,
  "indicative" text,
  "imperative" text,
  "subjunctive" text,
  "inverse_subjunctive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What subjunctive has the indicative of se måchan(t)?`:
```sql
                SELECT "subjunctive" FROM "grammar" WHERE "indicative"='se måchan(t)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Win % in the Span of 2011–2013 with a Lost of less than 1?`

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

CREATE TABLE "result_summary" (
  "opposition" text,
  "span" text,
  "lost" real,
  "tied" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Win % in the Span of 2011–2013 with a Lost of less than 1?`:
```sql
                SELECT AVG("win_pct") FROM "result_summary" WHERE "span"='2011–2013' AND "lost"<1;
```
## Task
Generate a SQL query to answer the following question:
`How many games were Tied during the Span of 2011–2013 with a less than 80% Win %?`

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

CREATE TABLE "result_summary" (
  "opposition" text,
  "span" text,
  "lost" real,
  "tied" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were Tied during the Span of 2011–2013 with a less than 80% Win %?`:
```sql
                SELECT COUNT("tied") FROM "result_summary" WHERE "span"='2011–2013' AND "win_pct"<80;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Capacity that has 13.14% Annual change and Total Passengers larger than 15,499,462?`

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

CREATE TABLE "brazil_s_20_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity" real,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Capacity that has 13.14% Annual change and Total Passengers larger than 15,499,462?`:
```sql
                SELECT MAX("capacity") FROM "brazil_s_20_busiest_airports_by_passenge" WHERE "annual_change"='13.14%' AND "total_passengers">'15,499,462';
```
## Task
Generate a SQL query to answer the following question:
`Which Annual change has a Capacity in use of 66.21%?`

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

CREATE TABLE "brazil_s_20_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity" real,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Annual change has a Capacity in use of 66.21%?`:
```sql
                SELECT "annual_change" FROM "brazil_s_20_busiest_airports_by_passenge" WHERE "capacity_in_use"='66.21%';
```
## Task
Generate a SQL query to answer the following question:
`Which Rank that has a Total Passengers of 15,499,462?`

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

CREATE TABLE "brazil_s_20_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity" real,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank that has a Total Passengers of 15,499,462?`:
```sql
                SELECT COUNT("rank") FROM "brazil_s_20_busiest_airports_by_passenge" WHERE "total_passengers"='15,499,462';
```
## Task
Generate a SQL query to answer the following question:
`How many Capacity has a Annual change of 53.4% and Total Passengers smaller than 7,822,848?`

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

CREATE TABLE "brazil_s_20_busiest_airports_by_passenge" (
  "rank" real,
  "location" text,
  "total_passengers" real,
  "annual_change" text,
  "capacity" real,
  "capacity_in_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Capacity has a Annual change of 53.4% and Total Passengers smaller than 7,822,848?`:
```sql
                SELECT AVG("capacity") FROM "brazil_s_20_busiest_airports_by_passenge" WHERE "annual_change"='53.4%' AND "total_passengers"<'7,822,848';
```
## Task
Generate a SQL query to answer the following question:
`On what date were sheets issued in Tallahassee, Florida?`

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

CREATE TABLE "the_sheets" (
  "ecosystem" text,
  "date_of_issue" text,
  "place_of_issue" text,
  "no_stamps_in_sheet" real,
  "face_value" text,
  "printer" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date were sheets issued in Tallahassee, Florida?`:
```sql
                SELECT "date_of_issue" FROM "the_sheets" WHERE "place_of_issue"='tallahassee, florida';
```
## Task
Generate a SQL query to answer the following question:
`Which printer issued sheets on October 5, 2006?`

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

CREATE TABLE "the_sheets" (
  "ecosystem" text,
  "date_of_issue" text,
  "place_of_issue" text,
  "no_stamps_in_sheet" real,
  "face_value" text,
  "printer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which printer issued sheets on October 5, 2006?`:
```sql
                SELECT "printer" FROM "the_sheets" WHERE "date_of_issue"='october 5, 2006';
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of silver medals won by Total with more than 1 bronze and more than 18 total medals won?`

### 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 least amount of silver medals won by Total with more than 1 bronze and more than 18 total medals won?`:
```sql
                SELECT MIN("silver") FROM "medal_table" WHERE "bronze">1 AND "nation"='total' AND "total">18;
```
## Task
Generate a SQL query to answer the following question:
`How many positions have points against less than 28, americano-sp as the team, with a played greater than 8?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions have points against less than 28, americano-sp as the team, with a played greater than 8?`:
```sql
                SELECT COUNT("position") FROM "campeonato_paulista" WHERE "against"<28 AND "team"='americano-sp' AND "played">8;
```
## Task
Generate a SQL query to answer the following question:
`How many losses have points against less than 15?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses have points against less than 15?`:
```sql
                SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "against"<15;
```
## Task
Generate a SQL query to answer the following question:
`What average played has an against less than 15?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What average played has an against less than 15?`:
```sql
                SELECT AVG("played") FROM "campeonato_paulista" WHERE "against"<15;
```
## Task
Generate a SQL query to answer the following question:
`How many losses have a played greater than 8, ypiranga-sp as the team, with a position greater than 5?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses have a played greater than 8, ypiranga-sp as the team, with a position greater than 5?`:
```sql
                SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "played">8 AND "team"='ypiranga-sp' AND "position">5;
```
## Task
Generate a SQL query to answer the following question:
`What lost has a position greater than 2, a drawn greater than 0, with an against greater than 15?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What lost has a position greater than 2, a drawn greater than 0, with an against greater than 15?`:
```sql
                SELECT "lost" FROM "campeonato_paulista" WHERE "position">2 AND "drawn">0 AND "against">15;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of White (%), when Black (%) is less than 5,8, and when Asian or Amerindian (%) is less than 0,2?`

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

CREATE TABLE "ethnicities_by_region" (
  "state" text,
  "white_pct" real,
  "brown_pct" real,
  "black_pct" real,
  "asian_or_amerindian_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of White (%), when Black (%) is less than 5,8, and when Asian or Amerindian (%) is less than 0,2?`:
```sql
                SELECT SUM("white_pct") FROM "ethnicities_by_region" WHERE "black_pct"<'5,8' AND "asian_or_amerindian_pct"<'0,2';
```