cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What round was at the A venue with a attendance more than 14,314?`

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

CREATE TABLE "scottish_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was at the A venue with a attendance more than 14,314?`:
```sql
                SELECT "round" FROM "scottish_cup" WHERE "venue"='a' AND "attendance">'14,314';
```
## Task
Generate a SQL query to answer the following question:
`What's the callsign of Mom's Radio 101.9 Zamboanga?`

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

CREATE TABLE "sbn_mom_s_radio_stations" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the callsign of Mom's Radio 101.9 Zamboanga?`:
```sql
                SELECT "callsign" FROM "sbn_mom_s_radio_stations" WHERE "branding"='mom''s radio 101.9 zamboanga';
```
## Task
Generate a SQL query to answer the following question:
`What's the power when the frequency is 101.5mhz?`

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

CREATE TABLE "sbn_mom_s_radio_stations" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the power when the frequency is 101.5mhz?`:
```sql
                SELECT "power_k_w" FROM "sbn_mom_s_radio_stations" WHERE "frequency"='101.5mhz';
```
## Task
Generate a SQL query to answer the following question:
`What's the location of Mom's Radio 95.9 Naga having a power of 10kw?`

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

CREATE TABLE "sbn_mom_s_radio_stations" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the location of Mom's Radio 95.9 Naga having a power of 10kw?`:
```sql
                SELECT "location" FROM "sbn_mom_s_radio_stations" WHERE "power_k_w"='10kw' AND "branding"='mom''s radio 95.9 naga';
```
## Task
Generate a SQL query to answer the following question:
`What's the callsign in Tacloban?`

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

CREATE TABLE "sbn_mom_s_radio_stations" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the callsign in Tacloban?`:
```sql
                SELECT "callsign" FROM "sbn_mom_s_radio_stations" WHERE "location"='tacloban';
```
## Task
Generate a SQL query to answer the following question:
`What's the power of Mom's Radio 101.5 Tacloban?`

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

CREATE TABLE "sbn_mom_s_radio_stations" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the power of Mom's Radio 101.5 Tacloban?`:
```sql
                SELECT "power_k_w" FROM "sbn_mom_s_radio_stations" WHERE "branding"='mom''s radio 101.5 tacloban';
```
## Task
Generate a SQL query to answer the following question:
`Which Built at has a Date of 1946, and a 1947 Nos of 3556/7?`

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

CREATE TABLE "construction" (
  "1946_nos" text,
  "1947_nos" text,
  "date" real,
  "built_at" text,
  "lms_nos" text,
  "br_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Built at has a Date of 1946, and a 1947 Nos of 3556/7?`:
```sql
                SELECT "built_at" FROM "construction" WHERE "date"=1946 AND "1947_nos"='3556/7';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a 1946 Nos of 3156/7?`

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

CREATE TABLE "construction" (
  "1946_nos" text,
  "1947_nos" text,
  "date" real,
  "built_at" text,
  "lms_nos" text,
  "br_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a 1946 Nos of 3156/7?`:
```sql
                SELECT AVG("date") FROM "construction" WHERE "1946_nos"='3156/7';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a 1947 Nos of 3525-34?`

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

CREATE TABLE "construction" (
  "1946_nos" text,
  "1947_nos" text,
  "date" real,
  "built_at" text,
  "lms_nos" text,
  "br_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a 1947 Nos of 3525-34?`:
```sql
                SELECT COUNT("date") FROM "construction" WHERE "1947_nos"='3525-34';
```
## Task
Generate a SQL query to answer the following question:
`Which 1947 Nos has a BR Nos of 48730-9?`

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

CREATE TABLE "construction" (
  "1946_nos" text,
  "1947_nos" text,
  "date" real,
  "built_at" text,
  "lms_nos" text,
  "br_nos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1947 Nos has a BR Nos of 48730-9?`:
```sql
                SELECT "1947_nos" FROM "construction" WHERE "br_nos"='48730-9';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of losses for the game with a win % of 71.43%, and No Result is more than 0?`

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

CREATE TABLE "performance_summary" (
  "year" text,
  "matches" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of losses for the game with a win % of 71.43%, and No Result is more than 0?`:
```sql
                SELECT SUM("losses") FROM "performance_summary" WHERE "win_pct"='71.43%' AND "no_result">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of wins in 2010, when there were more than 14 matches?`

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

CREATE TABLE "performance_summary" (
  "year" text,
  "matches" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of wins in 2010, when there were more than 14 matches?`:
```sql
                SELECT COUNT("wins") FROM "performance_summary" WHERE "year"='2010' AND "matches">14;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of wins when there are 14 matches, and the No Result was less than 0?`

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

CREATE TABLE "performance_summary" (
  "year" text,
  "matches" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of wins when there are 14 matches, and the No Result was less than 0?`:
```sql
                SELECT AVG("wins") FROM "performance_summary" WHERE "matches"=14 AND "no_result"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of losses when there were 14 matches, and the No Result was larger than 0?`

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

CREATE TABLE "performance_summary" (
  "year" text,
  "matches" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of losses when there were 14 matches, and the No Result was larger than 0?`:
```sql
                SELECT SUM("losses") FROM "performance_summary" WHERE "matches"=14 AND "no_result">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of matches when the wins are less than 8, and losses of 7, in 2011?`

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

CREATE TABLE "performance_summary" (
  "year" text,
  "matches" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of matches when the wins are less than 8, and losses of 7, in 2011?`:
```sql
                SELECT SUM("matches") FROM "performance_summary" WHERE "wins"<8 AND "losses"=7 AND "year"='2011';
```
## Task
Generate a SQL query to answer the following question:
`What year was the Win percentage 50.00%, with more than 14 matches, and wins more than 8?`

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

CREATE TABLE "performance_summary" (
  "year" text,
  "matches" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the Win percentage 50.00%, with more than 14 matches, and wins more than 8?`:
```sql
                SELECT "year" FROM "performance_summary" WHERE "win_pct"='50.00%' AND "matches">14 AND "wins">8;
```
## Task
Generate a SQL query to answer the following question:
`What area has less than 0.97 mil in population and is on the east?`

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

CREATE TABLE "regions_of_iceland" (
  "landsv_i" text,
  "english" text,
  "population_2011_01_01" text,
  "area_km" text,
  "pop_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What area has less than 0.97 mil in population and is on the east?`:
```sql
                SELECT "area_km" FROM "regions_of_iceland" WHERE "pop_km"<0.97 AND "english"='east';
```
## Task
Generate a SQL query to answer the following question:
`What is the area for a population of 0.58 km?`

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

CREATE TABLE "regions_of_iceland" (
  "landsv_i" text,
  "english" text,
  "population_2011_01_01" text,
  "area_km" text,
  "pop_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area for a population of 0.58 km?`:
```sql
                SELECT "area_km" FROM "regions_of_iceland" WHERE "pop_km"=0.58;
```
## Task
Generate a SQL query to answer the following question:
`what is the method when the result is loss on january 19, 2008?`

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

CREATE TABLE "post_show_success" (
  "result" text,
  "tuf_competitor" text,
  "opponent" text,
  "method" text,
  "event" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the method when the result is loss on january 19, 2008?`:
```sql
                SELECT "method" FROM "post_show_success" WHERE "result"='loss' AND "date"='january 19, 2008';
```
## Task
Generate a SQL query to answer the following question:
`when is the opponent lyoto machida?`

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

CREATE TABLE "post_show_success" (
  "result" text,
  "tuf_competitor" text,
  "opponent" text,
  "method" text,
  "event" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `when is the opponent lyoto machida?`:
```sql
                SELECT "date" FROM "post_show_success" WHERE "opponent"='lyoto machida';
```
## Task
Generate a SQL query to answer the following question:
`who is the opponent when the method is tko (punches) at 4:26 of round 1?`

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

CREATE TABLE "post_show_success" (
  "result" text,
  "tuf_competitor" text,
  "opponent" text,
  "method" text,
  "event" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the opponent when the method is tko (punches) at 4:26 of round 1?`:
```sql
                SELECT "opponent" FROM "post_show_success" WHERE "method"='tko (punches) at 4:26 of round 1';
```
## Task
Generate a SQL query to answer the following question:
`who is the tuf competitor when the method id decision (unanimous)?`

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

CREATE TABLE "post_show_success" (
  "result" text,
  "tuf_competitor" text,
  "opponent" text,
  "method" text,
  "event" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the tuf competitor when the method id decision (unanimous)?`:
```sql
                SELECT "tuf_competitor" FROM "post_show_success" WHERE "method"='decision (unanimous)';
```
## Task
Generate a SQL query to answer the following question:
`who is the opponent when the method is submission (rear naked choke) at 4:02 of round 2?`

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

CREATE TABLE "post_show_success" (
  "result" text,
  "tuf_competitor" text,
  "opponent" text,
  "method" text,
  "event" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the opponent when the method is submission (rear naked choke) at 4:02 of round 2?`:
```sql
                SELECT "opponent" FROM "post_show_success" WHERE "method"='submission (rear naked choke) at 4:02 of round 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue where the melbourne tigers play their home games?`

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

CREATE TABLE "round_6" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue where the melbourne tigers play their home games?`:
```sql
                SELECT "venue" FROM "round_6" WHERE "home_team"='melbourne tigers';
```
## Task
Generate a SQL query to answer the following question:
`What team has theoir home games in the venue of gold coast convention centre?`

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

CREATE TABLE "round_6" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team has theoir home games in the venue of gold coast convention centre?`:
```sql
                SELECT "home_team" FROM "round_6" WHERE "venue"='gold coast convention centre';
```
## Task
Generate a SQL query to answer the following question:
`What is the box score type for the game that has a score of 103-101?`

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

CREATE TABLE "round_6" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the box score type for the game that has a score of 103-101?`:
```sql
                SELECT "box_score" FROM "round_6" WHERE "score"='103-101';
```
## Task
Generate a SQL query to answer the following question:
`What was the box score for the game where the away team was the sydney spirit?`

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

CREATE TABLE "round_6" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the box score for the game where the away team was the sydney spirit?`:
```sql
                SELECT "box_score" FROM "round_6" WHERE "away_team"='sydney spirit';
```
## Task
Generate a SQL query to answer the following question:
`What was the resolution of the fight when tim hague had a record of 15-7?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the resolution of the fight when tim hague had a record of 15-7?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "record"='15-7';
```
## Task
Generate a SQL query to answer the following question:
`What event did Tim hague have a fight that had a time of 5:00 and a record of 10-4?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event did Tim hague have a fight that had a time of 5:00 and a record of 10-4?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "record"='10-4';
```
## Task
Generate a SQL query to answer the following question:
`What method of resolution was the fight that took place at hardcore championship fighting: destiny?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What method of resolution was the fight that took place at hardcore championship fighting: destiny?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='hardcore championship fighting: destiny';
```
## Task
Generate a SQL query to answer the following question:
`What event did tim Hague have a record of 3-0?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event did tim Hague have a record of 3-0?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "record"='3-0';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the poll showing John Kennedy with 45% and Mary Landrieu with 38%?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_mary_landrieu" text,
  "republican_john_kennedy" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the poll showing John Kennedy with 45% and Mary Landrieu with 38%?`:
```sql
                SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_se" WHERE "republican_john_kennedy"='45%' AND "democrat_mary_landrieu"='38%';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the poll from Survey USA that showed a lead margin smaller than 5.5?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_mary_landrieu" text,
  "republican_john_kennedy" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the poll from Survey USA that showed a lead margin smaller than 5.5?`:
```sql
                SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_se" WHERE "lead_margin"<5.5 AND "poll_source"='survey usa';
```
## Task
Generate a SQL query to answer the following question:
`Which organization administered the poll that showed a lead margin of 5.5?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_mary_landrieu" text,
  "republican_john_kennedy" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which organization administered the poll that showed a lead margin of 5.5?`:
```sql
                SELECT "poll_source" FROM "opinion_polling_for_the_united_states_se" WHERE "lead_margin"=5.5;
```
## Task
Generate a SQL query to answer the following question:
`Which poll shows Democrat Mary Landrieu with 53% against Republican John Kennedy?`

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

CREATE TABLE "opinion_polling_for_the_united_states_se" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_mary_landrieu" text,
  "republican_john_kennedy" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which poll shows Democrat Mary Landrieu with 53% against Republican John Kennedy?`:
```sql
                SELECT "republican_john_kennedy" FROM "opinion_polling_for_the_united_states_se" WHERE "democrat_mary_landrieu"='53%';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Round, when Position is Forward, and when School/Club Team is Western Kentucky?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Round, when Position is Forward, and when School/Club Team is Western Kentucky?`:
```sql
                SELECT SUM("round") FROM "draft_picks" WHERE "position"='forward' AND "school_club_team"='western kentucky';
```
## Task
Generate a SQL query to answer the following question:
`What is Position, when Pick is 7?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Position, when Pick is 7?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "pick"='7';
```
## Task
Generate a SQL query to answer the following question:
`What is Pick, when Round is greater than 1, and when School/Club Team is South Carolina?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Pick, when Round is greater than 1, and when School/Club Team is South Carolina?`:
```sql
                SELECT "pick" FROM "draft_picks" WHERE "round">1 AND "school_club_team"='south carolina';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the game with an Outcome of runner-up and Score of 5–7, 3–6, 6–3, 2–6?`

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

CREATE TABLE "singles_14_5_9" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the game with an Outcome of runner-up and Score of 5–7, 3–6, 6–3, 2–6?`:
```sql
                SELECT "date" FROM "singles_14_5_9" WHERE "outcome"='runner-up' AND "score"='5–7, 3–6, 6–3, 2–6';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the game with a Score of 4–6, 4–6?`

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

CREATE TABLE "singles_14_5_9" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the game with a Score of 4–6, 4–6?`:
```sql
                SELECT "date" FROM "singles_14_5_9" WHERE "score"='4–6, 4–6';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the game against Christo Van Rensburg?`

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

CREATE TABLE "singles_14_5_9" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the game against Christo Van Rensburg?`:
```sql
                SELECT "date" FROM "singles_14_5_9" WHERE "opponent"='christo van rensburg';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team for the game that has a Tie value of 3?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team for the game that has a Tie value of 3?`:
```sql
                SELECT "home_team" FROM "fourth_round_proper" WHERE "tie_no"='3';
```
## Task
Generate a SQL query to answer the following question:
`How many in total were in attendance at games where Chelsea was the away team?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many in total were in attendance at games where Chelsea was the away team?`:
```sql
                SELECT SUM("attendance") FROM "fourth_round_proper" WHERE "away_team"='chelsea';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2004 population for 昌黎县?`

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

CREATE TABLE "administrative_divisions" (
  "name" text,
  "hanzi" text,
  "hanyu_pinyin" text,
  "population_2004_est" text,
  "area_km" text,
  "density_km" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2004 population for 昌黎县?`:
```sql
                SELECT "population_2004_est" FROM "administrative_divisions" WHERE "hanzi"='昌黎县';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2004 population for 山海关区?`

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

CREATE TABLE "administrative_divisions" (
  "name" text,
  "hanzi" text,
  "hanyu_pinyin" text,
  "population_2004_est" text,
  "area_km" text,
  "density_km" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2004 population for 山海关区?`:
```sql
                SELECT "population_2004_est" FROM "administrative_divisions" WHERE "hanzi"='山海关区';
```
## Task
Generate a SQL query to answer the following question:
`Which Hanzi has a suburban population in 2004?`

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

CREATE TABLE "administrative_divisions" (
  "name" text,
  "hanzi" text,
  "hanyu_pinyin" text,
  "population_2004_est" text,
  "area_km" text,
  "density_km" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Hanzi has a suburban population in 2004?`:
```sql
                SELECT "hanzi" FROM "administrative_divisions" WHERE "population_2004_est"='suburban';
```
## Task
Generate a SQL query to answer the following question:
`What is the density of 昌黎县?`

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

CREATE TABLE "administrative_divisions" (
  "name" text,
  "hanzi" text,
  "hanyu_pinyin" text,
  "population_2004_est" text,
  "area_km" text,
  "density_km" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the density of 昌黎县?`:
```sql
                SELECT "density_km" FROM "administrative_divisions" WHERE "hanzi"='昌黎县';
```
## Task
Generate a SQL query to answer the following question:
`Which Hanyu Pinyin is labeled rural?`

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

CREATE TABLE "administrative_divisions" (
  "name" text,
  "hanzi" text,
  "hanyu_pinyin" text,
  "population_2004_est" text,
  "area_km" text,
  "density_km" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Hanyu Pinyin is labeled rural?`:
```sql
                SELECT "hanyu_pinyin" FROM "administrative_divisions" WHERE "name"='rural';
```
## Task
Generate a SQL query to answer the following question:
`What is the Pressure in hPa (mbar), when Vacuum Range is "medium vacuum"?`

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

CREATE TABLE "mean_free_path_in_kinetic_theory" (
  "vacuum_range" text,
  "pressure_in_h_pa_mbar" text,
  "molecules_cm_3" text,
  "molecules_m_3" text,
  "mean_free_path" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Pressure in hPa (mbar), when Vacuum Range is "medium vacuum"?`:
```sql
                SELECT "pressure_in_h_pa_mbar" FROM "mean_free_path_in_kinetic_theory" WHERE "vacuum_range"='medium vacuum';
```
## Task
Generate a SQL query to answer the following question:
`What is Mean Free Path, when Vacuum Range is "medium vacuum"?`

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

CREATE TABLE "mean_free_path_in_kinetic_theory" (
  "vacuum_range" text,
  "pressure_in_h_pa_mbar" text,
  "molecules_cm_3" text,
  "molecules_m_3" text,
  "mean_free_path" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Mean Free Path, when Vacuum Range is "medium vacuum"?`:
```sql
                SELECT "mean_free_path" FROM "mean_free_path_in_kinetic_theory" WHERE "vacuum_range"='medium vacuum';
```
## Task
Generate a SQL query to answer the following question:
`what is the outcome when the date is 10 october 1994?`

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

CREATE TABLE "singles_26_17_9" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the outcome when the date is 10 october 1994?`:
```sql
                SELECT "outcome" FROM "singles_26_17_9" WHERE "date"='10 october 1994';
```
## Task
Generate a SQL query to answer the following question:
`what is the score on 22 february 1993?`

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

CREATE TABLE "singles_26_17_9" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score on 22 february 1993?`:
```sql
                SELECT "score" FROM "singles_26_17_9" WHERE "date"='22 february 1993';
```
## Task
Generate a SQL query to answer the following question:
`what is the outcome when the surface is grass on 23 june 1997?`

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

CREATE TABLE "singles_26_17_9" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the outcome when the surface is grass on 23 june 1997?`:
```sql
                SELECT "outcome" FROM "singles_26_17_9" WHERE "surface"='grass' AND "date"='23 june 1997';
```
## Task
Generate a SQL query to answer the following question:
`what is the score when the surface is carpet (i) outcome is winner and the championship is rotterdam, netherlands?`

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

CREATE TABLE "singles_26_17_9" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score when the surface is carpet (i) outcome is winner and the championship is rotterdam, netherlands?`:
```sql
                SELECT "score" FROM "singles_26_17_9" WHERE "surface"='carpet (i)' AND "outcome"='winner' AND "championship"='rotterdam, netherlands';
```
## Task
Generate a SQL query to answer the following question:
`what is the title when the rank is less than 17 and the worldwide gross is $299,288,605?`

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

CREATE TABLE "highest_grossing_films_of_1997" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "worldwide_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the title when the rank is less than 17 and the worldwide gross is $299,288,605?`:
```sql
                SELECT "title" FROM "highest_grossing_films_of_1997" WHERE "rank"<17 AND "worldwide_gross"='$299,288,605';
```
## Task
Generate a SQL query to answer the following question:
`what is the highest rank for director john woo?`

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

CREATE TABLE "highest_grossing_films_of_1997" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "worldwide_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest rank for director john woo?`:
```sql
                SELECT MAX("rank") FROM "highest_grossing_films_of_1997" WHERE "director"='john woo';
```
## Task
Generate a SQL query to answer the following question:
`what is the title for director p.j. hogan?`

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

CREATE TABLE "highest_grossing_films_of_1997" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "worldwide_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the title for director p.j. hogan?`:
```sql
                SELECT "title" FROM "highest_grossing_films_of_1997" WHERE "director"='p.j. hogan';
```
## Task
Generate a SQL query to answer the following question:
`What date was the pyramid location?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the pyramid location?`:
```sql
                SELECT "date" FROM "game_log" WHERE "location"='the pyramid';
```
## Task
Generate a SQL query to answer the following question:
`What date was the opponent the Portland Trail Blazers?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the opponent the Portland Trail Blazers?`:
```sql
                SELECT "date" FROM "game_log" WHERE "opponent"='portland trail blazers';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for the opponent the Cleveland Cavaliers?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the opponent the Cleveland Cavaliers?`:
```sql
                SELECT "record" FROM "game_log" WHERE "opponent"='cleveland cavaliers';
```
## Task
Generate a SQL query to answer the following question:
`What was the second qualification time for Dale Coyne Racing with a best of 1:03.757?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the second qualification time for Dale Coyne Racing with a best of 1:03.757?`:
```sql
                SELECT "qual_2" FROM "qualifying_results" WHERE "team"='dale coyne racing' AND "best"='1:03.757';
```
## Task
Generate a SQL query to answer the following question:
`What was the second qualification time with a first qualification time of 1:02.813?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the second qualification time with a first qualification time of 1:02.813?`:
```sql
                SELECT "qual_2" FROM "qualifying_results" WHERE "qual_1"='1:02.813';
```
## Task
Generate a SQL query to answer the following question:
`Which team has a second qualification time of 1:01.936?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has a second qualification time of 1:01.936?`:
```sql
                SELECT "team" FROM "qualifying_results" WHERE "qual_2"='1:01.936';
```
## Task
Generate a SQL query to answer the following question:
`Who had a best time of 1:00.870?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a best time of 1:00.870?`:
```sql
                SELECT "name" FROM "qualifying_results" WHERE "best"='1:00.870';
```
## Task
Generate a SQL query to answer the following question:
`Who had a second qualification time of 1:01.777?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a second qualification time of 1:01.777?`:
```sql
                SELECT "name" FROM "qualifying_results" WHERE "qual_2"='1:01.777';
```
## Task
Generate a SQL query to answer the following question:
`What type of 3D game was released between 2008-2011?`

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

CREATE TABLE "free_play" (
  "developer_s" text,
  "release_date" text,
  "required_os" text,
  "genre" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of 3D game was released between 2008-2011?`:
```sql
                SELECT "genre" FROM "free_play" WHERE "type"='3d' AND "release_date"='2008-2011';
```
## Task
Generate a SQL query to answer the following question:
`When did Riot Games release their 3D MOBA game?`

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

CREATE TABLE "free_play" (
  "developer_s" text,
  "release_date" text,
  "required_os" text,
  "genre" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Riot Games release their 3D MOBA game?`:
```sql
                SELECT "release_date" FROM "free_play" WHERE "type"='3d' AND "genre"='moba' AND "developer_s"='riot games';
```
## Task
Generate a SQL query to answer the following question:
`When did Masthead Studios release their game?`

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

CREATE TABLE "free_play" (
  "developer_s" text,
  "release_date" text,
  "required_os" text,
  "genre" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Masthead Studios release their game?`:
```sql
                SELECT "release_date" FROM "free_play" WHERE "developer_s"='masthead studios';
```
## Task
Generate a SQL query to answer the following question:
`What operating system was needed for 2D games?`

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

CREATE TABLE "free_play" (
  "developer_s" text,
  "release_date" text,
  "required_os" text,
  "genre" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What operating system was needed for 2D games?`:
```sql
                SELECT "required_os" FROM "free_play" WHERE "type"='2d';
```
## Task
Generate a SQL query to answer the following question:
`What type of 3D game did Valve Corporation release?`

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

CREATE TABLE "free_play" (
  "developer_s" text,
  "release_date" text,
  "required_os" text,
  "genre" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of 3D game did Valve Corporation release?`:
```sql
                SELECT "genre" FROM "free_play" WHERE "type"='3d' AND "developer_s"='valve corporation';
```
## Task
Generate a SQL query to answer the following question:
`What was the minimum operating system required by Stunlock Studios' game?`

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

CREATE TABLE "free_play" (
  "developer_s" text,
  "release_date" text,
  "required_os" text,
  "genre" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the minimum operating system required by Stunlock Studios' game?`:
```sql
                SELECT "required_os" FROM "free_play" WHERE "developer_s"='stunlock studios';
```
## Task
Generate a SQL query to answer the following question:
`What was the total rounds Travis Hamonic played?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total rounds Travis Hamonic played?`:
```sql
                SELECT COUNT("round") FROM "draft_picks" WHERE "player"='travis hamonic';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the ship with pit props as Cargo sunk by u-48 *?`

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

CREATE TABLE "merchant_ships" (
  "name" text,
  "flag" text,
  "cargo" text,
  "fate" text,
  "date_of_attack" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the ship with pit props as Cargo sunk by u-48 *?`:
```sql
                SELECT "name" FROM "merchant_ships" WHERE "fate"='sunk by u-48 *' AND "cargo"='pit props';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of attack of the ship with iron ore sunk by u-101 *?`

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

CREATE TABLE "merchant_ships" (
  "name" text,
  "flag" text,
  "cargo" text,
  "fate" text,
  "date_of_attack" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of attack of the ship with iron ore sunk by u-101 *?`:
```sql
                SELECT "date_of_attack" FROM "merchant_ships" WHERE "fate"='sunk by u-101 *' AND "cargo"='iron ore';
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest points for positions with under 12 losses, goals against under 50, goal difference over 11, and under 30 played?`

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

CREATE TABLE "group_i" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest points for positions with under 12 losses, goals against under 50, goal difference over 11, and under 30 played?`:
```sql
                SELECT MIN("points") FROM "group_i" WHERE "losses"<12 AND "goals_against"<50 AND "goal_difference">11 AND "played"<30;
```
## Task
Generate a SQL query to answer the following question:
`What is the most wins for a position with more than 30 played and a goal difference of 11?`

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

CREATE TABLE "group_i" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most wins for a position with more than 30 played and a goal difference of 11?`:
```sql
                SELECT MAX("wins") FROM "group_i" WHERE "goal_difference"=11 AND "played">30;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of played for the goals against over 44 and a goal difference of 11?`

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

CREATE TABLE "group_i" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of played for the goals against over 44 and a goal difference of 11?`:
```sql
                SELECT COUNT("played") FROM "group_i" WHERE "goal_difference"=11 AND "goals_against">44;
```