cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the Name when the License is gpl and the Current Version is 1.72?`

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

CREATE TABLE "atari_5200" (
  "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 Name when the License is gpl and the Current Version is 1.72?`:
```sql
                SELECT "name" FROM "atari_5200" WHERE "license"='gpl' AND "current_version"='1.72';
```
## Task
Generate a SQL query to answer the following question:
`What is the System when the Licence is gpl and the Current Version is 1.72?`

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

CREATE TABLE "atari_5200" (
  "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 System when the Licence is gpl and the Current Version is 1.72?`:
```sql
                SELECT "system" FROM "atari_5200" WHERE "license"='gpl' AND "current_version"='1.72';
```
## Task
Generate a SQL query to answer the following question:
`What is the System with a freeware License?`

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

CREATE TABLE "atari_5200" (
  "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 System with a freeware License?`:
```sql
                SELECT "system" FROM "atari_5200" WHERE "license"='freeware';
```
## Task
Generate a SQL query to answer the following question:
`What is the License when the Platform is windows and the Name is Altirra?`

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

CREATE TABLE "atari_5200" (
  "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 License when the Platform is windows and the Name is Altirra?`:
```sql
                SELECT "license" FROM "atari_5200" WHERE "platform"='windows' AND "name"='altirra';
```
## Task
Generate a SQL query to answer the following question:
`What Platform has a Current Version 0.6.2?`

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

CREATE TABLE "atari_5200" (
  "name" text,
  "current_version" text,
  "system" text,
  "platform" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Platform has a Current Version 0.6.2?`:
```sql
                SELECT "platform" FROM "atari_5200" WHERE "current_version"='0.6.2';
```
## Task
Generate a SQL query to answer the following question:
`What is the average attendance on October 9, 1983?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average attendance on October 9, 1983?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "date"='october 9, 1983';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest attendance on September 4, 1983?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest attendance on September 4, 1983?`:
```sql
                SELECT MIN("attendance") FROM "schedule" WHERE "date"='september 4, 1983';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the school whose namesake is John F. Kennedy?`

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

CREATE TABLE "junior_high_schools" (
  "school_s_name" text,
  "school_s_namesake" text,
  "year_opened" text,
  "principal" text,
  "mascot" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the school whose namesake is John F. Kennedy?`:
```sql
                SELECT "school_s_name" FROM "junior_high_schools" WHERE "school_s_namesake"='john f. kennedy';
```
## Task
Generate a SQL query to answer the following question:
`What is the mascot whose school opened in 1970?`

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

CREATE TABLE "junior_high_schools" (
  "school_s_name" text,
  "school_s_namesake" text,
  "year_opened" text,
  "principal" text,
  "mascot" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mascot whose school opened in 1970?`:
```sql
                SELECT "mascot" FROM "junior_high_schools" WHERE "year_opened"='1970';
```
## Task
Generate a SQL query to answer the following question:
`What principal has a school mascot of the patriots?`

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

CREATE TABLE "junior_high_schools" (
  "school_s_name" text,
  "school_s_namesake" text,
  "year_opened" text,
  "principal" text,
  "mascot" text
);
### SQL
Given the database schema, here is the SQL query that answers `What principal has a school mascot of the patriots?`:
```sql
                SELECT "principal" FROM "junior_high_schools" WHERE "mascot"='patriots';
```
## Task
Generate a SQL query to answer the following question:
`What is the namesake of the school whose mascot is the patriots?`

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

CREATE TABLE "junior_high_schools" (
  "school_s_name" text,
  "school_s_namesake" text,
  "year_opened" text,
  "principal" text,
  "mascot" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the namesake of the school whose mascot is the patriots?`:
```sql
                SELECT "school_s_namesake" FROM "junior_high_schools" WHERE "mascot"='patriots';
```
## Task
Generate a SQL query to answer the following question:
`What is the school namesake for Lincoln Junior High School?`

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

CREATE TABLE "junior_high_schools" (
  "school_s_name" text,
  "school_s_namesake" text,
  "year_opened" text,
  "principal" text,
  "mascot" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the school namesake for Lincoln Junior High School?`:
```sql
                SELECT "school_s_namesake" FROM "junior_high_schools" WHERE "school_s_name"='lincoln junior high school';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue when the score was 24–28?`

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

CREATE TABLE "1997_fixtures_and_results" (
  "date" text,
  "competition" text,
  "venue" text,
  "result" text,
  "score" text,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue when the score was 24–28?`:
```sql
                SELECT "venue" FROM "1997_fixtures_and_results" WHERE "score"='24–28';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest pick when the School is Stanford University?`

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

CREATE TABLE "supplemental_first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest pick when the School is Stanford University?`:
```sql
                SELECT MIN("pick") FROM "supplemental_first_round_selections" WHERE "school"='stanford university';
```
## Task
Generate a SQL query to answer the following question:
`What Team has a Pick of 40?`

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

CREATE TABLE "supplemental_first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Team has a Pick of 40?`:
```sql
                SELECT "team" FROM "supplemental_first_round_selections" WHERE "pick"=40;
```
## Task
Generate a SQL query to answer the following question:
`What date was the away team Hawthorn?`

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

CREATE TABLE "round_8" (
  "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 was the away team Hawthorn?`:
```sql
                SELECT "date" FROM "round_8" WHERE "away_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`What is the high loss total for players with zero wins and a win % greater than 0?`

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

CREATE TABLE "most_games_as_starting_quarterback" (
  "name" text,
  "period" text,
  "starts" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the high loss total for players with zero wins and a win % greater than 0?`:
```sql
                SELECT MAX("losses") FROM "most_games_as_starting_quarterback" WHERE "wins"=0 AND "win_pct">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the win % for the QB with 3 starts?`

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

CREATE TABLE "most_games_as_starting_quarterback" (
  "name" text,
  "period" text,
  "starts" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the win % for the QB with 3 starts?`:
```sql
                SELECT "win_pct" FROM "most_games_as_starting_quarterback" WHERE "starts"=3;
```
## Task
Generate a SQL query to answer the following question:
`What venue did geelong play an away game?`

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

CREATE TABLE "round_7" (
  "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 did geelong play an away game?`:
```sql
                SELECT "venue" FROM "round_7" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team score when the home team scored 8.14 (62)?`

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

CREATE TABLE "round_7" (
  "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 away team score when the home team scored 8.14 (62)?`:
```sql
                SELECT "away_team_score" FROM "round_7" WHERE "home_team_score"='8.14 (62)';
```
## Task
Generate a SQL query to answer the following question:
`What home team played an away team of melbourne?`

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

CREATE TABLE "round_7" (
  "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 played an away team of melbourne?`:
```sql
                SELECT "home_team" FROM "round_7" WHERE "away_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Which player had an overall pick of 130?`

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

CREATE TABLE "2009_draft_picks" (
  "round" real,
  "overall" text,
  "player" text,
  "position" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player had an overall pick of 130?`:
```sql
                SELECT "player" FROM "2009_draft_picks" WHERE "overall"='130';
```
## Task
Generate a SQL query to answer the following question:
`What round was Corey Cowick picked?`

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

CREATE TABLE "2009_draft_picks" (
  "round" real,
  "overall" text,
  "player" text,
  "position" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was Corey Cowick picked?`:
```sql
                SELECT AVG("round") FROM "2009_draft_picks" WHERE "player"='corey cowick';
```
## Task
Generate a SQL query to answer the following question:
`What position does the player from the Miami University (CCHA) club team play?`

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

CREATE TABLE "2009_draft_picks" (
  "round" real,
  "overall" text,
  "player" text,
  "position" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the player from the Miami University (CCHA) club team play?`:
```sql
                SELECT "position" FROM "2009_draft_picks" WHERE "club_team"='miami university (ccha)';
```
## Task
Generate a SQL query to answer the following question:
`What most recent year had North Melbourne as a team and Hamish Mcintosh as a player?`

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

CREATE TABLE "missed_opportunities" (
  "player" text,
  "team" text,
  "opponent" text,
  "year" real,
  "score" text,
  "outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `What most recent year had North Melbourne as a team and Hamish Mcintosh as a player?`:
```sql
                SELECT MAX("year") FROM "missed_opportunities" WHERE "team"='north melbourne' AND "player"='hamish mcintosh';
```
## Task
Generate a SQL query to answer the following question:
`Which score had Essendon as an opponent and Steven Clark as a player?`

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

CREATE TABLE "missed_opportunities" (
  "player" text,
  "team" text,
  "opponent" text,
  "year" real,
  "score" text,
  "outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which score had Essendon as an opponent and Steven Clark as a player?`:
```sql
                SELECT "score" FROM "missed_opportunities" WHERE "opponent"='essendon' AND "player"='steven clark';
```
## Task
Generate a SQL query to answer the following question:
`Which team got a Behind outcome and had an opponent of Brisbane Bears?`

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

CREATE TABLE "missed_opportunities" (
  "player" text,
  "team" text,
  "opponent" text,
  "year" real,
  "score" text,
  "outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team got a Behind outcome and had an opponent of Brisbane Bears?`:
```sql
                SELECT "team" FROM "missed_opportunities" WHERE "outcome"='behind' AND "opponent"='brisbane bears';
```
## Task
Generate a SQL query to answer the following question:
`When did the north melbourne team play?`

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

CREATE TABLE "round_22" (
  "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 `When did the north melbourne team play?`:
```sql
                SELECT "date" FROM "round_22" WHERE "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at junction oval?`

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

CREATE TABLE "round_22" (
  "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 the away team at junction oval?`:
```sql
                SELECT "away_team" FROM "round_22" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team's score at junction oval?`

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

CREATE TABLE "round_22" (
  "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 home team's score at junction oval?`:
```sql
                SELECT "home_team_score" FROM "round_22" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`What venue was essendon the away team?`

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

CREATE TABLE "round_22" (
  "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 was essendon the away team?`:
```sql
                SELECT "venue" FROM "round_22" WHERE "away_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`Who is the home team at kardinia park?`

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

CREATE TABLE "round_22" (
  "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 is the home team at kardinia park?`:
```sql
                SELECT "home_team" FROM "round_22" WHERE "venue"='kardinia park';
```
## Task
Generate a SQL query to answer the following question:
`What is the storage stability of Arsine with a toxicity of 8, and field stability less than 5?`

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

CREATE TABLE "list_of_blood_agents" (
  "agent" text,
  "melting_boiling_point" text,
  "effectiveness_as_blood_agent" real,
  "persistence_open_area" real,
  "persistence_enclosed_area" real,
  "field_stability" real,
  "storage_stability" real,
  "toxicity_as_blood_agent" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the storage stability of Arsine with a toxicity of 8, and field stability less than 5?`:
```sql
                SELECT MIN("storage_stability") FROM "list_of_blood_agents" WHERE "toxicity_as_blood_agent">8 AND "agent"='arsine' AND "field_stability"<5;
```
## Task
Generate a SQL query to answer the following question:
`What is the field stability of Cyanogen Bromide that has an effectiveness of 9?`

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

CREATE TABLE "list_of_blood_agents" (
  "agent" text,
  "melting_boiling_point" text,
  "effectiveness_as_blood_agent" real,
  "persistence_open_area" real,
  "persistence_enclosed_area" real,
  "field_stability" real,
  "storage_stability" real,
  "toxicity_as_blood_agent" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the field stability of Cyanogen Bromide that has an effectiveness of 9?`:
```sql
                SELECT COUNT("field_stability") FROM "list_of_blood_agents" WHERE "agent"='cyanogen bromide' AND "effectiveness_as_blood_agent">9;
```
## Task
Generate a SQL query to answer the following question:
`When the Venue is mcg what is the Home team?`

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

CREATE TABLE "round_13" (
  "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 `When the Venue is mcg what is the Home team?`:
```sql
                SELECT "home_team" FROM "round_13" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`If the Away team had a score of 14.14 (98), what's the name of the Away team?`

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

CREATE TABLE "round_13" (
  "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 `If the Away team had a score of 14.14 (98), what's the name of the Away team?`:
```sql
                SELECT "away_team" FROM "round_13" WHERE "away_team_score"='14.14 (98)';
```
## Task
Generate a SQL query to answer the following question:
`When the Away team was hawthorn, what's the Home team?`

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

CREATE TABLE "round_13" (
  "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 `When the Away team was hawthorn, what's the Home team?`:
```sql
                SELECT "home_team" FROM "round_13" WHERE "away_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`When the away team scored 9.14 (68), what was the home teams score?`

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

CREATE TABLE "round_13" (
  "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 `When the away team scored 9.14 (68), what was the home teams score?`:
```sql
                SELECT "home_team_score" FROM "round_13" WHERE "away_team_score"='9.14 (68)';
```
## Task
Generate a SQL query to answer the following question:
`What is the total associated with a Clean & jerk of 135, and a Snatch of 115?`

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

CREATE TABLE "flyweight_56_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 total associated with a Clean & jerk of 135, and a Snatch of 115?`:
```sql
                SELECT "total_kg" FROM "flyweight_56_kg" WHERE "clean_jerk"=135 AND "snatch"=115;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Bodyweight associated with a Clean & jerk larger than 120, and a Total (kg) of 245?`

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

CREATE TABLE "flyweight_56_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 highest Bodyweight associated with a Clean & jerk larger than 120, and a Total (kg) of 245?`:
```sql
                SELECT MAX("bodyweight") FROM "flyweight_56_kg" WHERE "clean_jerk">120 AND "total_kg"=245;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum Total (kg) associated with a Snatch less than 110, and a Clean & jerk larger than 120?`

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

CREATE TABLE "flyweight_56_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 Total (kg) associated with a Snatch less than 110, and a Clean & jerk larger than 120?`:
```sql
                SELECT SUM("total_kg") FROM "flyweight_56_kg" WHERE "snatch"<110 AND "clean_jerk">120;
```
## Task
Generate a SQL query to answer the following question:
`How many people have a Clean & jerk smaller than 142.5, a Bodyweight smaller than 55.58, and a Total (kg) larger than 210?`

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

CREATE TABLE "flyweight_56_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 `How many people have a Clean & jerk smaller than 142.5, a Bodyweight smaller than 55.58, and a Total (kg) larger than 210?`:
```sql
                SELECT COUNT("snatch") FROM "flyweight_56_kg" WHERE "clean_jerk"<142.5 AND "bodyweight"<55.58 AND "total_kg">210;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the object type which has an apparent magnitude more than 10.6 and declination of °44′07″`

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

CREATE TABLE "5101_5200" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text,
  "apparent_magnitude" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the object type which has an apparent magnitude more than 10.6 and declination of °44′07″`:
```sql
                SELECT "object_type" FROM "5101_5200" WHERE "apparent_magnitude">10.6 AND "declination_j2000"='°44′07″';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the declination with apparent magnitude more than 10.4 and NGC number of 5112`

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

CREATE TABLE "5101_5200" (
  "ngc_number" real,
  "object_type" text,
  "constellation" text,
  "right_ascension_j2000" text,
  "declination_j2000" text,
  "apparent_magnitude" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the declination with apparent magnitude more than 10.4 and NGC number of 5112`:
```sql
                SELECT "declination_j2000" FROM "5101_5200" WHERE "apparent_magnitude">10.4 AND "ngc_number"=5112;
```
## Task
Generate a SQL query to answer the following question:
`Which event has a Method of submission (triangle choke), and an Opponent of thiago tavares?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event has a Method of submission (triangle choke), and an Opponent of thiago tavares?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='submission (triangle choke)' AND "opponent"='thiago tavares';
```
## Task
Generate a SQL query to answer the following question:
`What is the result with a Round of 3, and an Opponent of keith wisniewski?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result with a Round of 3, and an Opponent of keith wisniewski?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "round"='3' AND "opponent"='keith wisniewski';
```
## Task
Generate a SQL query to answer the following question:
`Which time has eddie miller as opponent?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which time has eddie miller as opponent?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='eddie miller';
```
## Task
Generate a SQL query to answer the following question:
`What's the average Rd number for dane jackson with a pick number over 44?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average Rd number for dane jackson with a pick number over 44?`:
```sql
                SELECT AVG("rd_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='dane jackson' AND "pick_num">44;
```
## Task
Generate a SQL query to answer the following question:
`What's the largest pick number for corrie d'alessio with a rd number over 6?`

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

CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
  "rd_num" real,
  "pick_num" real,
  "player" text,
  "team_league" text,
  "reg_gp" real,
  "pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the largest pick number for corrie d'alessio with a rd number over 6?`:
```sql
                SELECT MAX("pick_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='corrie d''alessio' AND "rd_num">6;
```
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team at the Cavaliers game that had a score of 121–85?`

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

CREATE TABLE "january" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visiting team at the Cavaliers game that had a score of 121–85?`:
```sql
                SELECT "visitor" FROM "january" WHERE "score"='121–85';
```
## Task
Generate a SQL query to answer the following question:
`On what date did Melbourne play as the home team?`

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

CREATE TABLE "round_15" (
  "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 `On what date did Melbourne play as the home team?`:
```sql
                SELECT "date" FROM "round_15" WHERE "home_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the away team score when the home team scored 16.12 (108)?`

### 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 `How many points did the away team score when the home team scored 16.12 (108)?`:
```sql
                SELECT "away_team_score" FROM "round_9" WHERE "home_team_score"='16.12 (108)';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the home team score when the home team scored 18.19 (127)?`

### 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 `How many points did the home team score when the home team scored 18.19 (127)?`:
```sql
                SELECT "home_team_score" FROM "round_9" WHERE "away_team_score"='18.19 (127)';
```
## Task
Generate a SQL query to answer the following question:
`What team owns the Venue of western oval?`

### 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 team owns the Venue of western oval?`:
```sql
                SELECT "home_team" FROM "round_9" WHERE "venue"='western oval';
```
## Task
Generate a SQL query to answer the following question:
`What did the Victoria park home team score?`

### 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 did the Victoria park home team score?`:
```sql
                SELECT "home_team_score" FROM "round_9" WHERE "venue"='victoria park';
```
## Task
Generate a SQL query to answer the following question:
`What was the crowd size when geelong played home?`

### 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 was the crowd size when geelong played home?`:
```sql
                SELECT COUNT("crowd") FROM "round_9" WHERE "home_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What was the crowd size when the visiting team scored 23.18 (156)?`

### 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 was the crowd size when the visiting team scored 23.18 (156)?`:
```sql
                SELECT COUNT("crowd") FROM "round_9" WHERE "away_team_score"='23.18 (156)';
```
## Task
Generate a SQL query to answer the following question:
`Where did the away team play when they scored 22.14 (146)?`

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

CREATE TABLE "round_15" (
  "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 `Where did the away team play when they scored 22.14 (146)?`:
```sql
                SELECT "venue" FROM "round_15" WHERE "away_team_score"='22.14 (146)';
```
## Task
Generate a SQL query to answer the following question:
`Where did the home team play when they scored 18.20 (128)?`

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

CREATE TABLE "round_15" (
  "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 `Where did the home team play when they scored 18.20 (128)?`:
```sql
                SELECT "venue" FROM "round_15" WHERE "home_team_score"='18.20 (128)';
```
## Task
Generate a SQL query to answer the following question:
`Name the most that attendend when the venue was td banknorth garden and the series of montreal leads 3-1`

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

CREATE TABLE "eastern_conference_quarter_finals_vs_8" (
  "date" text,
  "venue" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most that attendend when the venue was td banknorth garden and the series of montreal leads 3-1`:
```sql
                SELECT MAX("attendance") FROM "eastern_conference_quarter_finals_vs_8" WHERE "venue"='td banknorth garden' AND "series"='montreal leads 3-1';
```
## Task
Generate a SQL query to answer the following question:
`Name the decision for boston bruins visitor`

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

CREATE TABLE "eastern_conference_quarter_finals_vs_8" (
  "date" text,
  "venue" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the decision for boston bruins visitor`:
```sql
                SELECT "decision" FROM "eastern_conference_quarter_finals_vs_8" WHERE "visitor"='boston bruins';
```
## Task
Generate a SQL query to answer the following question:
`What is the average total medals Egypt, who has less than 2 gold, has?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average total medals Egypt, who has less than 2 gold, has?`:
```sql
                SELECT AVG("total") FROM "medal_table" WHERE "nation"='egypt' AND "gold"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of gold medals Egypt, who has less than 0 silver, has?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of gold medals Egypt, who has less than 0 silver, has?`:
```sql
                SELECT COUNT("gold") FROM "medal_table" WHERE "nation"='egypt' AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest gold a team with less than 3 silver and more than 5 bronze medals has?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest gold a team with less than 3 silver and more than 5 bronze medals has?`:
```sql
                SELECT MAX("gold") FROM "medal_table" WHERE "silver"<3 AND "bronze">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the team with 1 bronze and 0 gold medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the team with 1 bronze and 0 gold medals?`:
```sql
                SELECT "rank" FROM "medal_table" WHERE "bronze"=1 AND "gold"=0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average % of population Tunisia, which has an average relative annual growth smaller than 1.03?`

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

CREATE TABLE "table" (
  "rank" text,
  "country_or_dependent_territory" text,
  "july_1_2013_projection" real,
  "pct_of_pop" real,
  "average_relative_annual_growth_pct" real,
  "average_absolute_annual_growth" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average % of population Tunisia, which has an average relative annual growth smaller than 1.03?`:
```sql
                SELECT AVG("pct_of_pop") FROM "table" WHERE "country_or_dependent_territory"='tunisia' AND "average_relative_annual_growth_pct"<1.03;
```
## Task
Generate a SQL query to answer the following question:
`What is the average relative annual growth of the country ranked 3 with an average absolute annual growth larger than 1,051,000?`

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

CREATE TABLE "table" (
  "rank" text,
  "country_or_dependent_territory" text,
  "july_1_2013_projection" real,
  "pct_of_pop" real,
  "average_relative_annual_growth_pct" real,
  "average_absolute_annual_growth" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average relative annual growth of the country ranked 3 with an average absolute annual growth larger than 1,051,000?`:
```sql
                SELECT AVG("average_relative_annual_growth_pct") FROM "table" WHERE "rank"='3' AND "average_absolute_annual_growth">'1,051,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the average relative annual growth of Lebanon, which has a July 1, 2013 projection larger than 4,127,000?`

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

CREATE TABLE "table" (
  "rank" text,
  "country_or_dependent_territory" text,
  "july_1_2013_projection" real,
  "pct_of_pop" real,
  "average_relative_annual_growth_pct" real,
  "average_absolute_annual_growth" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average relative annual growth of Lebanon, which has a July 1, 2013 projection larger than 4,127,000?`:
```sql
                SELECT SUM("average_relative_annual_growth_pct") FROM "table" WHERE "country_or_dependent_territory"='lebanon' AND "july_1_2013_projection">'4,127,000';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team at Kardinia Park?`

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

CREATE TABLE "round_5" (
  "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 the home team at Kardinia Park?`:
```sql
                SELECT "home_team" FROM "round_5" WHERE "venue"='kardinia park';
```
## Task
Generate a SQL query to answer the following question:
`What was Footscray's score as the home team?`

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

CREATE TABLE "round_5" (
  "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 Footscray's score as the home team?`:
```sql
                SELECT "home_team_score" FROM "round_5" WHERE "home_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`On what date was there a competition in which the home team was the Suns?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was there a competition in which the home team was the Suns?`:
```sql
                SELECT "date" FROM "november" WHERE "home"='suns';
```
## Task
Generate a SQL query to answer the following question:
`In the competition in which the visiting team was the Suns, who was the leading scorer?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the competition in which the visiting team was the Suns, who was the leading scorer?`:
```sql
                SELECT "leading_scorer" FROM "november" WHERE "visitor"='suns';
```
## Task
Generate a SQL query to answer the following question:
`What was the record in the competition in which the home team was the Mavericks?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record in the competition in which the home team was the Mavericks?`:
```sql
                SELECT "record" FROM "november" WHERE "home"='mavericks';
```
## Task
Generate a SQL query to answer the following question:
`What's the average year a Rangam movie came out?`

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

CREATE TABLE "telugu_songs" (
  "year" real,
  "song_title" text,
  "movie" text,
  "music_director" text,
  "co_singers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average year a Rangam movie came out?`:
```sql
                SELECT AVG("year") FROM "telugu_songs" WHERE "movie"='rangam';
```
## Task
Generate a SQL query to answer the following question:
`What year was "Ulike o Chilake" released?`

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

CREATE TABLE "telugu_songs" (
  "year" real,
  "song_title" text,
  "movie" text,
  "music_director" text,
  "co_singers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was "Ulike o Chilake" released?`:
```sql
                SELECT "year" FROM "telugu_songs" WHERE "song_title"='\"ulike o chilake\"';
```
## Task
Generate a SQL query to answer the following question:
`What movie was "anti pettukundhuna" in?`

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

CREATE TABLE "telugu_songs" (
  "year" real,
  "song_title" text,
  "movie" text,
  "music_director" text,
  "co_singers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What movie was "anti pettukundhuna" in?`:
```sql
                SELECT "movie" FROM "telugu_songs" WHERE "song_title"='\"anti pettukundhuna\"';
```