cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the final score for the game at giants stadium when the indianapolis colts were the visiting team?`

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

CREATE TABLE "2006" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score for the game at giants stadium when the indianapolis colts were the visiting team?`:
```sql
                SELECT "final_score" FROM "2006" WHERE "visiting_team"='indianapolis colts' AND "stadium"='giants stadium';
```
## Task
Generate a SQL query to answer the following question:
`What were the investment earnings in the year that State and Federal taxes were $8,549,565?`

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

CREATE TABLE "district_122_gross_revenue_by_sources" (
  "year" real,
  "property_taxes" text,
  "investment_earnings" text,
  "other_local_sources" text,
  "state_federal" text,
  "total_revenue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the investment earnings in the year that State and Federal taxes were $8,549,565?`:
```sql
                SELECT "investment_earnings" FROM "district_122_gross_revenue_by_sources" WHERE "state_federal"='8,549,565';
```
## Task
Generate a SQL query to answer the following question:
`What were the investment earnings in the year that State and Federal taxes were $13,999,169?`

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

CREATE TABLE "district_122_gross_revenue_by_sources" (
  "year" real,
  "property_taxes" text,
  "investment_earnings" text,
  "other_local_sources" text,
  "state_federal" text,
  "total_revenue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the investment earnings in the year that State and Federal taxes were $13,999,169?`:
```sql
                SELECT "investment_earnings" FROM "district_122_gross_revenue_by_sources" WHERE "state_federal"='13,999,169';
```
## Task
Generate a SQL query to answer the following question:
`What were the investment earnings in a year when other local sources were $2,670,060 after 2001?`

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

CREATE TABLE "district_122_gross_revenue_by_sources" (
  "year" real,
  "property_taxes" text,
  "investment_earnings" text,
  "other_local_sources" text,
  "state_federal" text,
  "total_revenue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the investment earnings in a year when other local sources were $2,670,060 after 2001?`:
```sql
                SELECT "investment_earnings" FROM "district_122_gross_revenue_by_sources" WHERE "year">2001 AND "other_local_sources"='$2,670,060';
```
## Task
Generate a SQL query to answer the following question:
`What were the investment earnings in a year when total revenue was $21,779,618?`

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

CREATE TABLE "district_122_gross_revenue_by_sources" (
  "year" real,
  "property_taxes" text,
  "investment_earnings" text,
  "other_local_sources" text,
  "state_federal" text,
  "total_revenue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the investment earnings in a year when total revenue was $21,779,618?`:
```sql
                SELECT "investment_earnings" FROM "district_122_gross_revenue_by_sources" WHERE "total_revenue"='21,779,618';
```
## Task
Generate a SQL query to answer the following question:
`What were property taxes in a year when total revenue was $40,891,700 after 2002?`

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

CREATE TABLE "district_122_gross_revenue_by_sources" (
  "year" real,
  "property_taxes" text,
  "investment_earnings" text,
  "other_local_sources" text,
  "state_federal" text,
  "total_revenue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were property taxes in a year when total revenue was $40,891,700 after 2002?`:
```sql
                SELECT "property_taxes" FROM "district_122_gross_revenue_by_sources" WHERE "year">2002 AND "total_revenue"='$40,891,700';
```
## Task
Generate a SQL query to answer the following question:
`What rank for season 1?`

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

CREATE TABLE "ratings" (
  "season" real,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank for season 1?`:
```sql
                SELECT "rank" FROM "ratings" WHERE "season"=1;
```
## Task
Generate a SQL query to answer the following question:
`What week had an attendance of 27,262?`

### 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 week had an attendance of 27,262?`:
```sql
                SELECT "week" FROM "schedule" WHERE "attendance"='27,262';
```
## Task
Generate a SQL query to answer the following question:
`What opponent has an attendance of 20,456?`

### 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 opponent has an attendance of 20,456?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "attendance"='20,456';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on March 27?`

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

CREATE TABLE "stanley_cup_finals" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on March 27?`:
```sql
                SELECT "record" FROM "stanley_cup_finals" WHERE "date"='march 27';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on March 22?`

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

CREATE TABLE "stanley_cup_finals" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on March 22?`:
```sql
                SELECT "record" FROM "stanley_cup_finals" WHERE "date"='march 22';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on April 1?`

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

CREATE TABLE "stanley_cup_finals" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on April 1?`:
```sql
                SELECT "record" FROM "stanley_cup_finals" WHERE "date"='april 1';
```
## Task
Generate a SQL query to answer the following question:
`What date did North Melbourne score 22.14 (146) as the home team?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did North Melbourne score 22.14 (146) as the home team?`:
```sql
                SELECT "date" FROM "round_12" WHERE "home_team_score"='22.14 (146)' AND "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest crowd size when Carlton was the away team.`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest crowd size when Carlton was the away team.`:
```sql
                SELECT MIN("crowd") FROM "round_12" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`Who played as the home team when Footscray was the away team?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played as the home team when Footscray was the away team?`:
```sql
                SELECT "home_team" FROM "round_12" WHERE "away_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`Who was playing as the home team when the away team scored 18.14 (122)?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was playing as the home team when the away team scored 18.14 (122)?`:
```sql
                SELECT "home_team" FROM "round_12" WHERE "away_team_score"='18.14 (122)';
```
## Task
Generate a SQL query to answer the following question:
`What size was the crowd when Hawthorn was the home team?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What size was the crowd when Hawthorn was the home team?`:
```sql
                SELECT COUNT("crowd") FROM "round_12" WHERE "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of Gold the Nation of Italy had when it ranked other than 1, and had more than 0 Silver?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "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 lowest number of Gold the Nation of Italy had when it ranked other than 1, and had more than 0 Silver?`:
```sql
                SELECT MIN("gold") FROM "medal_table" WHERE "rank">1 AND "nation"='italy' AND "silver">0;
```
## Task
Generate a SQL query to answer the following question:
`How many Golds did the country with a Rank better than 5 and more Bronze than 1 receive?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Golds did the country with a Rank better than 5 and more Bronze than 1 receive?`:
```sql
                SELECT SUM("gold") FROM "medal_table" WHERE "rank"<5 AND "bronze">1;
```
## Task
Generate a SQL query to answer the following question:
`When the Total is less than 1, how many Bronze medals are won?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the Total is less than 1, how many Bronze medals are won?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`When the Total is less than 1, and Bronze is 0, how many Gold medals are there?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the Total is less than 1, and Bronze is 0, how many Gold medals are there?`:
```sql
                SELECT SUM("gold") FROM "medal_table" WHERE "bronze"=0 AND "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the Rank of the Nation of Germany when the Total is more than 2?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "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 Rank of the Nation of Germany when the Total is more than 2?`:
```sql
                SELECT COUNT("rank") FROM "medal_table" WHERE "nation"='germany' AND "total">2;
```
## Task
Generate a SQL query to answer the following question:
`Which weightlifter with a snatch larger than 117.5 had the lowest bodyweight?`

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

CREATE TABLE "super_heavyweight_75_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" real,
  "total_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which weightlifter with a snatch larger than 117.5 had the lowest bodyweight?`:
```sql
                SELECT MIN("bodyweight") FROM "super_heavyweight_75_kg" WHERE "snatch">117.5;
```
## Task
Generate a SQL query to answer the following question:
`Which weightlifter, who had a bodyweight of less than 136.16 and a clean and jerk larger than 135, had the highest Total?`

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

CREATE TABLE "super_heavyweight_75_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" real,
  "total_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which weightlifter, who had a bodyweight of less than 136.16 and a clean and jerk larger than 135, had the highest Total?`:
```sql
                SELECT MAX("total_kg") FROM "super_heavyweight_75_kg" WHERE "bodyweight"<136.16 AND "clean_jerk">135;
```
## Task
Generate a SQL query to answer the following question:
`Of weightlifters who weighed more than 136.16, who had the highest Total?`

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

CREATE TABLE "super_heavyweight_75_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" real,
  "total_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `Of weightlifters who weighed more than 136.16, who had the highest Total?`:
```sql
                SELECT MAX("total_kg") FROM "super_heavyweight_75_kg" WHERE "bodyweight">136.16;
```
## Task
Generate a SQL query to answer the following question:
`What was the average clean and jerk of all weightlifters who had a bodyweight smaller than 87.5 and a snatch of less than 95?`

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

CREATE TABLE "super_heavyweight_75_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" real,
  "total_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average clean and jerk of all weightlifters who had a bodyweight smaller than 87.5 and a snatch of less than 95?`:
```sql
                SELECT AVG("clean_jerk") FROM "super_heavyweight_75_kg" WHERE "bodyweight"=87.5 AND "snatch"<95;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the weight that all weightlifters managed to clean and jerk, among weightlifters who had a snatch of more than 95 and a Total of more than 200?`

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

CREATE TABLE "super_heavyweight_75_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" real,
  "total_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the weight that all weightlifters managed to clean and jerk, among weightlifters who had a snatch of more than 95 and a Total of more than 200?`:
```sql
                SELECT COUNT("clean_jerk") FROM "super_heavyweight_75_kg" WHERE "total_kg"=200 AND "snatch">95;
```
## Task
Generate a SQL query to answer the following question:
`What kilometer (Rizal Park-basis) has a kilometer of 25?`

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

CREATE TABLE "exits" (
  "kilometer_no_rizal_park_basis" text,
  "kilometer_no_layac_basis" text,
  "exit" text,
  "barangay" text,
  "municipality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kilometer (Rizal Park-basis) has a kilometer of 25?`:
```sql
                SELECT "kilometer_no_rizal_park_basis" FROM "exits" WHERE "kilometer_no_layac_basis"='25';
```
## Task
Generate a SQL query to answer the following question:
`Which Barangay has an exit of Sisiman toll barrier?`

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

CREATE TABLE "exits" (
  "kilometer_no_rizal_park_basis" text,
  "kilometer_no_layac_basis" text,
  "exit" text,
  "barangay" text,
  "municipality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Barangay has an exit of Sisiman toll barrier?`:
```sql
                SELECT "barangay" FROM "exits" WHERE "exit"='sisiman toll barrier';
```
## Task
Generate a SQL query to answer the following question:
`What kilometer (Layac-basis) has a Barangay of general lim (capot)?`

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

CREATE TABLE "exits" (
  "kilometer_no_rizal_park_basis" text,
  "kilometer_no_layac_basis" text,
  "exit" text,
  "barangay" text,
  "municipality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kilometer (Layac-basis) has a Barangay of general lim (capot)?`:
```sql
                SELECT "kilometer_no_layac_basis" FROM "exits" WHERE "barangay"='general lim (capot)';
```
## Task
Generate a SQL query to answer the following question:
`In which municipality is Barangay Poblacion?`

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

CREATE TABLE "exits" (
  "kilometer_no_rizal_park_basis" text,
  "kilometer_no_layac_basis" text,
  "exit" text,
  "barangay" text,
  "municipality" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which municipality is Barangay Poblacion?`:
```sql
                SELECT "municipality" FROM "exits" WHERE "barangay"='poblacion';
```
## Task
Generate a SQL query to answer the following question:
`What is the exit at kilometer (Rizal Park-basis) 164?`

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

CREATE TABLE "exits" (
  "kilometer_no_rizal_park_basis" text,
  "kilometer_no_layac_basis" text,
  "exit" text,
  "barangay" text,
  "municipality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the exit at kilometer (Rizal Park-basis) 164?`:
```sql
                SELECT "exit" FROM "exits" WHERE "kilometer_no_rizal_park_basis"='164';
```
## Task
Generate a SQL query to answer the following question:
`What is the competition on 23 February 1929?`

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

CREATE TABLE "internationals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the competition on 23 February 1929?`:
```sql
                SELECT "competition" FROM "internationals" WHERE "date"='23 february 1929';
```
## Task
Generate a SQL query to answer the following question:
`What is the club/province of Sireli Bobo, who plays wing and has less than 24 caps?`

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

CREATE TABLE "2007_rugby_world_cup_squads" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the club/province of Sireli Bobo, who plays wing and has less than 24 caps?`:
```sql
                SELECT "club_province" FROM "2007_rugby_world_cup_squads" WHERE "position"='wing' AND "caps"<24 AND "player"='sireli bobo';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Caps Aca Ratuva, a flanker, has?`

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

CREATE TABLE "2007_rugby_world_cup_squads" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Caps Aca Ratuva, a flanker, has?`:
```sql
                SELECT COUNT("caps") FROM "2007_rugby_world_cup_squads" WHERE "position"='flanker' AND "player"='aca ratuva';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of birth of Kameli Ratuvou?`

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

CREATE TABLE "2007_rugby_world_cup_squads" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of birth of Kameli Ratuvou?`:
```sql
                SELECT "date_of_birth_age" FROM "2007_rugby_world_cup_squads" WHERE "player"='kameli ratuvou';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of birth of Henry Qiodravu?`

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

CREATE TABLE "2007_rugby_world_cup_squads" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of birth of Henry Qiodravu?`:
```sql
                SELECT "date_of_birth_age" FROM "2007_rugby_world_cup_squads" WHERE "player"='henry qiodravu';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest medal total with less than 3 gold medals?`

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

CREATE TABLE "multiple_medalists" (
  "athlete_nation" text,
  "olympics" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest medal total with less than 3 gold medals?`:
```sql
                SELECT MIN("total") FROM "multiple_medalists" WHERE "gold"<3;
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest amount of laps with a start of 21?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest amount of laps with a start of 21?`:
```sql
                SELECT MIN("laps") FROM "indy_500_results" WHERE "start"='21';
```
## Task
Generate a SQL query to answer the following question:
`What was the start of the competitor with a qualifying time of 84.300?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the start of the competitor with a qualifying time of 84.300?`:
```sql
                SELECT "start" FROM "indy_500_results" WHERE "qual"='84.300';
```
## Task
Generate a SQL query to answer the following question:
`In what year were there more laps than 200 in a race?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what year were there more laps than 200 in a race?`:
```sql
                SELECT "year" FROM "indy_500_results" WHERE "laps">200;
```
## Task
Generate a SQL query to answer the following question:
`what is the current version of the project64 with gpl v2 license?`

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

CREATE TABLE "nintendo_64" (
  "name" text,
  "current_version" text,
  "system" text,
  "platform" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the current version of the project64 with gpl v2 license?`:
```sql
                SELECT "current_version" FROM "nintendo_64" WHERE "license"='gpl v2' AND "name"='project64';
```
## Task
Generate a SQL query to answer the following question:
`what is the current version of the name mupen64plus with gpl v2 license?`

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

CREATE TABLE "nintendo_64" (
  "name" text,
  "current_version" text,
  "system" text,
  "platform" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the current version of the name mupen64plus with gpl v2 license?`:
```sql
                SELECT "current_version" FROM "nintendo_64" WHERE "license"='gpl v2' AND "name"='mupen64plus';
```
## Task
Generate a SQL query to answer the following question:
`what is the current version with license gpl v3?`

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

CREATE TABLE "nintendo_64" (
  "name" text,
  "current_version" text,
  "system" text,
  "platform" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the current version with license gpl v3?`:
```sql
                SELECT "current_version" FROM "nintendo_64" WHERE "license"='gpl v3';
```
## Task
Generate a SQL query to answer the following question:
`What leading man earlier than 1932 was directed by archie mayo?`

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

CREATE TABLE "films" (
  "year" real,
  "film" text,
  "role" text,
  "leading_man" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What leading man earlier than 1932 was directed by archie mayo?`:
```sql
                SELECT "leading_man" FROM "films" WHERE "year"<1932 AND "director"='archie mayo';
```
## Task
Generate a SQL query to answer the following question:
`What year was the role nan taylor, alias of nan ellis, aka mrs. andrews and directed by William keighley?`

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

CREATE TABLE "films" (
  "year" real,
  "film" text,
  "role" text,
  "leading_man" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the role nan taylor, alias of nan ellis, aka mrs. andrews and directed by William keighley?`:
```sql
                SELECT SUM("year") FROM "films" WHERE "role"='nan taylor, alias of nan ellis, aka mrs. andrews' AND "director"='william keighley';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year for the role of joan gordon, aka francine la rue?`

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

CREATE TABLE "films" (
  "year" real,
  "film" text,
  "role" text,
  "leading_man" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year for the role of joan gordon, aka francine la rue?`:
```sql
                SELECT MAX("year") FROM "films" WHERE "role"='joan gordon, aka francine la rue';
```
## Task
Generate a SQL query to answer the following question:
`What film has a leading man of adolphe menjou in 1939?`

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

CREATE TABLE "films" (
  "year" real,
  "film" text,
  "role" text,
  "leading_man" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What film has a leading man of adolphe menjou in 1939?`:
```sql
                SELECT "film" FROM "films" WHERE "leading_man"='adolphe menjou' AND "year"=1939;
```
## Task
Generate a SQL query to answer the following question:
`What film was the director william a. wellman, later than 1931 with a leading man of george brent, and a Role of joan gordon, aka francine la rue?`

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

CREATE TABLE "films" (
  "year" real,
  "film" text,
  "role" text,
  "leading_man" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What film was the director william a. wellman, later than 1931 with a leading man of george brent, and a Role of joan gordon, aka francine la rue?`:
```sql
                SELECT "film" FROM "films" WHERE "director"='william a. wellman' AND "year">1931 AND "leading_man"='george brent' AND "role"='joan gordon, aka francine la rue';
```
## Task
Generate a SQL query to answer the following question:
`What director directed the role of shelby barret wyatt in 1935?`

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

CREATE TABLE "films" (
  "year" real,
  "film" text,
  "role" text,
  "leading_man" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What director directed the role of shelby barret wyatt in 1935?`:
```sql
                SELECT "director" FROM "films" WHERE "year"=1935 AND "role"='shelby barret wyatt';
```
## Task
Generate a SQL query to answer the following question:
`What is the weekly rank for a share of 9 and 9.42 million viewers?`

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

CREATE TABLE "ratings" (
  "air_date" text,
  "timeslot_est" text,
  "season" text,
  "rating" real,
  "share" real,
  "18_49_rating_share" text,
  "viewers_m" real,
  "weekly_rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weekly rank for a share of 9 and 9.42 million viewers?`:
```sql
                SELECT "weekly_rank_num" FROM "ratings" WHERE "share"=9 AND "viewers_m"=9.42;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of all ratings at a weekly rank of 10 and a share less than 11?`

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

CREATE TABLE "ratings" (
  "air_date" text,
  "timeslot_est" text,
  "season" text,
  "rating" real,
  "share" real,
  "18_49_rating_share" text,
  "viewers_m" real,
  "weekly_rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of all ratings at a weekly rank of 10 and a share less than 11?`:
```sql
                SELECT SUM("rating") FROM "ratings" WHERE "weekly_rank_num"='10' AND "share"<11;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of viewers for a rating greater than 9.4?`

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

CREATE TABLE "ratings" (
  "air_date" text,
  "timeslot_est" text,
  "season" text,
  "rating" real,
  "share" real,
  "18_49_rating_share" text,
  "viewers_m" real,
  "weekly_rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of viewers for a rating greater than 9.4?`:
```sql
                SELECT MAX("viewers_m") FROM "ratings" WHERE "rating">9.4;
```
## Task
Generate a SQL query to answer the following question:
`What is the rating/share with more than 8.88 million viewers and a weekly rant of 27?`

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

CREATE TABLE "ratings" (
  "air_date" text,
  "timeslot_est" text,
  "season" text,
  "rating" real,
  "share" real,
  "18_49_rating_share" text,
  "viewers_m" real,
  "weekly_rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rating/share with more than 8.88 million viewers and a weekly rant of 27?`:
```sql
                SELECT "18_49_rating_share" FROM "ratings" WHERE "viewers_m">8.88 AND "weekly_rank_num"='27';
```
## Task
Generate a SQL query to answer the following question:
`Which athlete performed before 1984 in an 800 m event?`

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

CREATE TABLE "bislett_games" (
  "year" real,
  "event" text,
  "record" text,
  "athlete" text,
  "nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which athlete performed before 1984 in an 800 m event?`:
```sql
                SELECT "athlete" FROM "bislett_games" WHERE "year"<1984 AND "event"='800 m';
```
## Task
Generate a SQL query to answer the following question:
`What venue has the away side scoring 6.5 (41)?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue has the away side scoring 6.5 (41)?`:
```sql
                SELECT "venue" FROM "round_12" WHERE "away_team_score"='6.5 (41)';
```
## Task
Generate a SQL query to answer the following question:
`How many attended the game when the home team's score is 5.6 (36)?`

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

CREATE TABLE "round_12" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many attended the game when the home team's score is 5.6 (36)?`:
```sql
                SELECT "crowd" FROM "round_12" WHERE "home_team_score"='5.6 (36)';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of points that Tevita Vaikona scored when making more than 23 tries?`

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

CREATE TABLE "2001_squad_statistics" (
  "player" text,
  "position" text,
  "tries" real,
  "goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of points that Tevita Vaikona scored when making more than 23 tries?`:
```sql
                SELECT MIN("points") FROM "2001_squad_statistics" WHERE "tries">23 AND "player"='tevita vaikona';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of points scored by Joe Vagana when making fewer than 2 tries?`

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

CREATE TABLE "2001_squad_statistics" (
  "player" text,
  "position" text,
  "tries" real,
  "goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of points scored by Joe Vagana when making fewer than 2 tries?`:
```sql
                SELECT AVG("points") FROM "2001_squad_statistics" WHERE "player"='joe vagana' AND "tries"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the competition that had a win result and a score of 3-1?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the competition that had a win result and a score of 3-1?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "result"='win' AND "score"='3-1';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue of the match that had a win result and a score of 0-4 in the 2002 Tiger Cup Group Stage?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue of the match that had a win result and a score of 0-4 in the 2002 Tiger Cup Group Stage?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "result"='win' AND "competition"='2002 tiger cup group stage' AND "score"='0-4';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the match on July 22, 2008?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the match on July 22, 2008?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='july 22, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the 2002 Tiger Cup third/fourth place match?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the 2002 Tiger Cup third/fourth place match?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "competition"='2002 tiger cup third/fourth place';
```
## Task
Generate a SQL query to answer the following question:
`What is the competition on October 15, 2008?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the competition on October 15, 2008?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "date"='october 15, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the player that went to st. benedict's prep?`

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

CREATE TABLE "2008_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the player that went to st. benedict's prep?`:
```sql
                SELECT "player" FROM "2008_boys_team" WHERE "school"='st. benedict''s prep';
```
## Task
Generate a SQL query to answer the following question:
`What is the NBA draft for ohio state?`

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

CREATE TABLE "2008_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the NBA draft for ohio state?`:
```sql
                SELECT "nba_draft" FROM "2008_boys_team" WHERE "college"='ohio state';
```
## Task
Generate a SQL query to answer the following question:
`What school did the player that is 6-6 go to?`

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

CREATE TABLE "2008_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school did the player that is 6-6 go to?`:
```sql
                SELECT "school" FROM "2008_boys_team" WHERE "height"='6-6';
```
## Task
Generate a SQL query to answer the following question:
`What school did samardo samuels go to?`

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

CREATE TABLE "2008_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school did samardo samuels go to?`:
```sql
                SELECT "school" FROM "2008_boys_team" WHERE "player"='samardo samuels';
```
## Task
Generate a SQL query to answer the following question:
`What is the final for middleweight –75 kg?`

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

CREATE TABLE "boxing" (
  "athlete" text,
  "event" text,
  "round_of_32" text,
  "round_of_16" text,
  "quarterfinal" text,
  "semifinal" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the final for middleweight –75 kg?`:
```sql
                SELECT "final" FROM "boxing" WHERE "event"='middleweight –75 kg';
```
## Task
Generate a SQL query to answer the following question:
`For the light heavyweight –81 kg event that did not advance to semifinal, who was the athlete?`

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

CREATE TABLE "boxing" (
  "athlete" text,
  "event" text,
  "round_of_32" text,
  "round_of_16" text,
  "quarterfinal" text,
  "semifinal" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the light heavyweight –81 kg event that did not advance to semifinal, who was the athlete?`:
```sql
                SELECT "athlete" FROM "boxing" WHERE "semifinal"='did not advance' AND "event"='light heavyweight –81 kg';
```
## Task
Generate a SQL query to answer the following question:
`What was the final for rouhollah hosseini?`

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

CREATE TABLE "boxing" (
  "athlete" text,
  "event" text,
  "round_of_32" text,
  "round_of_16" text,
  "quarterfinal" text,
  "semifinal" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final for rouhollah hosseini?`:
```sql
                SELECT "final" FROM "boxing" WHERE "athlete"='rouhollah hosseini';
```
## Task
Generate a SQL query to answer the following question:
`When the round of 32 was n/a and quarterfinal was did not advance, what was the round of 16?`

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

CREATE TABLE "boxing" (
  "athlete" text,
  "event" text,
  "round_of_32" text,
  "round_of_16" text,
  "quarterfinal" text,
  "semifinal" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the round of 32 was n/a and quarterfinal was did not advance, what was the round of 16?`:
```sql
                SELECT "round_of_16" FROM "boxing" WHERE "quarterfinal"='did not advance' AND "round_of_32"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me a date that has a crowd larger than 20,771, and a Venue at Windy Hill?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me a date that has a crowd larger than 20,771, and a Venue at Windy Hill?`:
```sql
                SELECT "date" FROM "round_9" WHERE "crowd">'20,771' AND "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`What Home team that has the Home team score of 9.19 (73)?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Home team that has the Home team score of 9.19 (73)?`:
```sql
                SELECT "home_team" FROM "round_9" WHERE "home_team_score"='9.19 (73)';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Home team that has a Venue of Windy Hill?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Home team that has a Venue of Windy Hill?`:
```sql
                SELECT "home_team" FROM "round_9" WHERE "venue"='windy hill';
```
## Task
Generate a SQL query to answer the following question:
`What Venue that has the Away team score of 16.9 (105)?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Venue that has the Away team score of 16.9 (105)?`:
```sql
                SELECT "venue" FROM "round_9" WHERE "away_team_score"='16.9 (105)';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Away team that has the Away team score of 6.11 (47)?`

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

CREATE TABLE "round_9" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Away team that has the Away team score of 6.11 (47)?`:
```sql
                SELECT "away_team" FROM "round_9" WHERE "away_team_score"='6.11 (47)';
```