cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is Set 2, when Score is 3-0, when Date is May 11, and when Set 1 is 25-20?`

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

CREATE TABLE "results_pool_b" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Set 2, when Score is 3-0, when Date is May 11, and when Set 1 is 25-20?`:
```sql
                SELECT "set_2" FROM "results_pool_b" WHERE "score"='3-0' AND "date"='may 11' AND "set_1"='25-20';
```
## Task
Generate a SQL query to answer the following question:
`What is Set 4, when Set 1 is 25-18, and when Date is Jun 2?`

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

CREATE TABLE "results_pool_b" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Set 4, when Set 1 is 25-18, and when Date is Jun 2?`:
```sql
                SELECT "set_4" FROM "results_pool_b" WHERE "set_1"='25-18' AND "date"='jun 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the Team with a Score that is w 101–97 (2ot)?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Team with a Score that is w 101–97 (2ot)?`:
```sql
                SELECT "team" FROM "game_log" WHERE "score"='w 101–97 (2ot)';
```
## Task
Generate a SQL query to answer the following question:
`What is the High points with a Score that is l 64–94 (ot)?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the High points with a Score that is l 64–94 (ot)?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "score"='l 64–94 (ot)';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest played when the drawn is less than 1?`

### 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 is the largest played when the drawn is less than 1?`:
```sql
                SELECT MAX("played") FROM "campeonato_paulista" WHERE "drawn"<1;
```
## Task
Generate a SQL query to answer the following question:
`What points average has a played greater than 20?`

### 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 points average has a played greater than 20?`:
```sql
                SELECT AVG("points") FROM "campeonato_paulista" WHERE "played">20;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest drawn with a position bigger than 10 and a played less than 20?`

### 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 is the smallest drawn with a position bigger than 10 and a played less than 20?`:
```sql
                SELECT MIN("drawn") FROM "campeonato_paulista" WHERE "position">10 AND "played"<20;
```
## Task
Generate a SQL query to answer the following question:
`At what average position is the drawn 9 and the points greater than 25?`

### 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 `At what average position is the drawn 9 and the points greater than 25?`:
```sql
                SELECT AVG("position") FROM "campeonato_paulista" WHERE "drawn"=9 AND "points">25;
```
## Task
Generate a SQL query to answer the following question:
`How many played has an against greater than 57 and a lost bigger than 14?`

### 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 played has an against greater than 57 and a lost bigger than 14?`:
```sql
                SELECT COUNT("played") FROM "campeonato_paulista" WHERE "against">57 AND "lost">14;
```
## Task
Generate a SQL query to answer the following question:
`The event rip curl pro mademoiselle is in which location?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `The event rip curl pro mademoiselle is in which location?`:
```sql
                SELECT "location" FROM "tournaments" WHERE "event"='rip curl pro mademoiselle';
```
## Task
Generate a SQL query to answer the following question:
`On the date november 24-december 6 what's the winner when the country is united states?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `On the date november 24-december 6 what's the winner when the country is united states?`:
```sql
                SELECT "winner" FROM "tournaments" WHERE "country"='united states' AND "date"='november 24-december 6';
```
## Task
Generate a SQL query to answer the following question:
`Which year was the 100 m event played in Thessaloniki, Greece?`

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

CREATE TABLE "major_competition_record" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year was the 100 m event played in Thessaloniki, Greece?`:
```sql
                SELECT MIN("year") FROM "major_competition_record" WHERE "event"='100 m' AND "venue"='thessaloniki, greece';
```
## Task
Generate a SQL query to answer the following question:
`Which position was the World Indoor Championships in a year later than 2008?`

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

CREATE TABLE "major_competition_record" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position was the World Indoor Championships in a year later than 2008?`:
```sql
                SELECT "position" FROM "major_competition_record" WHERE "competition"='world indoor championships' AND "year">2008;
```
## Task
Generate a SQL query to answer the following question:
`What position was played at the World Athletics Final Competition in a year more recent than 2008?`

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

CREATE TABLE "major_competition_record" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position was played at the World Athletics Final Competition in a year more recent than 2008?`:
```sql
                SELECT "position" FROM "major_competition_record" WHERE "competition"='world athletics final' AND "year">2008;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Greater Doubles, when Doubles, I Class is 23, and when Doubles, II Class is less than 27?`

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

CREATE TABLE "some_differences_in_relation_to_later_ed" (
  "date" real,
  "doubles_i_class" real,
  "doubles_ii_class" real,
  "greater_doubles" real,
  "doubles" real,
  "semidoubles" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Greater Doubles, when Doubles, I Class is 23, and when Doubles, II Class is less than 27?`:
```sql
                SELECT MIN("greater_doubles") FROM "some_differences_in_relation_to_later_ed" WHERE "doubles_i_class"=23 AND "doubles_ii_class"<27;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Doubles, II Class, when Doubles, I Class is less than 19?`

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

CREATE TABLE "some_differences_in_relation_to_later_ed" (
  "date" real,
  "doubles_i_class" real,
  "doubles_ii_class" real,
  "greater_doubles" real,
  "doubles" real,
  "semidoubles" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Doubles, II Class, when Doubles, I Class is less than 19?`:
```sql
                SELECT MAX("doubles_ii_class") FROM "some_differences_in_relation_to_later_ed" WHERE "doubles_i_class"<19;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Semidoubles, when Doubles, II Class is 18, and when Total is less than 164?`

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

CREATE TABLE "some_differences_in_relation_to_later_ed" (
  "date" real,
  "doubles_i_class" real,
  "doubles_ii_class" real,
  "greater_doubles" real,
  "doubles" real,
  "semidoubles" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Semidoubles, when Doubles, II Class is 18, and when Total is less than 164?`:
```sql
                SELECT MIN("semidoubles") FROM "some_differences_in_relation_to_later_ed" WHERE "doubles_ii_class"=18 AND "total"<164;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Date, when Doubles, II Class is 18, and when Total is less than 164?`

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

CREATE TABLE "some_differences_in_relation_to_later_ed" (
  "date" real,
  "doubles_i_class" real,
  "doubles_ii_class" real,
  "greater_doubles" real,
  "doubles" real,
  "semidoubles" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Date, when Doubles, II Class is 18, and when Total is less than 164?`:
```sql
                SELECT MIN("date") FROM "some_differences_in_relation_to_later_ed" WHERE "doubles_ii_class"=18 AND "total"<164;
```
## Task
Generate a SQL query to answer the following question:
`What are the goals of the assists of 5?`

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

CREATE TABLE "college" (
  "year" text,
  "team" text,
  "gp_gs" text,
  "goals" text,
  "assists" text,
  "total_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the goals of the assists of 5?`:
```sql
                SELECT "goals" FROM "college" WHERE "assists"='5';
```
## Task
Generate a SQL query to answer the following question:
`What is the assists for the year 1995?`

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

CREATE TABLE "college" (
  "year" text,
  "team" text,
  "gp_gs" text,
  "goals" text,
  "assists" text,
  "total_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the assists for the year 1995?`:
```sql
                SELECT "assists" FROM "college" WHERE "year"='1995';
```
## Task
Generate a SQL query to answer the following question:
`What assists has the Team SMU and the total points of 85?`

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

CREATE TABLE "college" (
  "year" text,
  "team" text,
  "gp_gs" text,
  "goals" text,
  "assists" text,
  "total_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What assists has the Team SMU and the total points of 85?`:
```sql
                SELECT "assists" FROM "college" WHERE "team"='smu' AND "total_points"='85';
```
## Task
Generate a SQL query to answer the following question:
`What year had 48 assists?`

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

CREATE TABLE "college" (
  "year" text,
  "team" text,
  "gp_gs" text,
  "goals" text,
  "assists" text,
  "total_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had 48 assists?`:
```sql
                SELECT "year" FROM "college" WHERE "assists"='48';
```
## Task
Generate a SQL query to answer the following question:
`What is the total points for GP/GS of 24/23?`

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

CREATE TABLE "college" (
  "year" text,
  "team" text,
  "gp_gs" text,
  "goals" text,
  "assists" text,
  "total_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total points for GP/GS of 24/23?`:
```sql
                SELECT "total_points" FROM "college" WHERE "gp_gs"='24/23';
```
## Task
Generate a SQL query to answer the following question:
`What is the assists for the Team of Florida and the total points of 75?`

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

CREATE TABLE "college" (
  "year" text,
  "team" text,
  "gp_gs" text,
  "goals" text,
  "assists" text,
  "total_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the assists for the Team of Florida and the total points of 75?`:
```sql
                SELECT "assists" FROM "college" WHERE "team"='florida' AND "total_points"='75';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance of the match with F.C. central chugoku as the home team?`

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

CREATE TABLE "first_round" (
  "match_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance of the match with F.C. central chugoku as the home team?`:
```sql
                SELECT "attendance" FROM "first_round" WHERE "home_team"='f.c. central chugoku';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team of match 9?`

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

CREATE TABLE "first_round" (
  "match_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away team of match 9?`:
```sql
                SELECT "away_team" FROM "first_round" WHERE "match_no"='9';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of match 15?`

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

CREATE TABLE "first_round" (
  "match_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of match 15?`:
```sql
                SELECT "score" FROM "first_round" WHERE "match_no"='15';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance of the match with kochi university as the away team?`

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

CREATE TABLE "first_round" (
  "match_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance of the match with kochi university as the away team?`:
```sql
                SELECT "attendance" FROM "first_round" WHERE "away_team"='kochi university';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance of the match with rosso kumamoto as the away team?`

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

CREATE TABLE "first_round" (
  "match_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance of the match with rosso kumamoto as the away team?`:
```sql
                SELECT "attendance" FROM "first_round" WHERE "away_team"='rosso kumamoto';
```
## Task
Generate a SQL query to answer the following question:
`What year did the company have a balance sheet total of €125,359,000?`

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

CREATE TABLE "financial_results" (
  "year" real,
  "turnover" text,
  "net_income" text,
  "balance_sheet_total" text,
  "employees" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the company have a balance sheet total of €125,359,000?`:
```sql
                SELECT COUNT("year") FROM "financial_results" WHERE "balance_sheet_total"='€125,359,000';
```
## Task
Generate a SQL query to answer the following question:
`What was the average Year of release for the Album, "Da Baddest Bitch"?`

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

CREATE TABLE "music_videos" (
  "song" text,
  "artist" text,
  "album" text,
  "director" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average Year of release for the Album, "Da Baddest Bitch"?`:
```sql
                SELECT AVG("year") FROM "music_videos" WHERE "album"='da baddest bitch';
```
## Task
Generate a SQL query to answer the following question:
`After 2009, which Artist published the Song, "Party Like A DJ"?`

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

CREATE TABLE "music_videos" (
  "song" text,
  "artist" text,
  "album" text,
  "director" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `After 2009, which Artist published the Song, "Party Like A DJ"?`:
```sql
                SELECT "artist" FROM "music_videos" WHERE "year">2009 AND "song"='\"party like a dj\"';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game with a score of 3-2?`

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

CREATE TABLE "international_career" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game with a score of 3-2?`:
```sql
                SELECT "result" FROM "international_career" WHERE "score"='3-2';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the 2014 World Cup Qualification?`

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

CREATE TABLE "international_career" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the 2014 World Cup Qualification?`:
```sql
                SELECT "score" FROM "international_career" WHERE "competition"='2014 world cup qualification';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game with a score of 4-1?`

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

CREATE TABLE "international_career" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game with a score of 4-1?`:
```sql
                SELECT "result" FROM "international_career" WHERE "score"='4-1';
```
## Task
Generate a SQL query to answer the following question:
`What venue held with game with a score of 3-2?`

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

CREATE TABLE "international_career" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue held with game with a score of 3-2?`:
```sql
                SELECT "venue" FROM "international_career" WHERE "score"='3-2';
```
## Task
Generate a SQL query to answer the following question:
`Which Cover model has a 20 Questions of christina applegate?`

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

CREATE TABLE "2004" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Cover model has a 20 Questions of christina applegate?`:
```sql
                SELECT "cover_model" FROM "2004" WHERE "20_questions"='christina applegate';
```
## Task
Generate a SQL query to answer the following question:
`When has a Centerfold model of krista kelly?`

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

CREATE TABLE "2004" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a Centerfold model of krista kelly?`:
```sql
                SELECT "date" FROM "2004" WHERE "centerfold_model"='krista kelly';
```
## Task
Generate a SQL query to answer the following question:
`Which 20 Questions has a Cover model of rena mero , torrie wilson (two alternative covers)?`

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

CREATE TABLE "2004" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 20 Questions has a Cover model of rena mero , torrie wilson (two alternative covers)?`:
```sql
                SELECT "20_questions" FROM "2004" WHERE "cover_model"='rena mero , torrie wilson (two alternative covers)';
```
## Task
Generate a SQL query to answer the following question:
`When Centerfold model is on 3-04?`

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

CREATE TABLE "2004" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Centerfold model is on 3-04?`:
```sql
                SELECT "centerfold_model" FROM "2004" WHERE "date"='3-04';
```
## Task
Generate a SQL query to answer the following question:
`Which Cover model has a Centerfold model of scarlett keegan?`

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

CREATE TABLE "2004" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Cover model has a Centerfold model of scarlett keegan?`:
```sql
                SELECT "cover_model" FROM "2004" WHERE "centerfold_model"='scarlett keegan';
```
## Task
Generate a SQL query to answer the following question:
`When has a Centerfold model of pilar lastra?`

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

CREATE TABLE "2004" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a Centerfold model of pilar lastra?`:
```sql
                SELECT "date" FROM "2004" WHERE "centerfold_model"='pilar lastra';
```
## Task
Generate a SQL query to answer the following question:
`What is the average share at 8:00 p.m., and an 18-49 of 1.3/4 with an air date of April 4, 2008?`

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

CREATE TABLE "u_s_standard_ratings" (
  "air_date" text,
  "timeslot" text,
  "rating" real,
  "share" real,
  "18_49" text,
  "viewers" real,
  "weekly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average share at 8:00 p.m., and an 18-49 of 1.3/4 with an air date of April 4, 2008?`:
```sql
                SELECT AVG("share") FROM "u_s_standard_ratings" WHERE "timeslot"='8:00 p.m.' AND "18_49"='1.3/4' AND "air_date"='april 4, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest share with an air date of March 21, 2008 and had viewers larger than 5.15?`

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

CREATE TABLE "u_s_standard_ratings" (
  "air_date" text,
  "timeslot" text,
  "rating" real,
  "share" real,
  "18_49" text,
  "viewers" real,
  "weekly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest share with an air date of March 21, 2008 and had viewers larger than 5.15?`:
```sql
                SELECT MIN("share") FROM "u_s_standard_ratings" WHERE "air_date"='march 21, 2008' AND "viewers">5.15;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest team (s) that have tvmk as top scorer (s) and flora as the champion?`

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

CREATE TABLE "champions_and_top_goalscorers" (
  "season" text,
  "champion" text,
  "runner_up" text,
  "3rd_position" text,
  "top_goalscorer_s" text,
  "team_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest team (s) that have tvmk as top scorer (s) and flora as the champion?`:
```sql
                SELECT MIN("team_s") FROM "champions_and_top_goalscorers" WHERE "top_goalscorer_s"='tvmk' AND "champion"='flora';
```
## Task
Generate a SQL query to answer the following question:
`Which runner-up has narva trans as a 3rd position for the 2005 season?`

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

CREATE TABLE "champions_and_top_goalscorers" (
  "season" text,
  "champion" text,
  "runner_up" text,
  "3rd_position" text,
  "top_goalscorer_s" text,
  "team_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which runner-up has narva trans as a 3rd position for the 2005 season?`:
```sql
                SELECT "runner_up" FROM "champions_and_top_goalscorers" WHERE "3rd_position"='narva trans' AND "season"='2005';
```
## Task
Generate a SQL query to answer the following question:
`Which season has flora as the runner-up, tvmk as the 3rd position, and narva trans as the top goalscorer (s)?`

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

CREATE TABLE "champions_and_top_goalscorers" (
  "season" text,
  "champion" text,
  "runner_up" text,
  "3rd_position" text,
  "top_goalscorer_s" text,
  "team_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which season has flora as the runner-up, tvmk as the 3rd position, and narva trans as the top goalscorer (s)?`:
```sql
                SELECT "season" FROM "champions_and_top_goalscorers" WHERE "runner_up"='flora' AND "3rd_position"='tvmk' AND "top_goalscorer_s"='narva trans';
```
## Task
Generate a SQL query to answer the following question:
`Which runner-up has levadia as the 3rd position for the team (s) 37?`

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

CREATE TABLE "champions_and_top_goalscorers" (
  "season" text,
  "champion" text,
  "runner_up" text,
  "3rd_position" text,
  "top_goalscorer_s" text,
  "team_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which runner-up has levadia as the 3rd position for the team (s) 37?`:
```sql
                SELECT "runner_up" FROM "champions_and_top_goalscorers" WHERE "3rd_position"='levadia' AND "team_s"=37;
```
## Task
Generate a SQL query to answer the following question:
`What round had the opponent Lyon?`

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

CREATE TABLE "club_brugge" (
  "round" text,
  "opposition" text,
  "first_leg" text,
  "second_leg" text,
  "aggregate_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round had the opponent Lyon?`:
```sql
                SELECT "round" FROM "club_brugge" WHERE "opposition"='lyon';
```
## Task
Generate a SQL query to answer the following question:
`Who has the first leg that has a round in the semi-final?`

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

CREATE TABLE "club_brugge" (
  "round" text,
  "opposition" text,
  "first_leg" text,
  "second_leg" text,
  "aggregate_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the first leg that has a round in the semi-final?`:
```sql
                SELECT "first_leg" FROM "club_brugge" WHERE "round"='semi-final';
```
## Task
Generate a SQL query to answer the following question:
`What is Most Laps Led, when Winning Team is Chip Ganassi Racing, and when Fastest Lap is Marco Andretti?`

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

CREATE TABLE "round_1" (
  "race" text,
  "pole_position" text,
  "fastest_lap" text,
  "most_laps_led" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Most Laps Led, when Winning Team is Chip Ganassi Racing, and when Fastest Lap is Marco Andretti?`:
```sql
                SELECT "most_laps_led" FROM "round_1" WHERE "winning_team"='chip ganassi racing' AND "fastest_lap"='marco andretti';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Winning Driver, when Most Laps Led is Dario Franchitti, and when Pole Position is Hélio Castroneves?`

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

CREATE TABLE "round_1" (
  "race" text,
  "pole_position" text,
  "fastest_lap" text,
  "most_laps_led" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Winning Driver, when Most Laps Led is Dario Franchitti, and when Pole Position is Hélio Castroneves?`:
```sql
                SELECT "winning_driver" FROM "round_1" WHERE "most_laps_led"='dario franchitti' AND "pole_position"='hélio castroneves';
```
## Task
Generate a SQL query to answer the following question:
`What is Winning Team, when Most Laps Led is Alex Tagliani?`

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

CREATE TABLE "round_1" (
  "race" text,
  "pole_position" text,
  "fastest_lap" text,
  "most_laps_led" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winning Team, when Most Laps Led is Alex Tagliani?`:
```sql
                SELECT "winning_team" FROM "round_1" WHERE "most_laps_led"='alex tagliani';
```
## Task
Generate a SQL query to answer the following question:
`What is Winning Driver, when Fastest Lap is Ryan Hunter-Reay, and when Most Laps Led is Ryan Briscoe?`

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

CREATE TABLE "round_1" (
  "race" text,
  "pole_position" text,
  "fastest_lap" text,
  "most_laps_led" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winning Driver, when Fastest Lap is Ryan Hunter-Reay, and when Most Laps Led is Ryan Briscoe?`:
```sql
                SELECT "winning_driver" FROM "round_1" WHERE "fastest_lap"='ryan hunter-reay' AND "most_laps_led"='ryan briscoe';
```
## Task
Generate a SQL query to answer the following question:
`What is Race, when Winning Team is Chip Ganassi Racing, when Pole Position is Ryan Briscoe, and when Most Laps Led is Scott Dixon?`

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

CREATE TABLE "round_1" (
  "race" text,
  "pole_position" text,
  "fastest_lap" text,
  "most_laps_led" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Race, when Winning Team is Chip Ganassi Racing, when Pole Position is Ryan Briscoe, and when Most Laps Led is Scott Dixon?`:
```sql
                SELECT "race" FROM "round_1" WHERE "winning_team"='chip ganassi racing' AND "pole_position"='ryan briscoe' AND "most_laps_led"='scott dixon';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Winner when the Runner-up was Real Salt Lake?`

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

CREATE TABLE "finals_champions_league_era" (
  "season" text,
  "winner" text,
  "score" text,
  "runner_up" text,
  "losing_semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Winner when the Runner-up was Real Salt Lake?`:
```sql
                SELECT "winner" FROM "finals_champions_league_era" WHERE "runner_up"='real salt lake';
```
## Task
Generate a SQL query to answer the following question:
`During which Season was the tournament in progress?`

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

CREATE TABLE "finals_champions_league_era" (
  "season" text,
  "winner" text,
  "score" text,
  "runner_up" text,
  "losing_semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `During which Season was the tournament in progress?`:
```sql
                SELECT "season" FROM "finals_champions_league_era" WHERE "runner_up"='tournament in progress';
```
## Task
Generate a SQL query to answer the following question:
`What was the Score during the Season in which the Winner was C.F. Atlante?`

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

CREATE TABLE "finals_champions_league_era" (
  "season" text,
  "winner" text,
  "score" text,
  "runner_up" text,
  "losing_semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Score during the Season in which the Winner was C.F. Atlante?`:
```sql
                SELECT "score" FROM "finals_champions_league_era" WHERE "winner"='c.f. atlante';
```
## Task
Generate a SQL query to answer the following question:
`What was the Score when the Losing Semifinalists were Toluca Unam?`

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

CREATE TABLE "finals_champions_league_era" (
  "season" text,
  "winner" text,
  "score" text,
  "runner_up" text,
  "losing_semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Score when the Losing Semifinalists were Toluca Unam?`:
```sql
                SELECT "score" FROM "finals_champions_league_era" WHERE "losing_semifinalists"='toluca unam';
```
## Task
Generate a SQL query to answer the following question:
`What law has a penalty of — in Iraq?`

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

CREATE TABLE "homosexuality_laws_in_majority_muslim_co" (
  "country" text,
  "laws_against_homosexuality" text,
  "penalty" text,
  "same_sex_unions" text,
  "laws_against_discrimination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What law has a penalty of — in Iraq?`:
```sql
                SELECT "laws_against_homosexuality" FROM "homosexuality_laws_in_majority_muslim_co" WHERE "penalty"='—' AND "country"='iraq';
```
## Task
Generate a SQL query to answer the following question:
`What are the laws against homosexuality in Malaysia?`

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

CREATE TABLE "homosexuality_laws_in_majority_muslim_co" (
  "country" text,
  "laws_against_homosexuality" text,
  "penalty" text,
  "same_sex_unions" text,
  "laws_against_discrimination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the laws against homosexuality in Malaysia?`:
```sql
                SELECT "laws_against_homosexuality" FROM "homosexuality_laws_in_majority_muslim_co" WHERE "country"='malaysia';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Events when the top-25 is 12 and there are less than 0 wins?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Events when the top-25 is 12 and there are less than 0 wins?`:
```sql
                SELECT AVG("events") FROM "summary" WHERE "top_25"=12 AND "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Events when the top-25 is more than 5, and the top-10 is less than 4, and wins is more than 2?`

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

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

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Top-10 when there were 17 cuts made with less than 0 wins?`:
```sql
                SELECT AVG("top_10") FROM "summary" WHERE "cuts_made"=17 AND "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Cuts made when there were more than 72 events?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Cuts made when there were more than 72 events?`:
```sql
                SELECT SUM("cuts_made") FROM "summary" WHERE "events">72;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Top-5 for the open championship, and a Top-10 smaller than 2?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Top-5 for the open championship, and a Top-10 smaller than 2?`:
```sql
                SELECT AVG("top_5") FROM "summary" WHERE "tournament"='the open championship' AND "top_10"<2;
```
## Task
Generate a SQL query to answer the following question:
`What was the date of airing for episodes with ratings under 10.1 and production number of 96 5-09?`

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

CREATE TABLE "united_states" (
  "episode_number_production_number" text,
  "title" text,
  "original_airing" text,
  "rating" real,
  "share" real,
  "18_49" real,
  "total_viewers_in_millions" real,
  "rank_per_week" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of airing for episodes with ratings under 10.1 and production number of 96 5-09?`:
```sql
                SELECT "original_airing" FROM "united_states" WHERE "rating"<10.1 AND "episode_number_production_number"='96 5-09';
```
## Task
Generate a SQL query to answer the following question:
`What was the fewest number of viewers for the episode production number of 109 5-22?`

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

CREATE TABLE "united_states" (
  "episode_number_production_number" text,
  "title" text,
  "original_airing" text,
  "rating" real,
  "share" real,
  "18_49" real,
  "total_viewers_in_millions" real,
  "rank_per_week" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the fewest number of viewers for the episode production number of 109 5-22?`:
```sql
                SELECT MIN("total_viewers_in_millions") FROM "united_states" WHERE "episode_number_production_number"='109 5-22';
```
## Task
Generate a SQL query to answer the following question:
`What is the First Aligned date in 1614?`

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

CREATE TABLE "leap_year_error" (
  "scholar" text,
  "date" text,
  "triennial_leap_years_bc" text,
  "first_julian_day" text,
  "first_aligned_day" text,
  "quadriennial_leap_year_resumes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the First Aligned date in 1614?`:
```sql
                SELECT "first_aligned_day" FROM "leap_year_error" WHERE "date"='1614';
```
## Task
Generate a SQL query to answer the following question:
`How many Airlines have a total distance of 705 (km)?`

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

CREATE TABLE "by_aircraft_movements" (
  "rank" text,
  "route" text,
  "avg_daily_flts" real,
  "num_of_airlines" real,
  "distance_km" real,
  "market_share_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Airlines have a total distance of 705 (km)?`:
```sql
                SELECT COUNT("num_of_airlines") FROM "by_aircraft_movements" WHERE "distance_km"=705;
```
## Task
Generate a SQL query to answer the following question:
`What is the 1st leg result when team 1 is Gambia?`

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

CREATE TABLE "first_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st leg result when team 1 is Gambia?`:
```sql
                SELECT "1st_leg" FROM "first_round" WHERE "team_1"='gambia';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg result when team 2 is Morocco?`

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

CREATE TABLE "first_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg result when team 2 is Morocco?`:
```sql
                SELECT "2nd_leg" FROM "first_round" WHERE "team_2"='morocco';
```
## Task
Generate a SQL query to answer the following question:
`Which Name was in the Year 2001?`

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

CREATE TABLE "rankings" (
  "name" text,
  "rank" real,
  "out_of" real,
  "source" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name was in the Year 2001?`:
```sql
                SELECT "name" FROM "rankings" WHERE "year"='2001';
```
## Task
Generate a SQL query to answer the following question:
`Which Name had a Rank of 18 Out of a number smaller than 149?`

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

CREATE TABLE "rankings" (
  "name" text,
  "rank" real,
  "out_of" real,
  "source" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name had a Rank of 18 Out of a number smaller than 149?`:
```sql
                SELECT "name" FROM "rankings" WHERE "out_of"<149 AND "rank"=18;
```
## Task
Generate a SQL query to answer the following question:
`Which Name had the Rank, 15?`

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

CREATE TABLE "rankings" (
  "name" text,
  "rank" real,
  "out_of" real,
  "source" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name had the Rank, 15?`:
```sql
                SELECT "name" FROM "rankings" WHERE "rank"=15;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Rank for the Name, "area of permanent crops", Out of a number smaller than 181?`

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

CREATE TABLE "rankings" (
  "name" text,
  "rank" real,
  "out_of" real,
  "source" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Rank for the Name, "area of permanent crops", Out of a number smaller than 181?`:
```sql
                SELECT MIN("rank") FROM "rankings" WHERE "name"='area of permanent crops' AND "out_of"<181;
```