cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who played on waca ground and scored 79 points?`

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

CREATE TABLE "highest_scores" (
  "player" text,
  "score" text,
  "balls" real,
  "opponent" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played on waca ground and scored 79 points?`:
```sql
                SELECT "opponent" FROM "highest_scores" WHERE "ground"='waca ground' AND "score"='79';
```
## Task
Generate a SQL query to answer the following question:
`What player had 49 balls?`

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

CREATE TABLE "highest_scores" (
  "player" text,
  "score" text,
  "balls" real,
  "opponent" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player had 49 balls?`:
```sql
                SELECT "player" FROM "highest_scores" WHERE "balls"=49;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest attendance of a game that had a score of 3-5?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest attendance of a game that had a score of 3-5?`:
```sql
                SELECT MAX("attendance") FROM "game_log" WHERE "score"='3-5';
```
## Task
Generate a SQL query to answer the following question:
`Who took the loss in the game that ended with a 54-61 record?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who took the loss in the game that ended with a 54-61 record?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='54-61';
```
## Task
Generate a SQL query to answer the following question:
`Name the report with 125cc winner of simone corsi and circuit of valencia`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the report with 125cc winner of simone corsi and circuit of valencia`:
```sql
                SELECT "report" FROM "grands_prix" WHERE "125cc_winner"='simone corsi' AND "circuit"='valencia';
```
## Task
Generate a SQL query to answer the following question:
`Name the motogp winner with 125cc winner of gábor talmácsi and round of 13`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the motogp winner with 125cc winner of gábor talmácsi and round of 13`:
```sql
                SELECT "moto_gp_winner" FROM "grands_prix" WHERE "125cc_winner"='gábor talmácsi' AND "round"=13;
```
## Task
Generate a SQL query to answer the following question:
`Name the 125cc winner with circuit of estoril`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 125cc winner with circuit of estoril`:
```sql
                SELECT "125cc_winner" FROM "grands_prix" WHERE "circuit"='estoril';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for motogp winner of casey stoner and grand prix of valencian grand prix`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for motogp winner of casey stoner and grand prix of valencian grand prix`:
```sql
                SELECT "date" FROM "grands_prix" WHERE "moto_gp_winner"='casey stoner' AND "grand_prix"='valencian grand prix';
```
## Task
Generate a SQL query to answer the following question:
`Name the circuit for round 18`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the circuit for round 18`:
```sql
                SELECT "circuit" FROM "grands_prix" WHERE "round"=18;
```
## Task
Generate a SQL query to answer the following question:
`Name the grand prix for casey stoner and circuit of losail`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the grand prix for casey stoner and circuit of losail`:
```sql
                SELECT "grand_prix" FROM "grands_prix" WHERE "moto_gp_winner"='casey stoner' AND "circuit"='losail';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game held that was played on 2002-03-07?`

### 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 game held that was played on 2002-03-07?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "date"='2002-03-07';
```
## Task
Generate a SQL query to answer the following question:
`What is the total gold from New zealand and a rank less than 14?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total gold from New zealand and a rank less than 14?`:
```sql
                SELECT SUM("gold") FROM "medal_table" WHERE "nation"='new zealand' AND "rank"<14;
```
## Task
Generate a SQL query to answer the following question:
`What is the average of the silver that has less than 0 gold`

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

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

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which nation has 0 gold, 0 silver and 2 total?`:
```sql
                SELECT "nation" FROM "medal_table" WHERE "gold"=0 AND "silver"=0 AND "total"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the total gold in Norway with more than 1 bronze?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total gold in Norway with more than 1 bronze?`:
```sql
                SELECT SUM("gold") FROM "medal_table" WHERE "nation"='norway' AND "bronze">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total bronze from Puerto Rico with a total of less than 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total bronze from Puerto Rico with a total of less than 1?`:
```sql
                SELECT SUM("bronze") FROM "medal_table" WHERE "nation"='puerto rico' AND "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`Which season has the Celtic club?`

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

CREATE TABLE "past_opponents" (
  "season" text,
  "competition" text,
  "round" text,
  "club" text,
  "1st_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season has the Celtic club?`:
```sql
                SELECT "season" FROM "past_opponents" WHERE "club"='celtic';
```
## Task
Generate a SQL query to answer the following question:
`What was Parker Moloney's party affiliation when he was the Minister for Markets?`

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

CREATE TABLE "list_of_agriculture_ministers" (
  "order" text,
  "minister" text,
  "party" text,
  "prime_minister" text,
  "title" text,
  "term_start" text,
  "term_end" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Parker Moloney's party affiliation when he was the Minister for Markets?`:
```sql
                SELECT "party" FROM "list_of_agriculture_ministers" WHERE "minister"='parker moloney' AND "title"='minister for markets';
```
## Task
Generate a SQL query to answer the following question:
`What was the starting date for the Minister for agriculture, fisheries and forestry that is in order number 25??`

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

CREATE TABLE "list_of_agriculture_ministers" (
  "order" text,
  "minister" text,
  "party" text,
  "prime_minister" text,
  "title" text,
  "term_start" text,
  "term_end" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the starting date for the Minister for agriculture, fisheries and forestry that is in order number 25??`:
```sql
                SELECT "term_start" FROM "list_of_agriculture_ministers" WHERE "title"='minister for agriculture, fisheries and forestry' AND "order"='25';
```
## Task
Generate a SQL query to answer the following question:
`What was the score in the venue of Seoul that resulted in 8-0?`

### 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 was the score in the venue of Seoul that resulted in 8-0?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "venue"='seoul' AND "result"='8-0';
```
## Task
Generate a SQL query to answer the following question:
`What date had a result of 8-0?`

### 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 date had a result of 8-0?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "result"='8-0';
```
## Task
Generate a SQL query to answer the following question:
`On July 26, 1977, what competition played at the venue of Kuala Lumpur, resulted in 4-0?`

### 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 `On July 26, 1977, what competition played at the venue of Kuala Lumpur, resulted in 4-0?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "venue"='kuala lumpur' AND "result"='4-0' AND "date"='july 26, 1977';
```
## Task
Generate a SQL query to answer the following question:
`What venue were the 1986 Asian games resulting in 2-0 played at?`

### 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 venue were the 1986 Asian games resulting in 2-0 played at?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "competition"='1986 asian games' AND "result"='2-0';
```
## Task
Generate a SQL query to answer the following question:
`How many total League goals does Player John O'Flynn have?`

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

CREATE TABLE "premier_division" (
  "player" text,
  "club" text,
  "league_goals" real,
  "cup_goals" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total League goals does Player John O'Flynn have?`:
```sql
                SELECT SUM("league_goals") FROM "premier_division" WHERE "player"='john o''flynn';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year that had a Lotus 49B chassis?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year that had a Lotus 49B chassis?`:
```sql
                SELECT MIN("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='lotus 49b';
```
## Task
Generate a SQL query to answer the following question:
`Name the least lane for lenny krayzelburg`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least lane for lenny krayzelburg`:
```sql
                SELECT MIN("lane") FROM "semifinal_2" WHERE "name"='lenny krayzelburg';
```
## Task
Generate a SQL query to answer the following question:
`Round of 9 involved what name?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Round of 9 involved what name?`:
```sql
                SELECT "name" FROM "indianapolis_colts_draft_history" WHERE "round"=9;
```
## Task
Generate a SQL query to answer the following question:
`Name of calvin o'neal, and a Round smaller than 6 had what number total overall?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name of calvin o'neal, and a Round smaller than 6 had what number total overall?`:
```sql
                SELECT COUNT("overall") FROM "indianapolis_colts_draft_history" WHERE "name"='calvin o''neal' AND "round"<6;
```
## Task
Generate a SQL query to answer the following question:
`Name the work for years before 2007 that won blockbuster entertainment awards`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "work" text,
  "cole" text,
  "dylan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the work for years before 2007 that won blockbuster entertainment awards`:
```sql
                SELECT "work" FROM "awards_and_nominations" WHERE "year"<2007 AND "award"='blockbuster entertainment awards';
```
## Task
Generate a SQL query to answer the following question:
`Name the Cole for years before 2009 where Dylan was nominated for big daddy at mtv movie awards`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "work" text,
  "cole" text,
  "dylan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Cole for years before 2009 where Dylan was nominated for big daddy at mtv movie awards`:
```sql
                SELECT "cole" FROM "awards_and_nominations" WHERE "year"<2009 AND "dylan"='nominated' AND "work"='big daddy' AND "award"='mtv movie awards';
```
## Task
Generate a SQL query to answer the following question:
`Position of running back involves which college?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Position of running back involves which college?`:
```sql
                SELECT "college" FROM "indianapolis_colts_draft_history" WHERE "position"='running back';
```
## Task
Generate a SQL query to answer the following question:
`Round larger than 2, and a Position of guard involves what college?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Round larger than 2, and a Position of guard involves what college?`:
```sql
                SELECT "college" FROM "indianapolis_colts_draft_history" WHERE "round">2 AND "position"='guard';
```
## Task
Generate a SQL query to answer the following question:
`Pick # smaller than 46, and a Round of 5, and a Position of defensive tackle involves which college?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Pick # smaller than 46, and a Round of 5, and a Position of defensive tackle involves which college?`:
```sql
                SELECT "college" FROM "indianapolis_colts_draft_history" WHERE "pick_num"<46 AND "round"=5 AND "position"='defensive tackle';
```
## Task
Generate a SQL query to answer the following question:
`What is the percentage who speak Russian?`

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

CREATE TABLE "language" (
  "language" text,
  "number" text,
  "percentage_pct" text,
  "males" text,
  "females" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage who speak Russian?`:
```sql
                SELECT "percentage_pct" FROM "language" WHERE "language"='russian';
```
## Task
Generate a SQL query to answer the following question:
`How many speak german?`

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

CREATE TABLE "language" (
  "language" text,
  "number" text,
  "percentage_pct" text,
  "males" text,
  "females" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many speak german?`:
```sql
                SELECT "number" FROM "language" WHERE "language"='german';
```
## Task
Generate a SQL query to answer the following question:
`What is the percentage where males equal 99?`

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

CREATE TABLE "language" (
  "language" text,
  "number" text,
  "percentage_pct" text,
  "males" text,
  "females" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage where males equal 99?`:
```sql
                SELECT "percentage_pct" FROM "language" WHERE "males"='99';
```
## Task
Generate a SQL query to answer the following question:
`How many women speak German?`

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

CREATE TABLE "language" (
  "language" text,
  "number" text,
  "percentage_pct" text,
  "males" text,
  "females" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many women speak German?`:
```sql
                SELECT "females" FROM "language" WHERE "language"='german';
```
## Task
Generate a SQL query to answer the following question:
`Name the 3rd place with winners of weymouth wildcats and 4th place of boston barracudas`

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

CREATE TABLE "winners" (
  "year" real,
  "winners" text,
  "2nd_place" text,
  "3rd_place" text,
  "4th_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 3rd place with winners of weymouth wildcats and 4th place of boston barracudas`:
```sql
                SELECT "3rd_place" FROM "winners" WHERE "winners"='weymouth wildcats' AND "4th_place"='boston barracudas';
```
## Task
Generate a SQL query to answer the following question:
`Name the 3rd place for 4th place of boston barracudas and 2nd place of oxford cheetahs`

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

CREATE TABLE "winners" (
  "year" real,
  "winners" text,
  "2nd_place" text,
  "3rd_place" text,
  "4th_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 3rd place for 4th place of boston barracudas and 2nd place of oxford cheetahs`:
```sql
                SELECT "3rd_place" FROM "winners" WHERE "4th_place"='boston barracudas' AND "2nd_place"='oxford cheetahs';
```
## Task
Generate a SQL query to answer the following question:
`Name the winners when 3rd place is weymouth wildcats`

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

CREATE TABLE "winners" (
  "year" real,
  "winners" text,
  "2nd_place" text,
  "3rd_place" text,
  "4th_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winners when 3rd place is weymouth wildcats`:
```sql
                SELECT "winners" FROM "winners" WHERE "3rd_place"='weymouth wildcats';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of league cups associated with 0 FA cups?`

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

CREATE TABLE "yellow_cards" (
  "name" text,
  "championship" real,
  "league_cup" real,
  "fa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of league cups associated with 0 FA cups?`:
```sql
                SELECT MIN("league_cup") FROM "yellow_cards" WHERE "fa_cup"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many FA cups for the player with under 5 champs, 0 league cups, and over 3 total?`

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

CREATE TABLE "yellow_cards" (
  "name" text,
  "championship" real,
  "league_cup" real,
  "fa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many FA cups for the player with under 5 champs, 0 league cups, and over 3 total?`:
```sql
                SELECT SUM("fa_cup") FROM "yellow_cards" WHERE "championship"<5 AND "league_cup"=0 AND "total">3;
```
## Task
Generate a SQL query to answer the following question:
`How many league cups associated with under 10 championships and a total of under 3?`

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

CREATE TABLE "yellow_cards" (
  "name" text,
  "championship" real,
  "league_cup" real,
  "fa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many league cups associated with under 10 championships and a total of under 3?`:
```sql
                SELECT SUM("league_cup") FROM "yellow_cards" WHERE "championship"<10 AND "total"<3;
```
## Task
Generate a SQL query to answer the following question:
`Result F–A of 2–0 had what group position?`

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

CREATE TABLE "group_stage" (
  "date" text,
  "opponents" text,
  "result_f_a" text,
  "attendance" real,
  "group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Result F–A of 2–0 had what group position?`:
```sql
                SELECT "group_position" FROM "group_stage" WHERE "result_f_a"='2–0';
```
## Task
Generate a SQL query to answer the following question:
`Result F–A of 5–0 had what group position?`

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

CREATE TABLE "group_stage" (
  "date" text,
  "opponents" text,
  "result_f_a" text,
  "attendance" real,
  "group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Result F–A of 5–0 had what group position?`:
```sql
                SELECT "group_position" FROM "group_stage" WHERE "result_f_a"='5–0';
```
## Task
Generate a SQL query to answer the following question:
`Group position of 1st, and a Result F–A of 2–0 has what average attendance?`

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

CREATE TABLE "group_stage" (
  "date" text,
  "opponents" text,
  "result_f_a" text,
  "attendance" real,
  "group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Group position of 1st, and a Result F–A of 2–0 has what average attendance?`:
```sql
                SELECT AVG("attendance") FROM "group_stage" WHERE "group_position"='1st' AND "result_f_a"='2–0';
```
## Task
Generate a SQL query to answer the following question:
`Result F–A of 5–0 had what date?`

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

CREATE TABLE "group_stage" (
  "date" text,
  "opponents" text,
  "result_f_a" text,
  "attendance" real,
  "group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Result F–A of 5–0 had what date?`:
```sql
                SELECT "date" FROM "group_stage" WHERE "result_f_a"='5–0';
```
## Task
Generate a SQL query to answer the following question:
`Date of 1 october 2003 had what attendance?`

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

CREATE TABLE "group_stage" (
  "date" text,
  "opponents" text,
  "result_f_a" text,
  "attendance" real,
  "group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Date of 1 october 2003 had what attendance?`:
```sql
                SELECT "attendance" FROM "group_stage" WHERE "date"='1 october 2003';
```
## Task
Generate a SQL query to answer the following question:
`what score is it with tathiana garbin as partner?`

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

CREATE TABLE "doubles_55_31_24" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what score is it with tathiana garbin as partner?`:
```sql
                SELECT "score" FROM "doubles_55_31_24" WHERE "partner"='tathiana garbin';
```
## Task
Generate a SQL query to answer the following question:
`what date was giulia casoni the partner?`

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

CREATE TABLE "doubles_55_31_24" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what date was giulia casoni the partner?`:
```sql
                SELECT "date" FROM "doubles_55_31_24" WHERE "partner"='giulia casoni';
```
## Task
Generate a SQL query to answer the following question:
`for country of spain and iata of ibz, what's the city?`

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

CREATE TABLE "list" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `for country of spain and iata of ibz, what's the city?`:
```sql
                SELECT "city" FROM "list" WHERE "country"='spain' AND "iata"='ibz';
```
## Task
Generate a SQL query to answer the following question:
`for fiumicino airport what is the icao?`

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

CREATE TABLE "list" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `for fiumicino airport what is the icao?`:
```sql
                SELECT "icao" FROM "list" WHERE "airport"='fiumicino airport';
```
## Task
Generate a SQL query to answer the following question:
`for milan and the iata of lin what is the airport?`

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

CREATE TABLE "list" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `for milan and the iata of lin what is the airport?`:
```sql
                SELECT "airport" FROM "list" WHERE "city"='milan' AND "iata"='lin';
```
## Task
Generate a SQL query to answer the following question:
`what's the iata for the icao of eheh?`

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

CREATE TABLE "list" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the iata for the icao of eheh?`:
```sql
                SELECT "iata" FROM "list" WHERE "icao"='eheh';
```
## Task
Generate a SQL query to answer the following question:
`which aiport is in the united kingdom and has iata of lcy?`

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

CREATE TABLE "list" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `which aiport is in the united kingdom and has iata of lcy?`:
```sql
                SELECT "airport" FROM "list" WHERE "country"='united kingdom' AND "iata"='lcy';
```
## Task
Generate a SQL query to answer the following question:
`Name the F. Goals for games of 22 22 and points of 012 12`

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

CREATE TABLE "players" (
  "player" text,
  "games" text,
  "tries" text,
  "goals" text,
  "f_goals" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the F. Goals for games of 22 22 and points of 012 12`:
```sql
                SELECT "f_goals" FROM "players" WHERE "games"='22 22' AND "points"='012 12';
```
## Task
Generate a SQL query to answer the following question:
`Name the points for games of 16 16`

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

CREATE TABLE "players" (
  "player" text,
  "games" text,
  "tries" text,
  "goals" text,
  "f_goals" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the points for games of 16 16`:
```sql
                SELECT "points" FROM "players" WHERE "games"='16 16';
```
## Task
Generate a SQL query to answer the following question:
`Name the tries that has a points of 008 8 and games of 27 27`

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

CREATE TABLE "players" (
  "player" text,
  "games" text,
  "tries" text,
  "goals" text,
  "f_goals" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tries that has a points of 008 8 and games of 27 27`:
```sql
                SELECT "tries" FROM "players" WHERE "points"='008 8' AND "games"='27 27';
```
## Task
Generate a SQL query to answer the following question:
`Name the F. Goals with tries of 0 0 and games of 05 5`

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

CREATE TABLE "players" (
  "player" text,
  "games" text,
  "tries" text,
  "goals" text,
  "f_goals" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the F. Goals with tries of 0 0 and games of 05 5`:
```sql
                SELECT "f_goals" FROM "players" WHERE "tries"='0 0' AND "games"='05 5';
```
## Task
Generate a SQL query to answer the following question:
`Name the player with tries of 02 2 and points of 008 8`

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

CREATE TABLE "players" (
  "player" text,
  "games" text,
  "tries" text,
  "goals" text,
  "f_goals" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the player with tries of 02 2 and points of 008 8`:
```sql
                SELECT "player" FROM "players" WHERE "tries"='02 2' AND "points"='008 8';
```
## Task
Generate a SQL query to answer the following question:
`Which area has a Name of william colenso college?`

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

CREATE TABLE "napier_city" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which area has a Name of william colenso college?`:
```sql
                SELECT "area" FROM "napier_city" WHERE "name"='william colenso college';
```
## Task
Generate a SQL query to answer the following question:
`Which authority has a Name of tamatea high school?`

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

CREATE TABLE "napier_city" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which authority has a Name of tamatea high school?`:
```sql
                SELECT "authority" FROM "napier_city" WHERE "name"='tamatea high school';
```
## Task
Generate a SQL query to answer the following question:
`Which gender has a Decile of 8, an Area of taradale, and Years of 1–13?`

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

CREATE TABLE "napier_city" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which gender has a Decile of 8, an Area of taradale, and Years of 1–13?`:
```sql
                SELECT "gender" FROM "napier_city" WHERE "decile"=8 AND "area"='taradale' AND "years"='1–13';
```
## Task
Generate a SQL query to answer the following question:
`Which Decile has Years of –, and a Gender of coed?`

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

CREATE TABLE "napier_city" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Decile has Years of –, and a Gender of coed?`:
```sql
                SELECT "decile" FROM "napier_city" WHERE "years"='–' AND "gender"='coed';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of division for apps more than 5 for greece`

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

CREATE TABLE "career_statistics" (
  "season" text,
  "team" text,
  "country" text,
  "division" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of division for apps more than 5 for greece`:
```sql
                SELECT COUNT("division") FROM "career_statistics" WHERE "apps">5 AND "country"='greece';
```
## Task
Generate a SQL query to answer the following question:
`Name the average apps for smederevo`

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

CREATE TABLE "career_statistics" (
  "season" text,
  "team" text,
  "country" text,
  "division" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average apps for smederevo`:
```sql
                SELECT AVG("apps") FROM "career_statistics" WHERE "team"='smederevo';
```
## Task
Generate a SQL query to answer the following question:
`What model engine has a lotus 16 chassis?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What model engine has a lotus 16 chassis?`:
```sql
                SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "chassis"='lotus 16';
```
## Task
Generate a SQL query to answer the following question:
`How many points after 1960 for fred tuck cars?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points after 1960 for fred tuck cars?`:
```sql
                SELECT MAX("points") FROM "complete_formula_one_world_championship_" WHERE "entrant"='fred tuck cars' AND "year">1960;
```
## Task
Generate a SQL query to answer the following question:
`What is the distance for the unnamed race with 3 runners at Newcastle?`

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

CREATE TABLE "summary" (
  "race_name" text,
  "dist_miles" text,
  "course" text,
  "prize" text,
  "jockey" text,
  "odds" text,
  "runners" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distance for the unnamed race with 3 runners at Newcastle?`:
```sql
                SELECT "dist_miles" FROM "summary" WHERE "race_name"='unnamed race' AND "runners"='3' AND "course"='newcastle';
```
## Task
Generate a SQL query to answer the following question:
`Name the score when the record was 18-25`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score when the record was 18-25`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='18-25';
```
## Task
Generate a SQL query to answer the following question:
`Name the loss for the angels opponent`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the loss for the angels opponent`:
```sql
                SELECT "loss" FROM "game_log" WHERE "opponent"='angels';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of people that went when the record was 16-22`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of people that went when the record was 16-22`:
```sql
                SELECT COUNT("attendance") FROM "game_log" WHERE "record"='16-22';
```
## Task
Generate a SQL query to answer the following question:
`Name the score for the mariners opponent on may 10`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for the mariners opponent on may 10`:
```sql
                SELECT "score" FROM "game_log" WHERE "opponent"='mariners' AND "date"='may 10';
```
## Task
Generate a SQL query to answer the following question:
`What was the Outcome for the Partner of Jürgen Melzer and the Date of January 7, 2012?`

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

CREATE TABLE "doubles_8_5_3" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Outcome for the Partner of Jürgen Melzer and the Date of January 7, 2012?`:
```sql
                SELECT "outcome" FROM "doubles_8_5_3" WHERE "partner"='jürgen melzer' AND "date"='january 7, 2012';
```
## Task
Generate a SQL query to answer the following question:
`What was the Surface for the Partner of Jürgen Melzer, and a Date of July 16, 2011?`

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

CREATE TABLE "doubles_8_5_3" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Surface for the Partner of Jürgen Melzer, and a Date of July 16, 2011?`:
```sql
                SELECT "surface" FROM "doubles_8_5_3" WHERE "partner"='jürgen melzer' AND "date"='july 16, 2011';
```
## Task
Generate a SQL query to answer the following question:
`What's the Outcome for the Date of July 16, 2011?`

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

CREATE TABLE "doubles_8_5_3" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Outcome for the Date of July 16, 2011?`:
```sql
                SELECT "outcome" FROM "doubles_8_5_3" WHERE "date"='july 16, 2011';
```
## Task
Generate a SQL query to answer the following question:
`What's the Outcome for the Partner of Jürgen Melzer on the Date of February 7, 2010?`

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

CREATE TABLE "doubles_8_5_3" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Outcome for the Partner of Jürgen Melzer on the Date of February 7, 2010?`:
```sql
                SELECT "outcome" FROM "doubles_8_5_3" WHERE "partner"='jürgen melzer' AND "date"='february 7, 2010';
```
## Task
Generate a SQL query to answer the following question:
`Name the nation with rank more than 9`

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

CREATE TABLE "cultural_events" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nation with rank more than 9`:
```sql
                SELECT "nation" FROM "cultural_events" WHERE "rank">9;
```
## Task
Generate a SQL query to answer the following question:
`Name the least bronze for silver being less than 0`

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

CREATE TABLE "cultural_events" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least bronze for silver being less than 0`:
```sql
                SELECT MIN("bronze") FROM "cultural_events" WHERE "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of rank for bronze less than 1 and gold of 1 with total less than 1`

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

CREATE TABLE "cultural_events" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of rank for bronze less than 1 and gold of 1 with total less than 1`:
```sql
                SELECT SUM("rank") FROM "cultural_events" WHERE "bronze"<1 AND "gold"=1 AND "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of rank for silver less than 0`

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

CREATE TABLE "cultural_events" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of rank for silver less than 0`:
```sql
                SELECT SUM("rank") FROM "cultural_events" WHERE "silver"<0;
```