cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a Score of 6(4)–7 2–6?`

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

CREATE TABLE "doubles_11_3_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has a Score of 6(4)–7 2–6?`:
```sql
                SELECT "tournament" FROM "doubles_11_3_8" WHERE "score"='6(4)–7 2–6';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of the match where Opponents in the Final was Vitalia Diatchenko Irena Pavlovic?`

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

CREATE TABLE "doubles_11_3_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of the match where Opponents in the Final was Vitalia Diatchenko Irena Pavlovic?`:
```sql
                SELECT "score" FROM "doubles_11_3_8" WHERE "opponents_in_the_final"='vitalia diatchenko irena pavlovic';
```
## Task
Generate a SQL query to answer the following question:
`What is the High rebounds with a Game that is 62?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the High rebounds with a Game that is 62?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "game"=62;
```
## Task
Generate a SQL query to answer the following question:
`What is the Team with a Score that is l 79–92 (ot)?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Team with a Score that is l 79–92 (ot)?`:
```sql
                SELECT "team" FROM "game_log" WHERE "score"='l 79–92 (ot)';
```
## Task
Generate a SQL query to answer the following question:
`Who is the coach of the 2012 Gold Coast Titans season?`

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

CREATE TABLE "p_premier_r_runner_up_m_minor_premier_f_" (
  "competition" text,
  "ladder_position" text,
  "coach" text,
  "captain_s" text,
  "details" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the coach of the 2012 Gold Coast Titans season?`:
```sql
                SELECT "coach" FROM "p_premier_r_runner_up_m_minor_premier_f_" WHERE "details"='2012 gold coast titans season';
```
## Task
Generate a SQL query to answer the following question:
`Who is the coach of the 2010 Gold Coast Titans season?`

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

CREATE TABLE "p_premier_r_runner_up_m_minor_premier_f_" (
  "competition" text,
  "ladder_position" text,
  "coach" text,
  "captain_s" text,
  "details" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the coach of the 2010 Gold Coast Titans season?`:
```sql
                SELECT "coach" FROM "p_premier_r_runner_up_m_minor_premier_f_" WHERE "details"='2010 gold coast titans season';
```
## Task
Generate a SQL query to answer the following question:
`Who is the captain of the 2012 NRL season competition?`

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

CREATE TABLE "p_premier_r_runner_up_m_minor_premier_f_" (
  "competition" text,
  "ladder_position" text,
  "coach" text,
  "captain_s" text,
  "details" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the captain of the 2012 NRL season competition?`:
```sql
                SELECT "captain_s" FROM "p_premier_r_runner_up_m_minor_premier_f_" WHERE "competition"='2012 nrl season';
```
## Task
Generate a SQL query to answer the following question:
`How many wins were in the PGA Championship when there were more than 10 events?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins were in the PGA Championship when there were more than 10 events?`:
```sql
                SELECT COUNT("wins") FROM "summary" WHERE "tournament"='pga championship' AND "events">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of cuts when there were more than 0 wins?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of cuts when there were more than 0 wins?`:
```sql
                SELECT MIN("cuts_made") FROM "summary" WHERE "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Rank for 1996–2007, when there are more than 108 goals?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Rank for 1996–2007, when there are more than 108 goals?`:
```sql
                SELECT COUNT("rank") FROM "list_of_top_association_football_goal_sc" WHERE "years"='1996–2007' AND "goals">108;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Rank when the goals are less than 124 for Jeff Cunningham?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Rank when the goals are less than 124 for Jeff Cunningham?`:
```sql
                SELECT MIN("rank") FROM "list_of_top_association_football_goal_sc" WHERE "goals">124 AND "name"='jeff cunningham';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Rank with 100 goals, and less than 300 matches?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Rank with 100 goals, and less than 300 matches?`:
```sql
                SELECT COUNT("rank") FROM "list_of_top_association_football_goal_sc" WHERE "goals"=100 AND "matches"<300;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Rank for Jason Kreis, with less than 305 matches?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Rank for Jason Kreis, with less than 305 matches?`:
```sql
                SELECT MAX("rank") FROM "list_of_top_association_football_goal_sc" WHERE "name"='jason kreis' AND "matches"<305;
```
## Task
Generate a SQL query to answer the following question:
`What is the least number of wins when the top 10 is more than 8?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least number of wins when the top 10 is more than 8?`:
```sql
                SELECT MIN("wins") FROM "summary" WHERE "top_10">8;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of cuts made when the top-5 is 2, and there are 12 events?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of cuts made when the top-5 is 2, and there are 12 events?`:
```sql
                SELECT COUNT("cuts_made") FROM "summary" WHERE "top_5"=2 AND "events"=12;
```
## Task
Generate a SQL query to answer the following question:
`What is the mean number in the top 5 when the top 25 is 1 and there's fewer than 0 wins?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mean number in the top 5 when the top 25 is 1 and there's fewer than 0 wins?`:
```sql
                SELECT AVG("top_5") FROM "summary" WHERE "top_25"=1 AND "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the mean number of events when top-5 is 1?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mean number of events when top-5 is 1?`:
```sql
                SELECT AVG("events") FROM "summary" WHERE "top_5"=1;
```
## Task
Generate a SQL query to answer the following question:
`How many top-25s are associated with more than 91 events?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many top-25s are associated with more than 91 events?`:
```sql
                SELECT SUM("top_25") FROM "summary" WHERE "events">91;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Wins with a Top-10 that is larger than 9?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Wins with a Top-10 that is larger than 9?`:
```sql
                SELECT MIN("wins") FROM "summary" WHERE "top_10">9;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Cuts that were made with a Top-10 that is larger than 9?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Cuts that were made with a Top-10 that is larger than 9?`:
```sql
                SELECT AVG("cuts_made") FROM "summary" WHERE "top_10">9;
```
## Task
Generate a SQL query to answer the following question:
`Which record has 64,053 as the attendance?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "game_site" text,
  "final_score" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which record has 64,053 as the attendance?`:
```sql
                SELECT "record" FROM "schedule" WHERE "attendance"='64,053';
```
## Task
Generate a SQL query to answer the following question:
`Which date has rich stadium as the game site for week 1?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "game_site" text,
  "final_score" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has rich stadium as the game site for week 1?`:
```sql
                SELECT "date" FROM "schedule" WHERE "game_site"='rich stadium' AND "week"=1;
```
## Task
Generate a SQL query to answer the following question:
`Which date has 1 as the week?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "game_site" text,
  "final_score" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has 1 as the week?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=1;
```
## Task
Generate a SQL query to answer the following question:
`Which Title was awarded the gold RIAA Sales Certification?`

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

CREATE TABLE "studio_albums" (
  "year" real,
  "title" text,
  "label" text,
  "riaa_sales_certification" text,
  "billboard_200_peak" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Title was awarded the gold RIAA Sales Certification?`:
```sql
                SELECT "title" FROM "studio_albums" WHERE "riaa_sales_certification"='gold';
```
## Task
Generate a SQL query to answer the following question:
`For how many years did the song "Lost Without Your Love" win the gold RIAA Sales Certification, and have a Billboard 200 Peak greater than 26?`

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

CREATE TABLE "studio_albums" (
  "year" real,
  "title" text,
  "label" text,
  "riaa_sales_certification" text,
  "billboard_200_peak" real
);
### SQL
Given the database schema, here is the SQL query that answers `For how many years did the song "Lost Without Your Love" win the gold RIAA Sales Certification, and have a Billboard 200 Peak greater than 26?`:
```sql
                SELECT SUM("year") FROM "studio_albums" WHERE "riaa_sales_certification"='gold' AND "title"='lost without your love' AND "billboard_200_peak">26;
```
## Task
Generate a SQL query to answer the following question:
`Before the Year 1972, what RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak less than 18?`

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

CREATE TABLE "studio_albums" (
  "year" real,
  "title" text,
  "label" text,
  "riaa_sales_certification" text,
  "billboard_200_peak" real
);
### SQL
Given the database schema, here is the SQL query that answers `Before the Year 1972, what RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak less than 18?`:
```sql
                SELECT "riaa_sales_certification" FROM "studio_albums" WHERE "billboard_200_peak"<18 AND "year"<1972;
```
## Task
Generate a SQL query to answer the following question:
`What RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak of 21?`

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

CREATE TABLE "studio_albums" (
  "year" real,
  "title" text,
  "label" text,
  "riaa_sales_certification" text,
  "billboard_200_peak" real
);
### SQL
Given the database schema, here is the SQL query that answers `What RIAA Sales Certification was awarded to the song that had a Billboard 200 Peak of 21?`:
```sql
                SELECT "riaa_sales_certification" FROM "studio_albums" WHERE "billboard_200_peak"=21;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the Billboard 200 Peak scores after the Year 1971?`

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

CREATE TABLE "studio_albums" (
  "year" real,
  "title" text,
  "label" text,
  "riaa_sales_certification" text,
  "billboard_200_peak" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the Billboard 200 Peak scores after the Year 1971?`:
```sql
                SELECT SUM("billboard_200_peak") FROM "studio_albums" WHERE "year">1971;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the Billboard 200 Peak scores given to the song with the Title Bread?`

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

CREATE TABLE "studio_albums" (
  "year" real,
  "title" text,
  "label" text,
  "riaa_sales_certification" text,
  "billboard_200_peak" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the Billboard 200 Peak scores given to the song with the Title Bread?`:
```sql
                SELECT SUM("billboard_200_peak") FROM "studio_albums" WHERE "title"='bread';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of gold when the silver is 1, bronze is 1, and the nation is Austria?`

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

CREATE TABLE "medals_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 number of gold when the silver is 1, bronze is 1, and the nation is Austria?`:
```sql
                SELECT COUNT("gold") FROM "medals_table" WHERE "silver"=1 AND "bronze"=1 AND "nation"='austria';
```
## Task
Generate a SQL query to answer the following question:
`What nation has 2 bronze and a rank of 9?`

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

CREATE TABLE "medals_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 nation has 2 bronze and a rank of 9?`:
```sql
                SELECT "nation" FROM "medals_table" WHERE "bronze"=2 AND "rank"=9;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest gold when bronze is 1, and rank is 5?`

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

CREATE TABLE "medals_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 highest gold when bronze is 1, and rank is 5?`:
```sql
                SELECT MAX("gold") FROM "medals_table" WHERE "bronze"=1 AND "rank"=5;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest gold when there are 0 bronze and the total is less than 2, and silver is less than 0?`

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

CREATE TABLE "medals_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 lowest gold when there are 0 bronze and the total is less than 2, and silver is less than 0?`:
```sql
                SELECT MIN("gold") FROM "medals_table" WHERE "bronze"=0 AND "total"<2 AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of rank when total is 3 and the nation is Australia?`

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

CREATE TABLE "medals_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 sum of rank when total is 3 and the nation is Australia?`:
```sql
                SELECT SUM("rank") FROM "medals_table" WHERE "total"=3 AND "nation"='australia';
```
## Task
Generate a SQL query to answer the following question:
`What is the Rank with a Goal number smaller than 66?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rank with a Goal number smaller than 66?`:
```sql
                SELECT "rank" FROM "list_of_top_association_football_goal_sc" WHERE "goals"<66;
```
## Task
Generate a SQL query to answer the following question:
`What is the spoofed title for Parks and Recreation with an issue larger than 509?`

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

CREATE TABLE "2010s" (
  "spoofed_title" text,
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the spoofed title for Parks and Recreation with an issue larger than 509?`:
```sql
                SELECT "spoofed_title" FROM "2010s" WHERE "issue">509 AND "actual_title"='parks and recreation';
```
## Task
Generate a SQL query to answer the following question:
`What was the actual title of the show that had an issue number less than 508, was written by Desmond Devlin, and for which Tom Richmond was the artist?`

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

CREATE TABLE "2010s" (
  "spoofed_title" text,
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the actual title of the show that had an issue number less than 508, was written by Desmond Devlin, and for which Tom Richmond was the artist?`:
```sql
                SELECT "actual_title" FROM "2010s" WHERE "artist"='tom richmond' AND "issue"<508 AND "writer"='desmond devlin';
```
## Task
Generate a SQL query to answer the following question:
`What issue was the spoofed title Ho-Hum land?`

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

CREATE TABLE "2010s" (
  "spoofed_title" text,
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real
);
### SQL
Given the database schema, here is the SQL query that answers `What issue was the spoofed title Ho-Hum land?`:
```sql
                SELECT SUM("issue") FROM "2010s" WHERE "spoofed_title"='ho-hum land';
```
## Task
Generate a SQL query to answer the following question:
`Game of Thrones was done by which artist?`

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

CREATE TABLE "2010s" (
  "spoofed_title" text,
  "actual_title" text,
  "writer" text,
  "artist" text,
  "issue" real
);
### SQL
Given the database schema, here is the SQL query that answers `Game of Thrones was done by which artist?`:
```sql
                SELECT "artist" FROM "2010s" WHERE "actual_title"='game of thrones';
```
## Task
Generate a SQL query to answer the following question:
`What is the Surface when Todd Woodbridge was the runner-up, and a Date of 24 february 1997?`

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

CREATE TABLE "singles_9_2_7" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Surface when Todd Woodbridge was the runner-up, and a Date of 24 february 1997?`:
```sql
                SELECT "surface" FROM "singles_9_2_7" WHERE "outcome"='runner-up' AND "date"='24 february 1997';
```
## Task
Generate a SQL query to answer the following question:
`What is the Opponent when Todd Woodbridge was the runner-up, and a Date of 26 august 1996?`

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

CREATE TABLE "singles_9_2_7" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent when Todd Woodbridge was the runner-up, and a Date of 26 august 1996?`:
```sql
                SELECT "opponent" FROM "singles_9_2_7" WHERE "outcome"='runner-up' AND "date"='26 august 1996';
```
## Task
Generate a SQL query to answer the following question:
`What is the Surface when the score was 4–6, 6–3, 6–7 (5–7)?`

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

CREATE TABLE "singles_9_2_7" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Surface when the score was 4–6, 6–3, 6–7 (5–7)?`:
```sql
                SELECT "surface" FROM "singles_9_2_7" WHERE "score"='4–6, 6–3, 6–7 (5–7)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score when there was a hard surface and the Championship is new haven , usa?`

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

CREATE TABLE "singles_9_2_7" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score when there was a hard surface and the Championship is new haven , usa?`:
```sql
                SELECT "score" FROM "singles_9_2_7" WHERE "surface"='hard' AND "championship"='new haven , usa';
```
## Task
Generate a SQL query to answer the following question:
`Which Position player was born June 30, 1981?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "2005_2006_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position player was born June 30, 1981?`:
```sql
                SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "birthdate"='june 30, 1981';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2005-2006 team for player Phil Kessel?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "2005_2006_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2005-2006 team for player Phil Kessel?`:
```sql
                SELECT "2005_2006_team" FROM "list_of_united_states_national_ice_hocke" WHERE "name"='phil kessel';
```
## Task
Generate a SQL query to answer the following question:
`What is the total sum of the goals at competitions with more than 10 draws?`

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

CREATE TABLE "european_records" (
  "competition" text,
  "appearances" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total sum of the goals at competitions with more than 10 draws?`:
```sql
                SELECT SUM("goals_for") FROM "european_records" WHERE "drawn">10;
```
## Task
Generate a SQL query to answer the following question:
`For the teams that had more than 2 Byes, what was the highest number of Wins?`

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

CREATE TABLE "2003_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the teams that had more than 2 Byes, what was the highest number of Wins?`:
```sql
                SELECT MAX("wins") FROM "2003_ladder" WHERE "byes">2;
```
## Task
Generate a SQL query to answer the following question:
`For the teams that had fewer than 4 Losses, and less than 16 Wins, what was the total number of Draws?`

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

CREATE TABLE "2003_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the teams that had fewer than 4 Losses, and less than 16 Wins, what was the total number of Draws?`:
```sql
                SELECT COUNT("draws") FROM "2003_ladder" WHERE "losses"<4 AND "wins"<16;
```
## Task
Generate a SQL query to answer the following question:
`For the teams that had less than 1 loss, what was the average number of Wins?`

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

CREATE TABLE "2003_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the teams that had less than 1 loss, what was the average number of Wins?`:
```sql
                SELECT AVG("wins") FROM "2003_ladder" WHERE "losses"<1;
```
## Task
Generate a SQL query to answer the following question:
`For the teams that had fewer than 1 Byes, what was the lowest number of Draws?`

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

CREATE TABLE "2003_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the teams that had fewer than 1 Byes, what was the lowest number of Draws?`:
```sql
                SELECT MIN("draws") FROM "2003_ladder" WHERE "byes"<1;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of Draws scored by Sebastapol when the value for Against was less than 1802?`

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

CREATE TABLE "2003_ladder" (
  "ballarat_fl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of Draws scored by Sebastapol when the value for Against was less than 1802?`:
```sql
                SELECT MAX("draws") FROM "2003_ladder" WHERE "ballarat_fl"='sebastapol' AND "against"<1802;
```
## Task
Generate a SQL query to answer the following question:
`What is the Season when the Opponent was zenit st. petersburg?`

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

CREATE TABLE "2000s_incorporation" (
  "season" text,
  "competition" text,
  "round" text,
  "opponent" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Season when the Opponent was zenit st. petersburg?`:
```sql
                SELECT "season" FROM "2000s_incorporation" WHERE "opponent"='zenit st. petersburg';
```
## Task
Generate a SQL query to answer the following question:
`What is the Opponent with a Round of q2, in the 2005–06 season?`

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

CREATE TABLE "2000s_incorporation" (
  "season" text,
  "competition" text,
  "round" text,
  "opponent" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent with a Round of q2, in the 2005–06 season?`:
```sql
                SELECT "opponent" FROM "2000s_incorporation" WHERE "round"='q2' AND "season"='2005–06';
```
## Task
Generate a SQL query to answer the following question:
`What is the Competition for Season 2002–03, and the Opponent was zenit st. petersburg?`

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

CREATE TABLE "2000s_incorporation" (
  "season" text,
  "competition" text,
  "round" text,
  "opponent" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Competition for Season 2002–03, and the Opponent was zenit st. petersburg?`:
```sql
                SELECT "competition" FROM "2000s_incorporation" WHERE "season"='2002–03' AND "opponent"='zenit st. petersburg';
```
## Task
Generate a SQL query to answer the following question:
`What is the Round when the series shows 5th place, and a Season of 2006–07?`

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

CREATE TABLE "2000s_incorporation" (
  "season" text,
  "competition" text,
  "round" text,
  "opponent" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Round when the series shows 5th place, and a Season of 2006–07?`:
```sql
                SELECT "round" FROM "2000s_incorporation" WHERE "series"='5th place' AND "season"='2006–07';
```
## Task
Generate a SQL query to answer the following question:
`What is the Series for the uefa cup, in the 2006–07 season, and a Round of group, and an opponent of az?`

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

CREATE TABLE "2000s_incorporation" (
  "season" text,
  "competition" text,
  "round" text,
  "opponent" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Series for the uefa cup, in the 2006–07 season, and a Round of group, and an opponent of az?`:
```sql
                SELECT "series" FROM "2000s_incorporation" WHERE "competition"='uefa cup' AND "season"='2006–07' AND "round"='group' AND "opponent"='az';
```
## Task
Generate a SQL query to answer the following question:
`Which Flag did the Ship Aidavita have?`

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

CREATE TABLE "current_fleet" (
  "ship" text,
  "built" real,
  "builder" text,
  "entered_service_for_aida" text,
  "gross_tonnage" text,
  "flag" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Flag did the Ship Aidavita have?`:
```sql
                SELECT "flag" FROM "current_fleet" WHERE "ship"='aidavita';
```
## Task
Generate a SQL query to answer the following question:
`What shows for Set 5 when the Total was 77 - 65?`

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

CREATE TABLE "results_pool_a" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for Set 5 when the Total was 77 - 65?`:
```sql
                SELECT "set_5" FROM "results_pool_a" WHERE "total"='77 - 65';
```
## Task
Generate a SQL query to answer the following question:
`What is the Set 3 when the Total was 98 - 92?`

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

CREATE TABLE "results_pool_a" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Set 3 when the Total was 98 - 92?`:
```sql
                SELECT "set_3" FROM "results_pool_a" WHERE "total"='98 - 92';
```
## Task
Generate a SQL query to answer the following question:
`What is the Total when the Set 3 was 25-15?`

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

CREATE TABLE "results_pool_a" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Total when the Set 3 was 25-15?`:
```sql
                SELECT "total" FROM "results_pool_a" WHERE "set_3"='25-15';
```
## Task
Generate a SQL query to answer the following question:
`What is the Set 3 when the Total was 62 - 75?`

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

CREATE TABLE "results_pool_a" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Set 3 when the Total was 62 - 75?`:
```sql
                SELECT "set_3" FROM "results_pool_a" WHERE "total"='62 - 75';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score when Set 2 shows 25-20, and a Total of 75 - 49?`

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

CREATE TABLE "results_pool_a" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score when Set 2 shows 25-20, and a Total of 75 - 49?`:
```sql
                SELECT "score" FROM "results_pool_a" WHERE "set_2"='25-20' AND "total"='75 - 49';
```
## Task
Generate a SQL query to answer the following question:
`What is the ethernet ports of the m1500 appliance?`

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

CREATE TABLE "appliances" (
  "name" text,
  "processor" text,
  "hard_drive" text,
  "ethernet_ports" text,
  "dimensions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ethernet ports of the m1500 appliance?`:
```sql
                SELECT "ethernet_ports" FROM "appliances" WHERE "name"='m1500';
```
## Task
Generate a SQL query to answer the following question:
`What is the ethernet ports of the u150 appliance?`

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

CREATE TABLE "appliances" (
  "name" text,
  "processor" text,
  "hard_drive" text,
  "ethernet_ports" text,
  "dimensions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ethernet ports of the u150 appliance?`:
```sql
                SELECT "ethernet_ports" FROM "appliances" WHERE "name"='u150';
```
## Task
Generate a SQL query to answer the following question:
`What is the dimensions of the u50 appliance?`

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

CREATE TABLE "appliances" (
  "name" text,
  "processor" text,
  "hard_drive" text,
  "ethernet_ports" text,
  "dimensions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the dimensions of the u50 appliance?`:
```sql
                SELECT "dimensions" FROM "appliances" WHERE "name"='u50';
```
## Task
Generate a SQL query to answer the following question:
`What is the ethernet ports of the u10 appliance?`

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

CREATE TABLE "appliances" (
  "name" text,
  "processor" text,
  "hard_drive" text,
  "ethernet_ports" text,
  "dimensions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ethernet ports of the u10 appliance?`:
```sql
                SELECT "ethernet_ports" FROM "appliances" WHERE "name"='u10';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Silver medals for the Nation with less than 1 Bronze?`

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

CREATE TABLE "medals_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 number of Silver medals for the Nation with less than 1 Bronze?`:
```sql
                SELECT COUNT("silver") FROM "medals_table" WHERE "bronze"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Gold medals for the Nation with more than 1 Bronze and more the 4 Total medals?`

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

CREATE TABLE "medals_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 number of Gold medals for the Nation with more than 1 Bronze and more the 4 Total medals?`:
```sql
                SELECT COUNT("gold") FROM "medals_table" WHERE "bronze">1 AND "total">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Gold medals for the Nation with more than 3 Bronze?`

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

CREATE TABLE "medals_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 number of Gold medals for the Nation with more than 3 Bronze?`:
```sql
                SELECT COUNT("gold") FROM "medals_table" WHERE "bronze">3;
```
## Task
Generate a SQL query to answer the following question:
`How many Gold medals did Great Britain with a Total of more than 2 medals receive?`

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

CREATE TABLE "medals_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 `How many Gold medals did Great Britain with a Total of more than 2 medals receive?`:
```sql
                SELECT MIN("gold") FROM "medals_table" WHERE "nation"='great britain' AND "total">2;
```
## Task
Generate a SQL query to answer the following question:
`How many Silver medals did the Nation with a Rank of less than 1 receive?`

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

CREATE TABLE "medals_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 `How many Silver medals did the Nation with a Rank of less than 1 receive?`:
```sql
                SELECT AVG("silver") FROM "medals_table" WHERE "rank"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average total with 1 FA cup and more than 0 FA trophies?`

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

CREATE TABLE "topscorers" (
  "player" text,
  "club" text,
  "league" real,
  "fa_cup" real,
  "fa_trophy" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average total with 1 FA cup and more than 0 FA trophies?`:
```sql
                SELECT AVG("total") FROM "topscorers" WHERE "fa_cup"=1 AND "fa_trophy">0;
```
## Task
Generate a SQL query to answer the following question:
`Which club had more than 2 FA trophies and more than 2 FA cups?`

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

CREATE TABLE "topscorers" (
  "player" text,
  "club" text,
  "league" real,
  "fa_cup" real,
  "fa_trophy" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which club had more than 2 FA trophies and more than 2 FA cups?`:
```sql
                SELECT "club" FROM "topscorers" WHERE "fa_trophy">2 AND "fa_cup">2;
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when the Maroons record was 11–4–1?`

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

CREATE TABLE "game_log" (
  "number" real,
  "result" text,
  "date" text,
  "score" text,
  "opponent" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when the Maroons record was 11–4–1?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "record"='11–4–1';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game on January 5, 1926?`

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

CREATE TABLE "game_log" (
  "number" real,
  "result" text,
  "date" text,
  "score" text,
  "opponent" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game on January 5, 1926?`:
```sql
                SELECT "result" FROM "game_log" WHERE "date"='january 5, 1926';
```
## Task
Generate a SQL query to answer the following question:
`What date had a margin victory of 2 strokes?`

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

CREATE TABLE "lpga_tour_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date had a margin victory of 2 strokes?`:
```sql
                SELECT "date" FROM "lpga_tour_8" WHERE "margin_of_victory"='2 strokes';
```
## Task
Generate a SQL query to answer the following question:
`What is the margin of victory in a semgroup championship?`

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

CREATE TABLE "lpga_tour_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the margin of victory in a semgroup championship?`:
```sql
                SELECT "margin_of_victory" FROM "lpga_tour_8" WHERE "tournament"='semgroup championship';
```