cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many poles have 4 Starts of 4 and position of 46th?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many poles have 4 Starts of 4 and position of 46th?`:
```sql
                SELECT COUNT("poles") FROM "nascar_nationwide_series" WHERE "starts"=4 AND "position"='46th';
```
## Task
Generate a SQL query to answer the following question:
`Sum of m. night shyamalan ranks?`

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

CREATE TABLE "highest_grossing_films_of_2002" (
  "rank" real,
  "title" text,
  "studio" text,
  "director_s" text,
  "worldwide_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `Sum of m. night shyamalan ranks?`:
```sql
                SELECT SUM("rank") FROM "highest_grossing_films_of_2002" WHERE "director_s"='m. night shyamalan';
```
## Task
Generate a SQL query to answer the following question:
`Director for Star Wars Episode II: attack of the clones?`

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

CREATE TABLE "highest_grossing_films_of_2002" (
  "rank" real,
  "title" text,
  "studio" text,
  "director_s" text,
  "worldwide_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `Director for Star Wars Episode II: attack of the clones?`:
```sql
                SELECT "director_s" FROM "highest_grossing_films_of_2002" WHERE "title"='star wars episode ii: attack of the clones';
```
## Task
Generate a SQL query to answer the following question:
`What was the tie no when Oxford city was the away team?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tie no when Oxford city was the away team?`:
```sql
                SELECT "tie_no" FROM "first_round_proper" WHERE "away_team"='oxford city';
```
## Task
Generate a SQL query to answer the following question:
`What was the tie no when Wrexham was the away team?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tie no when Wrexham was the away team?`:
```sql
                SELECT "tie_no" FROM "first_round_proper" WHERE "away_team"='wrexham';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when Spennymoor United as the away team?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when Spennymoor United as the away team?`:
```sql
                SELECT "score" FROM "first_round_proper" WHERE "away_team"='spennymoor united';
```
## Task
Generate a SQL query to answer the following question:
`What date was Grimsby Town the away team?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was Grimsby Town the away team?`:
```sql
                SELECT "date" FROM "first_round_proper" WHERE "away_team"='grimsby town';
```
## Task
Generate a SQL query to answer the following question:
`Who was eliminated on Banana Night?`

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

CREATE TABLE "contestants_and_final_ranking" (
  "name" text,
  "category" text,
  "eliminated" text,
  "date" text,
  "special_guest" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was eliminated on Banana Night?`:
```sql
                SELECT "name" FROM "contestants_and_final_ranking" WHERE "eliminated"='banana night';
```
## Task
Generate a SQL query to answer the following question:
`Who was the special guest when the category was vocal groups and the name was Romantic?`

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

CREATE TABLE "contestants_and_final_ranking" (
  "name" text,
  "category" text,
  "eliminated" text,
  "date" text,
  "special_guest" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the special guest when the category was vocal groups and the name was Romantic?`:
```sql
                SELECT "special_guest" FROM "contestants_and_final_ranking" WHERE "category"='vocal groups' AND "name"='romantic';
```
## Task
Generate a SQL query to answer the following question:
`On what date was elimination on final night?`

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

CREATE TABLE "contestants_and_final_ranking" (
  "name" text,
  "category" text,
  "eliminated" text,
  "date" text,
  "special_guest" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was elimination on final night?`:
```sql
                SELECT "date" FROM "contestants_and_final_ranking" WHERE "eliminated"='final night';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of games for the opponent in Washington?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of games for the opponent in Washington?`:
```sql
                SELECT COUNT("game") FROM "regular_season" WHERE "opponent"='washington';
```
## Task
Generate a SQL query to answer the following question:
`How many stories have a height less than 138 meters with a completion date in 1971?`

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

CREATE TABLE "tallest_buildings" (
  "name" text,
  "location" text,
  "height_m" real,
  "stories" real,
  "year_of_completion" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many stories have a height less than 138 meters with a completion date in 1971?`:
```sql
                SELECT "stories" FROM "tallest_buildings" WHERE "height_m"<138 AND "year_of_completion"=1971;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest number of stories in Recife completed later than 2007 with a height less than 135 meters?`

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

CREATE TABLE "tallest_buildings" (
  "name" text,
  "location" text,
  "height_m" real,
  "stories" real,
  "year_of_completion" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number of stories in Recife completed later than 2007 with a height less than 135 meters?`:
```sql
                SELECT MAX("stories") FROM "tallest_buildings" WHERE "location"='recife' AND "year_of_completion">2007 AND "height_m"<135;
```
## Task
Generate a SQL query to answer the following question:
`Which Sanskrit has an English of mindfulness of breathing?`

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

CREATE TABLE "key_terms" (
  "english" text,
  "pali" text,
  "sanskrit" text,
  "chinese" text,
  "tibetan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Sanskrit has an English of mindfulness of breathing?`:
```sql
                SELECT "sanskrit" FROM "key_terms" WHERE "english"='mindfulness of breathing';
```
## Task
Generate a SQL query to answer the following question:
`Which Sanskrit has a Chinese of —, and an English of cultivation of settling?`

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

CREATE TABLE "key_terms" (
  "english" text,
  "pali" text,
  "sanskrit" text,
  "chinese" text,
  "tibetan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Sanskrit has a Chinese of —, and an English of cultivation of settling?`:
```sql
                SELECT "sanskrit" FROM "key_terms" WHERE "chinese"='—' AND "english"='cultivation of settling';
```
## Task
Generate a SQL query to answer the following question:
`Which Pali has an English of mindfulness of breathing?`

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

CREATE TABLE "key_terms" (
  "english" text,
  "pali" text,
  "sanskrit" text,
  "chinese" text,
  "tibetan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pali has an English of mindfulness of breathing?`:
```sql
                SELECT "pali" FROM "key_terms" WHERE "english"='mindfulness of breathing';
```
## Task
Generate a SQL query to answer the following question:
`Which Pali has an English of meditative concentration?`

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

CREATE TABLE "key_terms" (
  "english" text,
  "pali" text,
  "sanskrit" text,
  "chinese" text,
  "tibetan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pali has an English of meditative concentration?`:
```sql
                SELECT "pali" FROM "key_terms" WHERE "english"='meditative concentration';
```
## Task
Generate a SQL query to answer the following question:
`Which Chinese has a Pali of atappa?`

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

CREATE TABLE "key_terms" (
  "english" text,
  "pali" text,
  "sanskrit" text,
  "chinese" text,
  "tibetan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Chinese has a Pali of atappa?`:
```sql
                SELECT "chinese" FROM "key_terms" WHERE "pali"='atappa';
```
## Task
Generate a SQL query to answer the following question:
`Which English has a Sanskrit of samādhi?`

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

CREATE TABLE "key_terms" (
  "english" text,
  "pali" text,
  "sanskrit" text,
  "chinese" text,
  "tibetan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which English has a Sanskrit of samādhi?`:
```sql
                SELECT "english" FROM "key_terms" WHERE "sanskrit"='samādhi';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player in guard position from Stephen F. Austin in a round less than 8?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player in guard position from Stephen F. Austin in a round less than 8?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "round"<8 AND "position"='guard' AND "school_club_team"='stephen f. austin';
```
## Task
Generate a SQL query to answer the following question:
`Which position has a pick less than 41 from Ohio State?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has a pick less than 41 from Ohio State?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "pick"<41 AND "school_club_team"='ohio state';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 2006 when 2002 is Grand Slam Tournaments?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2006 when 2002 is Grand Slam Tournaments?`:
```sql
                SELECT "2006" FROM "doubles_performance_timeline" WHERE "2002"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 2002 when 2006 is Grand Slam Tournaments?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2002 when 2006 is Grand Slam Tournaments?`:
```sql
                SELECT "2002" FROM "doubles_performance_timeline" WHERE "2006"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 2005 when 2002 shows 0–1?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2005 when 2002 shows 0–1?`:
```sql
                SELECT "2005" FROM "doubles_performance_timeline" WHERE "2002"='0–1';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 2006 when 2002 is 0–1?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2006 when 2002 is 0–1?`:
```sql
                SELECT "2006" FROM "doubles_performance_timeline" WHERE "2002"='0–1';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 2002 when the 2004 is A, and the 2005 is 1r?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2002 when the 2004 is A, and the 2005 is 1r?`:
```sql
                SELECT "2002" FROM "doubles_performance_timeline" WHERE "2004"='a' AND "2005"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 2004 when 2005 is A, 2006 is A, tournament is US Open?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 2004 when 2005 is A, 2006 is A, tournament is US Open?`:
```sql
                SELECT "2004" FROM "doubles_performance_timeline" WHERE "2005"='a' AND "2006"='a' AND "tournament"='us open';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on December 2, 1962?`

### 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 `Who was the opponent on December 2, 1962?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='december 2, 1962';
```
## Task
Generate a SQL query to answer the following question:
`What is the Population of the Town with a Census Ranking of 1,379 of 5,008 and an Area km 2 smaller than 8.35?`

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

CREATE TABLE "communities" (
  "official_name" text,
  "status" text,
  "area_km_2" real,
  "population" real,
  "census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Population of the Town with a Census Ranking of 1,379 of 5,008 and an Area km 2 smaller than 8.35?`:
```sql
                SELECT MAX("population") FROM "communities" WHERE "status"='town' AND "census_ranking"='1,379 of 5,008' AND "area_km_2"<8.35;
```
## Task
Generate a SQL query to answer the following question:
`What is the Official Name of the Community with an Area km 2 of 16.13?`

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

CREATE TABLE "communities" (
  "official_name" text,
  "status" text,
  "area_km_2" real,
  "population" real,
  "census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Official Name of the Community with an Area km 2 of 16.13?`:
```sql
                SELECT "official_name" FROM "communities" WHERE "area_km_2"=16.13;
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when To Par is "–2", and when Player is "Tsuneyuki Nakajima"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when To Par is "–2", and when Player is "Tsuneyuki Nakajima"?`:
```sql
                SELECT "country" FROM "second_round" WHERE "to_par"='–2' AND "player"='tsuneyuki nakajima';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Score is "72-65=137"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Score is "72-65=137"?`:
```sql
                SELECT "country" FROM "second_round" WHERE "score"='72-65=137';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Place is "T3", and when Player is "Jim Thorpe"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Place is "T3", and when Player is "Jim Thorpe"?`:
```sql
                SELECT "country" FROM "second_round" WHERE "place"='t3' AND "player"='jim thorpe';
```
## Task
Generate a SQL query to answer the following question:
`Who was the team for game 34?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the team for game 34?`:
```sql
                SELECT "team" FROM "game_log" WHERE "game"=34;
```
## Task
Generate a SQL query to answer the following question:
`How many goals for had a drawn more than 12 for the Goole Town team, as well as more than 60 goals against?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals for had a drawn more than 12 for the Goole Town team, as well as more than 60 goals against?`:
```sql
                SELECT SUM("goals_for") FROM "final_table" WHERE "drawn">12 AND "team"='goole town' AND "goals_against">60;
```
## Task
Generate a SQL query to answer the following question:
`What are the average goals for with a drawn higher than 7 and goals against less than 86, as well as more than 11 losses and more than 42 games played?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the average goals for with a drawn higher than 7 and goals against less than 86, as well as more than 11 losses and more than 42 games played?`:
```sql
                SELECT AVG("goals_for") FROM "final_table" WHERE "drawn">7 AND "goals_against"<86 AND "lost">11 AND "played">42;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest lost with a drawn more than 11, a position lower than 17 and more than 61 goals?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest lost with a drawn more than 11, a position lower than 17 and more than 61 goals?`:
```sql
                SELECT MAX("lost") FROM "final_table" WHERE "drawn">11 AND "position"<17 AND "goals_for">61;
```
## Task
Generate a SQL query to answer the following question:
`Who held the title of Ruler?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who held the title of Ruler?`:
```sql
                SELECT "name" FROM "vassal_states" WHERE "title"='ruler';
```
## Task
Generate a SQL query to answer the following question:
`What type of state did the ruler have a title?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of state did the ruler have a title?`:
```sql
                SELECT "type" FROM "vassal_states" WHERE "title"='ruler';
```
## Task
Generate a SQL query to answer the following question:
`In what state did Jing have the title of Marquis?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what state did Jing have the title of Marquis?`:
```sql
                SELECT "state" FROM "vassal_states" WHERE "title"='marquis' AND "name"='jing';
```
## Task
Generate a SQL query to answer the following question:
`What was Gongbo's title?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Gongbo's title?`:
```sql
                SELECT "title" FROM "vassal_states" WHERE "name"='gongbo';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of Yi's state?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of Yi's state?`:
```sql
                SELECT "state" FROM "vassal_states" WHERE "name"='yi';
```
## Task
Generate a SQL query to answer the following question:
`What is the Devices per channel where the Name is sata revision 3.0?`

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

CREATE TABLE "comparison_with_other_buses" (
  "name" text,
  "raw_bandwidth_mbit_s" text,
  "max_cable_length_m" text,
  "power_provided" text,
  "devices_per_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Devices per channel where the Name is sata revision 3.0?`:
```sql
                SELECT "devices_per_channel" FROM "comparison_with_other_buses" WHERE "name"='sata revision 3.0';
```
## Task
Generate a SQL query to answer the following question:
`What is the Raw bandwidth (Mbit/s) for the SAS 300?`

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

CREATE TABLE "comparison_with_other_buses" (
  "name" text,
  "raw_bandwidth_mbit_s" text,
  "max_cable_length_m" text,
  "power_provided" text,
  "devices_per_channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Raw bandwidth (Mbit/s) for the SAS 300?`:
```sql
                SELECT "raw_bandwidth_mbit_s" FROM "comparison_with_other_buses" WHERE "name"='sas 300';
```
## Task
Generate a SQL query to answer the following question:
`Which Ground has a Home team score of 18.12 (120)?`

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

CREATE TABLE "group_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text,
  "crowd" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Ground has a Home team score of 18.12 (120)?`:
```sql
                SELECT "ground" FROM "group_2" WHERE "home_team_score"='18.12 (120)';
```
## Task
Generate a SQL query to answer the following question:
`Name the Away team score which has an Away team of st kilda, and a Crowd of 8157?`

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

CREATE TABLE "group_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text,
  "crowd" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Away team score which has an Away team of st kilda, and a Crowd of 8157?`:
```sql
                SELECT "away_team_score" FROM "group_2" WHERE "away_team"='st kilda' AND "crowd"=8157;
```
## Task
Generate a SQL query to answer the following question:
`Name the Away team which have a Ground of colonial stadium on friday, 2 march?`

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

CREATE TABLE "group_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text,
  "crowd" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Away team which have a Ground of colonial stadium on friday, 2 march?`:
```sql
                SELECT "away_team" FROM "group_2" WHERE "ground"='colonial stadium' AND "date"='friday, 2 march';
```
## Task
Generate a SQL query to answer the following question:
`Which team has 71 Points and F/Laps of 4?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has 71 Points and F/Laps of 4?`:
```sql
                SELECT "team" FROM "career_summary" WHERE "points"='71' AND "f_laps"='4';
```
## Task
Generate a SQL query to answer the following question:
`What Poles do Team jva have?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Poles do Team jva have?`:
```sql
                SELECT "poles" FROM "career_summary" WHERE "team"='team jva';
```
## Task
Generate a SQL query to answer the following question:
`If the Season is later than 2008 and Races is 11, what ate the Points?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the Season is later than 2008 and Races is 11, what ate the Points?`:
```sql
                SELECT "points" FROM "career_summary" WHERE "races"='11' AND "season">2008;
```
## Task
Generate a SQL query to answer the following question:
`What Position is Team Sahara Force india f1 team with 46 Points?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Position is Team Sahara Force india f1 team with 46 Points?`:
```sql
                SELECT "position" FROM "career_summary" WHERE "team"='sahara force india f1 team' AND "points"='46';
```
## Task
Generate a SQL query to answer the following question:
`Which Poles have a position of 4th?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Poles have a position of 4th?`:
```sql
                SELECT "poles" FROM "career_summary" WHERE "position"='4th';
```
## Task
Generate a SQL query to answer the following question:
`Which F/Laps have 27 Points?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which F/Laps have 27 Points?`:
```sql
                SELECT "f_laps" FROM "career_summary" WHERE "points"='27';
```
## Task
Generate a SQL query to answer the following question:
`What country has the SBA Towers Tower Hayneville?`

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

CREATE TABLE "structures_past_or_present_between_500_a" (
  "name" text,
  "pinnacle_height" text,
  "structure_type" text,
  "main_use" text,
  "country" text,
  "town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has the SBA Towers Tower Hayneville?`:
```sql
                SELECT "country" FROM "structures_past_or_present_between_500_a" WHERE "name"='sba towers tower hayneville';
```
## Task
Generate a SQL query to answer the following question:
`What type of structure is there at the American Tower Christmas?`

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

CREATE TABLE "structures_past_or_present_between_500_a" (
  "name" text,
  "pinnacle_height" text,
  "structure_type" text,
  "main_use" text,
  "country" text,
  "town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of structure is there at the American Tower Christmas?`:
```sql
                SELECT "structure_type" FROM "structures_past_or_present_between_500_a" WHERE "name"='american tower christmas';
```
## Task
Generate a SQL query to answer the following question:
`What's the name of the structure at Egypt, Arkansas?`

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

CREATE TABLE "structures_past_or_present_between_500_a" (
  "name" text,
  "pinnacle_height" text,
  "structure_type" text,
  "main_use" text,
  "country" text,
  "town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of the structure at Egypt, Arkansas?`:
```sql
                SELECT "name" FROM "structures_past_or_present_between_500_a" WHERE "town"='egypt, arkansas';
```
## Task
Generate a SQL query to answer the following question:
`What country was the woman from who was born 1976-07-23 and became a grandmaster in 1991?`

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

CREATE TABLE "grandmasters" (
  "name" text,
  "country" text,
  "birth_date" text,
  "date" real,
  "earned" text,
  "peak_rating_nov_2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country was the woman from who was born 1976-07-23 and became a grandmaster in 1991?`:
```sql
                SELECT "country" FROM "grandmasters" WHERE "date"=1991 AND "birth_date"='1976-07-23';
```
## Task
Generate a SQL query to answer the following question:
`Name the Points which has a Team of sportivo luqueño, and Wins larger than 1?`

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

CREATE TABLE "pre_libertadores_playoff" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "bonus_points" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Points which has a Team of sportivo luqueño, and Wins larger than 1?`:
```sql
                SELECT MIN("points") FROM "pre_libertadores_playoff" WHERE "team"='sportivo luqueño' AND "wins">1;
```
## Task
Generate a SQL query to answer the following question:
`Name the Wins which has Points smaller than 10, Losses smaller than 3, and a Scored of 11?`

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

CREATE TABLE "pre_libertadores_playoff" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "bonus_points" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Wins which has Points smaller than 10, Losses smaller than 3, and a Scored of 11?`:
```sql
                SELECT MIN("wins") FROM "pre_libertadores_playoff" WHERE "points"<10 AND "losses"<3 AND "scored"=11;
```
## Task
Generate a SQL query to answer the following question:
`Please name the highest Conceded which has a Played smaller than 5?`

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

CREATE TABLE "pre_libertadores_playoff" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "bonus_points" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Please name the highest Conceded which has a Played smaller than 5?`:
```sql
                SELECT MAX("conceded") FROM "pre_libertadores_playoff" WHERE "played"<5;
```
## Task
Generate a SQL query to answer the following question:
`Please name the Losses that has a Played smaller than 5?`

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

CREATE TABLE "pre_libertadores_playoff" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "bonus_points" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Please name the Losses that has a Played smaller than 5?`:
```sql
                SELECT MAX("losses") FROM "pre_libertadores_playoff" WHERE "played"<5;
```
## Task
Generate a SQL query to answer the following question:
`Name the Scored which has a Position larger than 6?`

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

CREATE TABLE "pre_libertadores_playoff" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "scored" real,
  "conceded" real,
  "bonus_points" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Scored which has a Position larger than 6?`:
```sql
                SELECT COUNT("scored") FROM "pre_libertadores_playoff" WHERE "position">6;
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest week with an opponent of cincinnati bengals?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest week with an opponent of cincinnati bengals?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "opponent"='cincinnati bengals';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum for the week with the date october 30, 1994?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum for the week with the date october 30, 1994?`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "date"='october 30, 1994';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for a week before 9, and a opponent of dallas cowboys?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for a week before 9, and a opponent of dallas cowboys?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"<9 AND "opponent"='dallas cowboys';
```
## Task
Generate a SQL query to answer the following question:
`What is the biggest week with an opponent of washington redskins?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the biggest week with an opponent of washington redskins?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "opponent"='washington redskins';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for a week larger than 3, and an opponent of philadelphia eagles?`

### 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 was the attendance for a week larger than 3, and an opponent of philadelphia eagles?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week">3 AND "opponent"='philadelphia eagles';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the match with Jeff Monson 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,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the match with Jeff Monson as opponent?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='jeff monson';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds was the match against Jason Fairn?`

### 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,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds was the match against Jason Fairn?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='jason fairn';
```
## Task
Generate a SQL query to answer the following question:
`What is the method of the match where there was a loss to Carlos Newton in round 1?`

### 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,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the method of the match where there was a loss to Carlos Newton in round 1?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"='1' AND "res"='loss' AND "opponent"='carlos newton';
```
## Task
Generate a SQL query to answer the following question:
`Who had the most points in games over 59?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the most points in games over 59?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "game">59;
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the game against San Antonio?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the game against San Antonio?`:
```sql
                SELECT "score" FROM "game_log" WHERE "team"='san antonio';
```
## Task
Generate a SQL query to answer the following question:
`Who had the most assists in the game against Indiana?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the most assists in the game against Indiana?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "team"='indiana';
```
## Task
Generate a SQL query to answer the following question:
`What is the UK Railway with an ObjectNumber of 1975-7023?`

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

CREATE TABLE "standard_gauge_designs_1870_to_1899" (
  "railway" text,
  "built" real,
  "wheels" text,
  "location" text,
  "object_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the UK Railway with an ObjectNumber of 1975-7023?`:
```sql
                SELECT "railway" FROM "standard_gauge_designs_1870_to_1899" WHERE "object_number"='1975-7023';
```
## Task
Generate a SQL query to answer the following question:
`Who was the manager that was positioned 11th in table and resigned in departure?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the manager that was positioned 11th in table and resigned in departure?`:
```sql
                SELECT "replaced_by" FROM "managerial_changes" WHERE "position_in_table"='11th' AND "manner_of_departure"='resigned';
```
## Task
Generate a SQL query to answer the following question:
`what is the least tournaments played when the year is 1998?`

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

CREATE TABLE "pga_tour_results" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the least tournaments played when the year is 1998?`:
```sql
                SELECT MIN("tournaments_played") FROM "pga_tour_results" WHERE "year"=1998;
```
## Task
Generate a SQL query to answer the following question:
`what is the year when tournaments played is less than 2, cuts made is 1 and earnings ($) is less than 10,547?`

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

CREATE TABLE "pga_tour_results" (
  "year" real,
  "tournaments_played" real,
  "cuts_made" real,
  "wins" real,
  "best_finish" text,
  "earnings" real,
  "money_list_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the year when tournaments played is less than 2, cuts made is 1 and earnings ($) is less than 10,547?`:
```sql
                SELECT SUM("year") FROM "pga_tour_results" WHERE "tournaments_played"<2 AND "cuts_made"=1 AND "earnings"<'10,547';
```