cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what is the average shot volume (cm 3) when the shot diameter (cm) is less than 6.04?`

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

CREATE TABLE "english_gun_classes_c_1800_citation_need" (
  "gun_class_pdr" real,
  "shot_diameter_cm" real,
  "shot_volume_cm_3" real,
  "approx_service_bore_cm" real,
  "mass_of_projectile_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average shot volume (cm 3) when the shot diameter (cm) is less than 6.04?`:
```sql
                SELECT AVG("shot_volume_cm_3") FROM "english_gun_classes_c_1800_citation_need" WHERE "shot_diameter_cm"<6.04;
```
## Task
Generate a SQL query to answer the following question:
`What role was nominated at the Sydney Film Festival?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "nominated_won" text,
  "award_category" text,
  "festival_organization" text,
  "role" text
);
### SQL
Given the database schema, here is the SQL query that answers `What role was nominated at the Sydney Film Festival?`:
```sql
                SELECT "role" FROM "awards_and_nominations" WHERE "festival_organization"='sydney film festival';
```
## Task
Generate a SQL query to answer the following question:
`In what category was an award won in 2007?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "nominated_won" text,
  "award_category" text,
  "festival_organization" text,
  "role" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what category was an award won in 2007?`:
```sql
                SELECT "award_category" FROM "awards_and_nominations" WHERE "nominated_won"='won' AND "year"=2007;
```
## Task
Generate a SQL query to answer the following question:
`What is the first year that there was a Satellite Award?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "nominated_won" text,
  "award_category" text,
  "festival_organization" text,
  "role" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first year that there was a Satellite Award?`:
```sql
                SELECT MIN("year") FROM "awards_and_nominations" WHERE "festival_organization"='satellite award';
```
## Task
Generate a SQL query to answer the following question:
`What role was at the Sydney Film Festival in 2008?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "nominated_won" text,
  "award_category" text,
  "festival_organization" text,
  "role" text
);
### SQL
Given the database schema, here is the SQL query that answers `What role was at the Sydney Film Festival in 2008?`:
```sql
                SELECT "role" FROM "awards_and_nominations" WHERE "year"=2008 AND "festival_organization"='sydney film festival';
```
## Task
Generate a SQL query to answer the following question:
`What was nominated for the Jury Award?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "nominated_won" text,
  "award_category" text,
  "festival_organization" text,
  "role" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was nominated for the Jury Award?`:
```sql
                SELECT "nominated_won" FROM "awards_and_nominations" WHERE "award_category"='jury award';
```
## Task
Generate a SQL query to answer the following question:
`what is the released when the series is sorted 6y/ai?`

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

CREATE TABLE "series_3" (
  "series_sorted" text,
  "title" text,
  "doctor" text,
  "featuring" text,
  "released" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the released when the series is sorted 6y/ai?`:
```sql
                SELECT "released" FROM "series_3" WHERE "series_sorted"='6y/ai';
```
## Task
Generate a SQL query to answer the following question:
`who is the featuring when the doctor is the 6th and the series sorted is 6y/ak?`

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

CREATE TABLE "series_3" (
  "series_sorted" text,
  "title" text,
  "doctor" text,
  "featuring" text,
  "released" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the featuring when the doctor is the 6th and the series sorted is 6y/ak?`:
```sql
                SELECT "featuring" FROM "series_3" WHERE "doctor"='6th' AND "series_sorted"='6y/ak';
```
## Task
Generate a SQL query to answer the following question:
`what is the series sorted when the released is may 2012?`

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

CREATE TABLE "series_3" (
  "series_sorted" text,
  "title" text,
  "doctor" text,
  "featuring" text,
  "released" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the series sorted when the released is may 2012?`:
```sql
                SELECT "series_sorted" FROM "series_3" WHERE "released"='may 2012';
```
## Task
Generate a SQL query to answer the following question:
`who is the featuring when the series sorted is 6eb/b?`

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

CREATE TABLE "series_3" (
  "series_sorted" text,
  "title" text,
  "doctor" text,
  "featuring" text,
  "released" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the featuring when the series sorted is 6eb/b?`:
```sql
                SELECT "featuring" FROM "series_3" WHERE "series_sorted"='6eb/b';
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a Year(s) won of 1977?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Year(s) won of 1977?`:
```sql
                SELECT "country" FROM "missed_the_cut" WHERE "year_s_won"='1977';
```
## Task
Generate a SQL query to answer the following question:
`Which To par is the lowest one that has a Year(s) won of 1962, 1967, 1972, 1980, and a Total larger than 149?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which To par is the lowest one that has a Year(s) won of 1962, 1967, 1972, 1980, and a Total larger than 149?`:
```sql
                SELECT MIN("to_par") FROM "missed_the_cut" WHERE "year_s_won"='1962, 1967, 1972, 1980' AND "total">149;
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a Total of 148?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Total of 148?`:
```sql
                SELECT "country" FROM "missed_the_cut" WHERE "total"=148;
```
## Task
Generate a SQL query to answer the following question:
`Which Year(s) won has a Total of 147?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year(s) won has a Total of 147?`:
```sql
                SELECT "year_s_won" FROM "missed_the_cut" WHERE "total"=147;
```
## Task
Generate a SQL query to answer the following question:
`Which To par is the highest one that has a Total smaller than 148?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which To par is the highest one that has a Total smaller than 148?`:
```sql
                SELECT MAX("to_par") FROM "missed_the_cut" WHERE "total"<148;
```
## Task
Generate a SQL query to answer the following question:
`Who is the candidate in the 2008 (2) election?`

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

CREATE TABLE "table_presidential_elections" (
  "election" text,
  "candidate" text,
  "number_of_votes" text,
  "share_of_votes" text,
  "outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the candidate in the 2008 (2) election?`:
```sql
                SELECT "candidate" FROM "table_presidential_elections" WHERE "election"='2008 (2)';
```
## Task
Generate a SQL query to answer the following question:
`What is the share of votes in the 2008 (1) election?`

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

CREATE TABLE "table_presidential_elections" (
  "election" text,
  "candidate" text,
  "number_of_votes" text,
  "share_of_votes" text,
  "outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the share of votes in the 2008 (1) election?`:
```sql
                SELECT "share_of_votes" FROM "table_presidential_elections" WHERE "election"='2008 (1)';
```
## Task
Generate a SQL query to answer the following question:
`What is the share of votes in the 2000 (2nd) election?`

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

CREATE TABLE "table_presidential_elections" (
  "election" text,
  "candidate" text,
  "number_of_votes" text,
  "share_of_votes" text,
  "outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the share of votes in the 2000 (2nd) election?`:
```sql
                SELECT "share_of_votes" FROM "table_presidential_elections" WHERE "election"='2000 (2nd)';
```
## Task
Generate a SQL query to answer the following question:
`What is the election with an outcome of ndc opposition and 2,728,241 votes?`

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

CREATE TABLE "table_presidential_elections" (
  "election" text,
  "candidate" text,
  "number_of_votes" text,
  "share_of_votes" text,
  "outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the election with an outcome of ndc opposition and 2,728,241 votes?`:
```sql
                SELECT "election" FROM "table_presidential_elections" WHERE "outcome_of_election"='ndc opposition' AND "number_of_votes"='2,728,241';
```
## Task
Generate a SQL query to answer the following question:
`What is the outcome of the election with 43.3% share of votes?`

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

CREATE TABLE "table_presidential_elections" (
  "election" text,
  "candidate" text,
  "number_of_votes" text,
  "share_of_votes" text,
  "outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the outcome of the election with 43.3% share of votes?`:
```sql
                SELECT "outcome_of_election" FROM "table_presidential_elections" WHERE "share_of_votes"='43.3%';
```
## Task
Generate a SQL query to answer the following question:
`Who is the candidate in the 2012 election?`

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

CREATE TABLE "table_presidential_elections" (
  "election" text,
  "candidate" text,
  "number_of_votes" text,
  "share_of_votes" text,
  "outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the candidate in the 2012 election?`:
```sql
                SELECT "candidate" FROM "table_presidential_elections" WHERE "election"='2012';
```
## Task
Generate a SQL query to answer the following question:
`What is Mark O'Meara's Score?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Mark O'Meara's Score?`:
```sql
                SELECT "score" FROM "final_round" WHERE "player"='mark o''meara';
```
## Task
Generate a SQL query to answer the following question:
`What is Curtis Strange's Score?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Curtis Strange's Score?`:
```sql
                SELECT "score" FROM "final_round" WHERE "player"='curtis strange';
```
## Task
Generate a SQL query to answer the following question:
`What is the Catalog number of the CBS Track "It's Automatic"?`

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

CREATE TABLE "release_history" (
  "date" real,
  "tracks" text,
  "length" text,
  "label" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Catalog number of the CBS Track "It's Automatic"?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "label"='cbs' AND "tracks"='\"it''s automatic\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tracks of the release in Catalog BA 222304 with a Length of 2:57?`

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

CREATE TABLE "release_history" (
  "date" real,
  "tracks" text,
  "length" text,
  "label" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tracks of the release in Catalog BA 222304 with a Length of 2:57?`:
```sql
                SELECT "tracks" FROM "release_history" WHERE "catalog"='ba 222304' AND "length"='2:57';
```
## Task
Generate a SQL query to answer the following question:
`On what Date did Columbia release the Track "Do it again"?`

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

CREATE TABLE "release_history" (
  "date" real,
  "tracks" text,
  "length" text,
  "label" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date did Columbia release the Track "Do it again"?`:
```sql
                SELECT SUM("date") FROM "release_history" WHERE "label"='columbia' AND "tracks"='\"do it again\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Match No., when Date is 2008-03-21, and when Time is 16:00?`

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

CREATE TABLE "group_2" (
  "match_no" real,
  "date" text,
  "time" text,
  "score" text,
  "venue" text,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Match No., when Date is 2008-03-21, and when Time is 16:00?`:
```sql
                SELECT MAX("match_no") FROM "group_2" WHERE "date"='2008-03-21' AND "time"='16:00';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue for runs 325/6?`

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

CREATE TABLE "highest_team_totals_against" (
  "rank" text,
  "runs" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue for runs 325/6?`:
```sql
                SELECT "venue" FROM "highest_team_totals_against" WHERE "runs"='325/6';
```
## Task
Generate a SQL query to answer the following question:
`What season were the runs 310/9?`

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

CREATE TABLE "highest_team_totals_against" (
  "rank" text,
  "runs" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season were the runs 310/9?`:
```sql
                SELECT "season" FROM "highest_team_totals_against" WHERE "runs"='310/9';
```
## Task
Generate a SQL query to answer the following question:
`What were the runs for the opponent from the West Indies?`

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

CREATE TABLE "highest_team_totals_against" (
  "rank" text,
  "runs" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the runs for the opponent from the West Indies?`:
```sql
                SELECT "runs" FROM "highest_team_totals_against" WHERE "opponent"='west indies';
```
## Task
Generate a SQL query to answer the following question:
`Which Place has a Country of united states, and Money ($) larger than 145,000, and a To par of –2, and a Score of 70-66-73-69=278?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Place has a Country of united states, and Money ($) larger than 145,000, and a To par of –2, and a Score of 70-66-73-69=278?`:
```sql
                SELECT "place" FROM "final_round" WHERE "country"='united states' AND "money">'145,000' AND "to_par"='–2' AND "score"='70-66-73-69=278';
```
## Task
Generate a SQL query to answer the following question:
`Which Money ($) has a Score of 70-66-73-69=278?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Money ($) has a Score of 70-66-73-69=278?`:
```sql
                SELECT AVG("money") FROM "final_round" WHERE "score"='70-66-73-69=278';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds did the match last with Sam Sotello as the opponent?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds did the match last with Sam Sotello as the opponent?`:
```sql
                SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "opponent"='sam sotello';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for the loss in UFC 62?`

### 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,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the loss in UFC 62?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "event"='ufc 62';
```
## Task
Generate a SQL query to answer the following question:
`What is the part 4 with *heguldun *febungun in part 3?`

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

CREATE TABLE "class_7" (
  "subclass" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the part 4 with *heguldun *febungun in part 3?`:
```sql
                SELECT "part_4" FROM "class_7" WHERE "part_3"='*heguldun *febungun';
```
## Task
Generate a SQL query to answer the following question:
`What is the part 3 with *hegait in part 2?`

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

CREATE TABLE "class_7" (
  "subclass" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the part 3 with *hegait in part 2?`:
```sql
                SELECT "part_3" FROM "class_7" WHERE "part_2"='*hegait';
```
## Task
Generate a SQL query to answer the following question:
`What is the part 4 with *hlaupaną *stautaną in part 1?`

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

CREATE TABLE "class_7" (
  "subclass" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the part 4 with *hlaupaną *stautaną in part 1?`:
```sql
                SELECT "part_4" FROM "class_7" WHERE "part_1"='*hlaupaną *stautaną';
```
## Task
Generate a SQL query to answer the following question:
`What is the verb meaning of *haldaną *fanhaną in part 1?`

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

CREATE TABLE "class_7" (
  "subclass" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the verb meaning of *haldaną *fanhaną in part 1?`:
```sql
                SELECT "verb_meaning" FROM "class_7" WHERE "part_1"='*haldaną *fanhaną';
```
## Task
Generate a SQL query to answer the following question:
`Who is sezen aksu's producer?`

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

CREATE TABLE "belgium_cd_track_listings" (
  "track" real,
  "title" text,
  "songwriter_s" text,
  "producer_s" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is sezen aksu's producer?`:
```sql
                SELECT "producer_s" FROM "belgium_cd_track_listings" WHERE "songwriter_s"='sezen aksu';
```
## Task
Generate a SQL query to answer the following question:
`Which Title has a Songwriter(s) of hadise açıkgöz, stefaan fernande, elio deepcore?`

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

CREATE TABLE "belgium_cd_track_listings" (
  "track" real,
  "title" text,
  "songwriter_s" text,
  "producer_s" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Title has a Songwriter(s) of hadise açıkgöz, stefaan fernande, elio deepcore?`:
```sql
                SELECT "title" FROM "belgium_cd_track_listings" WHERE "songwriter_s"='hadise açıkgöz, stefaan fernande, elio deepcore';
```
## Task
Generate a SQL query to answer the following question:
`Which Title has a Length of 3:32, and a Producer(s) of hadise açıkgöz, yves jongen?`

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

CREATE TABLE "belgium_cd_track_listings" (
  "track" real,
  "title" text,
  "songwriter_s" text,
  "producer_s" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Title has a Length of 3:32, and a Producer(s) of hadise açıkgöz, yves jongen?`:
```sql
                SELECT "title" FROM "belgium_cd_track_listings" WHERE "length"='3:32' AND "producer_s"='hadise açıkgöz, yves jongen';
```
## Task
Generate a SQL query to answer the following question:
`Which Producer(s) has a Track smaller than 8, and a Songwriter(s) of hadise açıkgöz, yves jongen, and a Length of 3:08?`

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

CREATE TABLE "belgium_cd_track_listings" (
  "track" real,
  "title" text,
  "songwriter_s" text,
  "producer_s" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Producer(s) has a Track smaller than 8, and a Songwriter(s) of hadise açıkgöz, yves jongen, and a Length of 3:08?`:
```sql
                SELECT "producer_s" FROM "belgium_cd_track_listings" WHERE "track"<8 AND "songwriter_s"='hadise açıkgöz, yves jongen' AND "length"='3:08';
```
## Task
Generate a SQL query to answer the following question:
`What is track 6's title?`

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

CREATE TABLE "belgium_cd_track_listings" (
  "track" real,
  "title" text,
  "songwriter_s" text,
  "producer_s" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is track 6's title?`:
```sql
                SELECT "title" FROM "belgium_cd_track_listings" WHERE "track"=6;
```
## Task
Generate a SQL query to answer the following question:
`What company makes the Nokia 700?`

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

CREATE TABLE "ecosystem_operators_mobile_phone_and_cli" (
  "company_name" text,
  "hardware_model" text,
  "accreditation_type" text,
  "accreditation_level" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What company makes the Nokia 700?`:
```sql
                SELECT "company_name" FROM "ecosystem_operators_mobile_phone_and_cli" WHERE "hardware_model"='nokia 700';
```
## Task
Generate a SQL query to answer the following question:
`What is the accreditation level for the approved (awarded 05.12.12) date?`

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

CREATE TABLE "ecosystem_operators_mobile_phone_and_cli" (
  "company_name" text,
  "hardware_model" text,
  "accreditation_type" text,
  "accreditation_level" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the accreditation level for the approved (awarded 05.12.12) date?`:
```sql
                SELECT "accreditation_level" FROM "ecosystem_operators_mobile_phone_and_cli" WHERE "date"='approved (awarded 05.12.12)';
```
## Task
Generate a SQL query to answer the following question:
`When did Samsung Electronics Co LTD make the GT-i9100?`

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

CREATE TABLE "ecosystem_operators_mobile_phone_and_cli" (
  "company_name" text,
  "hardware_model" text,
  "accreditation_type" text,
  "accreditation_level" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Samsung Electronics Co LTD make the GT-i9100?`:
```sql
                SELECT "date" FROM "ecosystem_operators_mobile_phone_and_cli" WHERE "company_name"='samsung electronics co ltd' AND "hardware_model"='gt-i9100';
```
## Task
Generate a SQL query to answer the following question:
`When the Nokia corporation had an accreditation level of joyn, what was the accreditation type?`

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

CREATE TABLE "ecosystem_operators_mobile_phone_and_cli" (
  "company_name" text,
  "hardware_model" text,
  "accreditation_type" text,
  "accreditation_level" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Nokia corporation had an accreditation level of joyn, what was the accreditation type?`:
```sql
                SELECT "accreditation_type" FROM "ecosystem_operators_mobile_phone_and_cli" WHERE "accreditation_level"='joyn' AND "company_name"='nokia corporation';
```
## Task
Generate a SQL query to answer the following question:
`What is Round, when Record is "4-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,
  "event" text,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Round, when Record is "4-1"?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "record"='4-1';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when Location is "Tokyo , Japan", when Method is "Decision (unanimous)", and when Record is "4-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,
  "event" text,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent, when Location is "Tokyo , Japan", when Method is "Decision (unanimous)", and when Record is "4-1"?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "location"='tokyo , japan' AND "method"='decision (unanimous)' AND "record"='4-1';
```
## Task
Generate a SQL query to answer the following question:
`What is Method, when Opponent is "Thiago Alves"?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Method, when Opponent is "Thiago Alves"?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='thiago alves';
```
## Task
Generate a SQL query to answer the following question:
`What is Event, when Round is "1", when Location is "Osaka , Japan", and when Method is "TKO (corner stoppage)"?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Event, when Round is "1", when Location is "Osaka , Japan", and when Method is "TKO (corner stoppage)"?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "round"='1' AND "location"='osaka , japan' AND "method"='tko (corner stoppage)';
```
## Task
Generate a SQL query to answer the following question:
`What is Record, when Event is "UFC 64"?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Record, when Event is "UFC 64"?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='ufc 64';
```
## Task
Generate a SQL query to answer the following question:
`What is the Record for a game smaller than 24, Lundqvist was the decision, November less than 8, and opponent Was New York Islanders?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "decision" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record for a game smaller than 24, Lundqvist was the decision, November less than 8, and opponent Was New York Islanders?`:
```sql
                SELECT "record" FROM "schedule_and_results" WHERE "game"<24 AND "decision"='lundqvist' AND "november"<8 AND "opponent"='new york islanders';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest game number with a record of 16-7-2?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "decision" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest game number with a record of 16-7-2?`:
```sql
                SELECT MIN("game") FROM "schedule_and_results" WHERE "record"='16-7-2';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of the game with a decision of Lundqvist, the November less than 28, and opponent was Boston Bruins?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "decision" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of the game with a decision of Lundqvist, the November less than 28, and opponent was Boston Bruins?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "decision"='lundqvist' AND "november"<28 AND "opponent"='boston bruins';
```
## Task
Generate a SQL query to answer the following question:
`Where was the 2013 Eaff East Asian Cup Qualifier played?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the 2013 Eaff East Asian Cup Qualifier played?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "competition"='2013 eaff east asian cup qualifier';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest amount of points with a goal average larger than 4, less than 12 draws, and a goal of 63?`

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

CREATE TABLE "groupe_a" (
  "rank" real,
  "club" text,
  "points" real,
  "played" real,
  "victories" real,
  "draws" real,
  "defeats" real,
  "goals_for" real,
  "goals_against" real,
  "goal_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest amount of points with a goal average larger than 4, less than 12 draws, and a goal of 63?`:
```sql
                SELECT MAX("points") FROM "groupe_a" WHERE "goal_average">4 AND "draws"<12 AND "goals_for"=63;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest goal for a goal against 37 and less than 15 victories?`

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

CREATE TABLE "groupe_a" (
  "rank" real,
  "club" text,
  "points" real,
  "played" real,
  "victories" real,
  "draws" real,
  "defeats" real,
  "goals_for" real,
  "goals_against" real,
  "goal_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest goal for a goal against 37 and less than 15 victories?`:
```sql
                SELECT MIN("goals_for") FROM "groupe_a" WHERE "goals_against"=37 AND "victories"<15;
```
## Task
Generate a SQL query to answer the following question:
`How many goals on average are there for rank 3?`

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

CREATE TABLE "groupe_a" (
  "rank" real,
  "club" text,
  "points" real,
  "played" real,
  "victories" real,
  "draws" real,
  "defeats" real,
  "goals_for" real,
  "goals_against" real,
  "goal_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals on average are there for rank 3?`:
```sql
                SELECT AVG("goals_for") FROM "groupe_a" WHERE "rank"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the average goals against when there are more than 42 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average goals against when there are more than 42 played?`:
```sql
                SELECT AVG("goals_against") FROM "final_table" WHERE "played">42;
```
## Task
Generate a SQL query to answer the following question:
`What is the goal difference for the team from Chorley?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the goal difference for the team from Chorley?`:
```sql
                SELECT "goal_difference" FROM "final_table" WHERE "team"='chorley';
```
## Task
Generate a SQL query to answer the following question:
`What is T8 Place Player Scott Hoch's Score?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is T8 Place Player Scott Hoch's Score?`:
```sql
                SELECT "score" FROM "final_round" WHERE "place"='t8' AND "player"='scott hoch';
```
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player with a Score of 67-76-74-67=284?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Place of the Player with a Score of 67-76-74-67=284?`:
```sql
                SELECT "place" FROM "final_round" WHERE "score"='67-76-74-67=284';
```
## Task
Generate a SQL query to answer the following question:
`What is the Money of the Player with a Score of 69-71-69-72=281?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Money of the Player with a Score of 69-71-69-72=281?`:
```sql
                SELECT "money" FROM "final_round" WHERE "score"='69-71-69-72=281';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Rank, when U-17 Goals is "7", and when Player is "Cesc Fàbregas"?`

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

CREATE TABLE "top_goalscorers" (
  "rank" real,
  "player" text,
  "club_s" text,
  "year_s" text,
  "u_17_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Rank, when U-17 Goals is "7", and when Player is "Cesc Fàbregas"?`:
```sql
                SELECT MAX("rank") FROM "top_goalscorers" WHERE "u_17_goals"=7 AND "player"='cesc fàbregas';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Rank, when U-17 Goals is "9"?`

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

CREATE TABLE "top_goalscorers" (
  "rank" real,
  "player" text,
  "club_s" text,
  "year_s" text,
  "u_17_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Rank, when U-17 Goals is "9"?`:
```sql
                SELECT MAX("rank") FROM "top_goalscorers" WHERE "u_17_goals"=9;
```
## Task
Generate a SQL query to answer the following question:
`What Competition has a Result of Draw?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Competition has a Result of Draw?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "result"='draw';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the Competition with a Score of 1–2?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the Competition with a Score of 1–2?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "score"='1–2';
```
## Task
Generate a SQL query to answer the following question:
`What New Delhi Competition has a Result of Loss?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What New Delhi Competition has a Result of Loss?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "venue"='new delhi' AND "result"='loss';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds in the event when record is 1-5?`

### 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,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds in the event when record is 1-5?`:
```sql
                SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "record"='1-5';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent when there is a win in round greater than 1 and the record is 42-27-10?`

### 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,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent when there is a win in round greater than 1 and the record is 42-27-10?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "round">1 AND "record"='42-27-10';
```
## Task
Generate a SQL query to answer the following question:
`Who is team E when Jason Manning is Team F?`

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

CREATE TABLE "co_hort_teams" (
  "team_a" text,
  "team_c" text,
  "team_d" text,
  "team_e" text,
  "team_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is team E when Jason Manning is Team F?`:
```sql
                SELECT "team_e" FROM "co_hort_teams" WHERE "team_f"='jason manning';
```
## Task
Generate a SQL query to answer the following question:
`Who is Team A when wilma hofschneider-david is team C?`

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

CREATE TABLE "co_hort_teams" (
  "team_a" text,
  "team_c" text,
  "team_d" text,
  "team_e" text,
  "team_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is Team A when wilma hofschneider-david is team C?`:
```sql
                SELECT "team_a" FROM "co_hort_teams" WHERE "team_c"='wilma hofschneider-david';
```
## Task
Generate a SQL query to answer the following question:
`Who is team f when Aida Gagaring is team A?`

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

CREATE TABLE "co_hort_teams" (
  "team_a" text,
  "team_c" text,
  "team_d" text,
  "team_e" text,
  "team_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is team f when Aida Gagaring is team A?`:
```sql
                SELECT "team_f" FROM "co_hort_teams" WHERE "team_a"='aida gagaring';
```
## Task
Generate a SQL query to answer the following question:
`Who is Team D when Carmen Ada is team C?`

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

CREATE TABLE "co_hort_teams" (
  "team_a" text,
  "team_c" text,
  "team_d" text,
  "team_e" text,
  "team_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is Team D when Carmen Ada is team C?`:
```sql
                SELECT "team_d" FROM "co_hort_teams" WHERE "team_c"='carmen ada';
```
## Task
Generate a SQL query to answer the following question:
`Who is team e when Aaron Solloway is team D?`

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

CREATE TABLE "co_hort_teams" (
  "team_a" text,
  "team_c" text,
  "team_d" text,
  "team_e" text,
  "team_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is team e when Aaron Solloway is team D?`:
```sql
                SELECT "team_e" FROM "co_hort_teams" WHERE "team_d"='aaron solloway';
```
## Task
Generate a SQL query to answer the following question:
`Who is team c when dhez javier is team e?`

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

CREATE TABLE "co_hort_teams" (
  "team_a" text,
  "team_c" text,
  "team_d" text,
  "team_e" text,
  "team_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is team c when dhez javier is team e?`:
```sql
                SELECT "team_c" FROM "co_hort_teams" WHERE "team_e"='dhez javier';
```
## Task
Generate a SQL query to answer the following question:
`What was the country of the player at +5?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the country of the player at +5?`:
```sql
                SELECT "country" FROM "final_round" WHERE "to_par"='+5';
```
## Task
Generate a SQL query to answer the following question:
`Which player finished at +4?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player finished at +4?`:
```sql
                SELECT "player" FROM "final_round" WHERE "to_par"='+4';
```