cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who is the Opponent in the final after 1983 with an Outcome of runner-up?`

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

CREATE TABLE "singles_titles_2" (
  "outcome" text,
  "date" real,
  "championship" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Opponent in the final after 1983 with an Outcome of runner-up?`:
```sql
                SELECT "opponent_in_the_final" FROM "singles_titles_2" WHERE "outcome"='runner-up' AND "date">1983;
```
## Task
Generate a SQL query to answer the following question:
`What Opponent in the final had a match with a Score in the final of 7–5, 6–2?`

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

CREATE TABLE "singles_titles_2" (
  "outcome" text,
  "date" real,
  "championship" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Opponent in the final had a match with a Score in the final of 7–5, 6–2?`:
```sql
                SELECT "opponent_in_the_final" FROM "singles_titles_2" WHERE "score_in_the_final"='7–5, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`What is the Championship with Vitas Gerulaitis as Opponent in the final in a match on Clay Surface?`

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

CREATE TABLE "singles_titles_2" (
  "outcome" text,
  "date" real,
  "championship" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Championship with Vitas Gerulaitis as Opponent in the final in a match on Clay Surface?`:
```sql
                SELECT "championship" FROM "singles_titles_2" WHERE "surface"='clay' AND "opponent_in_the_final"='vitas gerulaitis';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of percentage of marine area with an area of territorial waters of 72,144 and exclusive economic zone area less than 996,439?`

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

CREATE TABLE "marine_ecozones" (
  "ecozone" text,
  "area_km_territorial_waters" real,
  "area_km_exclusive_economic_zone" real,
  "percentage_of_total_area_for_eez" real,
  "percentage_of_marine_area_for_eez" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of percentage of marine area with an area of territorial waters of 72,144 and exclusive economic zone area less than 996,439?`:
```sql
                SELECT SUM("percentage_of_marine_area_for_eez") FROM "marine_ecozones" WHERE "area_km_territorial_waters"='72,144' AND "area_km_exclusive_economic_zone"<'996,439';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest percentage of marine area for Pacific Marine ecozone and percentage of total area greater than 3.1?`

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

CREATE TABLE "marine_ecozones" (
  "ecozone" text,
  "area_km_territorial_waters" real,
  "area_km_exclusive_economic_zone" real,
  "percentage_of_total_area_for_eez" real,
  "percentage_of_marine_area_for_eez" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest percentage of marine area for Pacific Marine ecozone and percentage of total area greater than 3.1?`:
```sql
                SELECT MIN("percentage_of_marine_area_for_eez") FROM "marine_ecozones" WHERE "ecozone"='pacific marine' AND "percentage_of_total_area_for_eez">3.1;
```
## Task
Generate a SQL query to answer the following question:
`How many values for percentage of marine area are for the Atlantic marine ecozone with an exclusive economic zone area less than 996,439?`

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

CREATE TABLE "marine_ecozones" (
  "ecozone" text,
  "area_km_territorial_waters" real,
  "area_km_exclusive_economic_zone" real,
  "percentage_of_total_area_for_eez" real,
  "percentage_of_marine_area_for_eez" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many values for percentage of marine area are for the Atlantic marine ecozone with an exclusive economic zone area less than 996,439?`:
```sql
                SELECT COUNT("percentage_of_marine_area_for_eez") FROM "marine_ecozones" WHERE "ecozone"='atlantic marine' AND "area_km_exclusive_economic_zone"<'996,439';
```
## Task
Generate a SQL query to answer the following question:
`What is the average percentage of total area when the percentage of marine area is more than 39.3 and territorial waters area is less than 2,788,349?`

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

CREATE TABLE "marine_ecozones" (
  "ecozone" text,
  "area_km_territorial_waters" real,
  "area_km_exclusive_economic_zone" real,
  "percentage_of_total_area_for_eez" real,
  "percentage_of_marine_area_for_eez" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average percentage of total area when the percentage of marine area is more than 39.3 and territorial waters area is less than 2,788,349?`:
```sql
                SELECT AVG("percentage_of_total_area_for_eez") FROM "marine_ecozones" WHERE "percentage_of_marine_area_for_eez">39.3 AND "area_km_territorial_waters"<'2,788,349';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest area of territorial waters with an exclusive economic zone area more than 704,849 and a percentage of total area greater than 6.8?`

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

CREATE TABLE "marine_ecozones" (
  "ecozone" text,
  "area_km_territorial_waters" real,
  "area_km_exclusive_economic_zone" real,
  "percentage_of_total_area_for_eez" real,
  "percentage_of_marine_area_for_eez" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest area of territorial waters with an exclusive economic zone area more than 704,849 and a percentage of total area greater than 6.8?`:
```sql
                SELECT MIN("area_km_territorial_waters") FROM "marine_ecozones" WHERE "area_km_exclusive_economic_zone">'704,849' AND "percentage_of_total_area_for_eez">6.8;
```
## Task
Generate a SQL query to answer the following question:
`What is the team when alvin williams (6) has the high assists?`

### 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 when alvin williams (6) has the high assists?`:
```sql
                SELECT "team" FROM "game_log" WHERE "high_assists"='alvin williams (6)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Record for a game less than 3 and the score was l 91–96 (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 Record for a game less than 3 and the score was l 91–96 (ot)?`:
```sql
                SELECT "record" FROM "game_log" WHERE "game"<3 AND "score"='l 91–96 (ot)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date when the high points went to Dell Curry (17)?`

### 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 Date when the high points went to Dell Curry (17)?`:
```sql
                SELECT "date" FROM "game_log" WHERE "high_points"='dell curry (17)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Team when antonio davis (8) had the high rebounds?`

### 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 when antonio davis (8) had the high rebounds?`:
```sql
                SELECT "team" FROM "game_log" WHERE "high_rebounds"='antonio davis (8)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tournament with a Date that is apr 16, 1967?`

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

CREATE TABLE "pga_tour_wins_11" (
  "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 Tournament with a Date that is apr 16, 1967?`:
```sql
                SELECT "tournament" FROM "pga_tour_wins_11" WHERE "date"='apr 16, 1967';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date with a Runner(s)-up that is jerry steelsmith?`

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

CREATE TABLE "pga_tour_wins_11" (
  "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 Date with a Runner(s)-up that is jerry steelsmith?`:
```sql
                SELECT "date" FROM "pga_tour_wins_11" WHERE "runner_s_up"='jerry steelsmith';
```
## Task
Generate a SQL query to answer the following question:
`What kind of Obama that has a Source of rasmussen reports?`

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

CREATE TABLE "polling" (
  "source" text,
  "date" text,
  "clinton" text,
  "obama" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Obama that has a Source of rasmussen reports?`:
```sql
                SELECT "obama" FROM "polling" WHERE "source"='rasmussen reports';
```
## Task
Generate a SQL query to answer the following question:
`Which Source has a Undecided of 2%?`

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

CREATE TABLE "polling" (
  "source" text,
  "date" text,
  "clinton" text,
  "obama" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Source has a Undecided of 2%?`:
```sql
                SELECT "source" FROM "polling" WHERE "undecided"='2%';
```
## Task
Generate a SQL query to answer the following question:
`What kind of Obama has a Undecided of 1%?`

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

CREATE TABLE "polling" (
  "source" text,
  "date" text,
  "clinton" text,
  "obama" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Obama has a Undecided of 1%?`:
```sql
                SELECT "obama" FROM "polling" WHERE "undecided"='1%';
```
## Task
Generate a SQL query to answer the following question:
`When has a Source of surveyusa and a Obama of 54%?`

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

CREATE TABLE "polling" (
  "source" text,
  "date" text,
  "clinton" text,
  "obama" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a Source of surveyusa and a Obama of 54%?`:
```sql
                SELECT "date" FROM "polling" WHERE "source"='surveyusa' AND "obama"='54%';
```
## Task
Generate a SQL query to answer the following question:
`When has a Source of rasmussen reports?`

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

CREATE TABLE "polling" (
  "source" text,
  "date" text,
  "clinton" text,
  "obama" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a Source of rasmussen reports?`:
```sql
                SELECT "date" FROM "polling" WHERE "source"='rasmussen reports';
```
## Task
Generate a SQL query to answer the following question:
`Which Source has a Clinton of 39% and a Undecided of 7%?`

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

CREATE TABLE "polling" (
  "source" text,
  "date" text,
  "clinton" text,
  "obama" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Source has a Clinton of 39% and a Undecided of 7%?`:
```sql
                SELECT "source" FROM "polling" WHERE "clinton"='39%' AND "undecided"='7%';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of Birth with a Block that is larger than 342?`

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

CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" (
  "name" text,
  "date_of_birth" text,
  "height" real,
  "weight" real,
  "spike" real,
  "block" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of Birth with a Block that is larger than 342?`:
```sql
                SELECT "date_of_birth" FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "block">342;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of positions that have 2012 ratings of 0.92?`

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

CREATE TABLE "most_viewed_channels" (
  "position" real,
  "channel" text,
  "launch_date" real,
  "owner" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013_p" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of positions that have 2012 ratings of 0.92?`:
```sql
                SELECT COUNT("position") FROM "most_viewed_channels" WHERE "2012"='0.92';
```
## Task
Generate a SQL query to answer the following question:
`What is the owner of the channel that has a 2012 rating of 5.42?`

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

CREATE TABLE "most_viewed_channels" (
  "position" real,
  "channel" text,
  "launch_date" real,
  "owner" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013_p" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the owner of the channel that has a 2012 rating of 5.42?`:
```sql
                SELECT "owner" FROM "most_viewed_channels" WHERE "2012"='5.42';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2007 rating of the channel with a position of 6?`

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

CREATE TABLE "most_viewed_channels" (
  "position" real,
  "channel" text,
  "launch_date" real,
  "owner" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013_p" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007 rating of the channel with a position of 6?`:
```sql
                SELECT "2007" FROM "most_viewed_channels" WHERE "position"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is the channel with a 2011 rating of 8.5?`

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

CREATE TABLE "most_viewed_channels" (
  "position" real,
  "channel" text,
  "launch_date" real,
  "owner" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013_p" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the channel with a 2011 rating of 8.5?`:
```sql
                SELECT "channel" FROM "most_viewed_channels" WHERE "2011"='8.5';
```
## Task
Generate a SQL query to answer the following question:
`What is ASTC Member, when State is Arkansas, when AAM Member is No, and when AAM Accredited is Yes?`

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

CREATE TABLE "see_also" (
  "city" text,
  "state" text,
  "aam_accredited" text,
  "aam_member" text,
  "astc_member" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is ASTC Member, when State is Arkansas, when AAM Member is No, and when AAM Accredited is Yes?`:
```sql
                SELECT "astc_member" FROM "see_also" WHERE "state"='arkansas' AND "aam_member"='no' AND "aam_accredited"='yes';
```
## Task
Generate a SQL query to answer the following question:
`What is City, when State is Florida, when AAM Member is No, and when AAM Accredited is No?`

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

CREATE TABLE "see_also" (
  "city" text,
  "state" text,
  "aam_accredited" text,
  "aam_member" text,
  "astc_member" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is City, when State is Florida, when AAM Member is No, and when AAM Accredited is No?`:
```sql
                SELECT "city" FROM "see_also" WHERE "state"='florida' AND "aam_member"='no' AND "aam_accredited"='no';
```
## Task
Generate a SQL query to answer the following question:
`What is City, when ASTC Member is No, when State is California, and when AAM Member is Yes?`

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

CREATE TABLE "see_also" (
  "city" text,
  "state" text,
  "aam_accredited" text,
  "aam_member" text,
  "astc_member" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is City, when ASTC Member is No, when State is California, and when AAM Member is Yes?`:
```sql
                SELECT "city" FROM "see_also" WHERE "astc_member"='no' AND "state"='california' AND "aam_member"='yes';
```
## Task
Generate a SQL query to answer the following question:
`What is State, when AAM Accredited is No, when ASTC Member is No, and when City is Tulsa?`

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

CREATE TABLE "see_also" (
  "city" text,
  "state" text,
  "aam_accredited" text,
  "aam_member" text,
  "astc_member" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is State, when AAM Accredited is No, when ASTC Member is No, and when City is Tulsa?`:
```sql
                SELECT "state" FROM "see_also" WHERE "aam_accredited"='no' AND "astc_member"='no' AND "city"='tulsa';
```
## Task
Generate a SQL query to answer the following question:
`What is City, when State is California, when AAM Accredited is No, when ASTC Member is Yes, and when AAM Member is No?`

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

CREATE TABLE "see_also" (
  "city" text,
  "state" text,
  "aam_accredited" text,
  "aam_member" text,
  "astc_member" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is City, when State is California, when AAM Accredited is No, when ASTC Member is Yes, and when AAM Member is No?`:
```sql
                SELECT "city" FROM "see_also" WHERE "state"='california' AND "aam_accredited"='no' AND "astc_member"='yes' AND "aam_member"='no';
```
## Task
Generate a SQL query to answer the following question:
`What is AAM Member, when AAM Accredited is No, when State is California, when ASTC Member is Yes, and when City is Sacramento?`

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

CREATE TABLE "see_also" (
  "city" text,
  "state" text,
  "aam_accredited" text,
  "aam_member" text,
  "astc_member" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is AAM Member, when AAM Accredited is No, when State is California, when ASTC Member is Yes, and when City is Sacramento?`:
```sql
                SELECT "aam_member" FROM "see_also" WHERE "aam_accredited"='no' AND "state"='california' AND "astc_member"='yes' AND "city"='sacramento';
```
## Task
Generate a SQL query to answer the following question:
`Who were the runners-up when the individual winner was Tiger Woods?`

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

CREATE TABLE "winners" (
  "year" real,
  "country" text,
  "team" text,
  "individual" text,
  "location" text,
  "runners_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the runners-up when the individual winner was Tiger Woods?`:
```sql
                SELECT "runners_up" FROM "winners" WHERE "individual"='tiger woods';
```
## Task
Generate a SQL query to answer the following question:
`How many years was the individual winner from the United States was Tiger Woods?`

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

CREATE TABLE "winners" (
  "year" real,
  "country" text,
  "team" text,
  "individual" text,
  "location" text,
  "runners_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was the individual winner from the United States was Tiger Woods?`:
```sql
                SELECT COUNT("year") FROM "winners" WHERE "country"='united states' AND "individual"='tiger woods';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year that the tournament was played in Cape Town, South Africa?`

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

CREATE TABLE "winners" (
  "year" real,
  "country" text,
  "team" text,
  "individual" text,
  "location" text,
  "runners_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year that the tournament was played in Cape Town, South Africa?`:
```sql
                SELECT MIN("year") FROM "winners" WHERE "location"='cape town, south africa';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest league for the league cup more than 1, and a FA cup of 1?`

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

CREATE TABLE "topscorers_in_order_of_league_goals" (
  "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 highest league for the league cup more than 1, and a FA cup of 1?`:
```sql
                SELECT MAX("league") FROM "topscorers_in_order_of_league_goals" WHERE "league_cup">1 AND "fa_cup"=1;
```
## Task
Generate a SQL query to answer the following question:
`Who is the Driver, when the Date is October 6?`

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

CREATE TABLE "winners" (
  "season" real,
  "date" text,
  "location" text,
  "driver" text,
  "chassis" text,
  "engine" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Driver, when the Date is October 6?`:
```sql
                SELECT "driver" FROM "winners" WHERE "date"='october 6';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Seasons, when the Engine is Cosworth, and when the Team is Kraco Racing?`

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

CREATE TABLE "winners" (
  "season" real,
  "date" text,
  "location" text,
  "driver" text,
  "chassis" text,
  "engine" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Seasons, when the Engine is Cosworth, and when the Team is Kraco Racing?`:
```sql
                SELECT COUNT("season") FROM "winners" WHERE "engine"='cosworth' AND "team"='kraco racing';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Driver, when the Engine is Chevrolet, and when the Date is October 3?`

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

CREATE TABLE "winners" (
  "season" real,
  "date" text,
  "location" text,
  "driver" text,
  "chassis" text,
  "engine" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Driver, when the Engine is Chevrolet, and when the Date is October 3?`:
```sql
                SELECT "driver" FROM "winners" WHERE "engine"='chevrolet' AND "date"='october 3';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Seasons, when the Team is Penske Racing, and when the Date is October 3?`

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

CREATE TABLE "winners" (
  "season" real,
  "date" text,
  "location" text,
  "driver" text,
  "chassis" text,
  "engine" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Seasons, when the Team is Penske Racing, and when the Date is October 3?`:
```sql
                SELECT SUM("season") FROM "winners" WHERE "team"='penske racing' AND "date"='october 3';
```
## Task
Generate a SQL query to answer the following question:
`What was the Year to Open for the Dandeung Bridge?`

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

CREATE TABLE "bridges_under_construction" (
  "name" text,
  "main_span_metres" text,
  "main_span_feet" text,
  "year_to_open" real,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Year to Open for the Dandeung Bridge?`:
```sql
                SELECT COUNT("year_to_open") FROM "bridges_under_construction" WHERE "name"='dandeung bridge';
```
## Task
Generate a SQL query to answer the following question:
`What is the Main span of the Qincaobei Bridge`

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

CREATE TABLE "bridges_under_construction" (
  "name" text,
  "main_span_metres" text,
  "main_span_feet" text,
  "year_to_open" real,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Main span of the Qincaobei Bridge`:
```sql
                SELECT "main_span_feet" FROM "bridges_under_construction" WHERE "name"='qincaobei bridge';
```
## Task
Generate a SQL query to answer the following question:
`What is the Main span of the bridge from China with a Year to open of 2013 and Main span feet of 2,585?`

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

CREATE TABLE "bridges_under_construction" (
  "name" text,
  "main_span_metres" text,
  "main_span_feet" text,
  "year_to_open" real,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Main span of the bridge from China with a Year to open of 2013 and Main span feet of 2,585?`:
```sql
                SELECT "main_span_metres" FROM "bridges_under_construction" WHERE "year_to_open"=2013 AND "country"='china' AND "main_span_feet"='2,585';
```
## Task
Generate a SQL query to answer the following question:
`Which republican ticket has stanley h. fuld as the Democratic ticket?`

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

CREATE TABLE "1966_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "conservative_ticket" text,
  "liberal_ticket" text,
  "socialist_labor_ticket" text,
  "socialist_workers_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which republican ticket has stanley h. fuld as the Democratic ticket?`:
```sql
                SELECT "republican_ticket" FROM "1966_state_election_results" WHERE "democratic_ticket"='stanley h. fuld';
```
## Task
Generate a SQL query to answer the following question:
`What is the liberal ticket that has judith white as the socialist workers?`

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

CREATE TABLE "1966_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "conservative_ticket" text,
  "liberal_ticket" text,
  "socialist_labor_ticket" text,
  "socialist_workers_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the liberal ticket that has judith white as the socialist workers?`:
```sql
                SELECT "liberal_ticket" FROM "1966_state_election_results" WHERE "socialist_workers_ticket"='judith white';
```
## Task
Generate a SQL query to answer the following question:
`What socialist workers ticket has malcolm wilson as the Republican ticket?`

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

CREATE TABLE "1966_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "conservative_ticket" text,
  "liberal_ticket" text,
  "socialist_labor_ticket" text,
  "socialist_workers_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What socialist workers ticket has malcolm wilson as the Republican ticket?`:
```sql
                SELECT "socialist_workers_ticket" FROM "1966_state_election_results" WHERE "republican_ticket"='malcolm wilson';
```
## Task
Generate a SQL query to answer the following question:
`Which office has kieran o'doherty as the conservative ticket?`

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

CREATE TABLE "1966_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "conservative_ticket" text,
  "liberal_ticket" text,
  "socialist_labor_ticket" text,
  "socialist_workers_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which office has kieran o'doherty as the conservative ticket?`:
```sql
                SELECT "office" FROM "1966_state_election_results" WHERE "conservative_ticket"='kieran o''doherty';
```
## Task
Generate a SQL query to answer the following question:
`What office has (none) as the socialist labor ticket, and stanley h. fuld as the liberal ticket?`

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

CREATE TABLE "1966_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "conservative_ticket" text,
  "liberal_ticket" text,
  "socialist_labor_ticket" text,
  "socialist_workers_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What office has (none) as the socialist labor ticket, and stanley h. fuld as the liberal ticket?`:
```sql
                SELECT "office" FROM "1966_state_election_results" WHERE "socialist_labor_ticket"='(none)' AND "liberal_ticket"='stanley h. fuld';
```
## Task
Generate a SQL query to answer the following question:
`If the call sign is w291ch what's the ERP W corresponding to that sign?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the call sign is w291ch what's the ERP W corresponding to that sign?`:
```sql
                SELECT "erp_w" FROM "translators" WHERE "call_sign"='w291ch';
```
## Task
Generate a SQL query to answer the following question:
`For the call sign w242at what's the city the license plate is registered to?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the call sign w242at what's the city the license plate is registered to?`:
```sql
                SELECT "city_of_license" FROM "translators" WHERE "call_sign"='w242at';
```
## Task
Generate a SQL query to answer the following question:
`What's the Class for the city the license plate was issued in great barrington, massachusetts?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Class for the city the license plate was issued in great barrington, massachusetts?`:
```sql
                SELECT "class" FROM "translators" WHERE "city_of_license"='great barrington, massachusetts';
```
## Task
Generate a SQL query to answer the following question:
`How many gold have a bronze of 1, a rank smaller than 6, and a total less than 3?`

### 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 have a bronze of 1, a rank smaller than 6, and a total less than 3?`:
```sql
                SELECT SUM("gold") FROM "medals_table" WHERE "bronze"=1 AND "rank"<6 AND "total"<3;
```
## Task
Generate a SQL query to answer the following question:
`How many France bronze have a gold of more than 1 and a rank of 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 `How many France bronze have a gold of more than 1 and a rank of 0?`:
```sql
                SELECT SUM("bronze") FROM "medals_table" WHERE "gold">1 AND "nation"='france' AND "rank"<1;
```
## Task
Generate a SQL query to answer the following question:
`How many gold have a silver of 1 and a bronze of 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 `How many gold have a silver of 1 and a bronze of 0?`:
```sql
                SELECT SUM("gold") FROM "medals_table" WHERE "silver"=1 AND "bronze"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the Aircraft when Kabul was the location, unknown fatalities, and the tail number was ya-ban?`

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

CREATE TABLE "accidents_and_incidents" (
  "location" text,
  "aircraft" text,
  "tail_number" text,
  "aircraft_damage" text,
  "fatalities" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Aircraft when Kabul was the location, unknown fatalities, and the tail number was ya-ban?`:
```sql
                SELECT "aircraft" FROM "accidents_and_incidents" WHERE "location"='kabul' AND "fatalities"='unknown' AND "tail_number"='ya-ban';
```
## Task
Generate a SQL query to answer the following question:
`What is the Fatalities when the tail number was unknown and in Kabul>`

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

CREATE TABLE "accidents_and_incidents" (
  "location" text,
  "aircraft" text,
  "tail_number" text,
  "aircraft_damage" text,
  "fatalities" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Fatalities when the tail number was unknown and in Kabul>`:
```sql
                SELECT "fatalities" FROM "accidents_and_incidents" WHERE "tail_number"='unknown' AND "location"='kabul';
```
## Task
Generate a SQL query to answer the following question:
`What is the location for the an-12b aircraft?`

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

CREATE TABLE "accidents_and_incidents" (
  "location" text,
  "aircraft" text,
  "tail_number" text,
  "aircraft_damage" text,
  "fatalities" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location for the an-12b aircraft?`:
```sql
                SELECT "location" FROM "accidents_and_incidents" WHERE "aircraft"='an-12b';
```
## Task
Generate a SQL query to answer the following question:
`What location had 25/25 fatalities?`

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

CREATE TABLE "accidents_and_incidents" (
  "location" text,
  "aircraft" text,
  "tail_number" text,
  "aircraft_damage" text,
  "fatalities" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location had 25/25 fatalities?`:
```sql
                SELECT "location" FROM "accidents_and_incidents" WHERE "fatalities"='25/25';
```
## Task
Generate a SQL query to answer the following question:
`What tail number was on the an-26, with 25/25 fatalities?`

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

CREATE TABLE "accidents_and_incidents" (
  "location" text,
  "aircraft" text,
  "tail_number" text,
  "aircraft_damage" text,
  "fatalities" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tail number was on the an-26, with 25/25 fatalities?`:
```sql
                SELECT "tail_number" FROM "accidents_and_incidents" WHERE "aircraft"='an-26' AND "fatalities"='25/25';
```
## Task
Generate a SQL query to answer the following question:
`What type of aircraft was the plane with a tail number of ya-bao?`

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

CREATE TABLE "accidents_and_incidents" (
  "location" text,
  "aircraft" text,
  "tail_number" text,
  "aircraft_damage" text,
  "fatalities" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of aircraft was the plane with a tail number of ya-bao?`:
```sql
                SELECT "aircraft" FROM "accidents_and_incidents" WHERE "tail_number"='ya-bao';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Points from a Match that is larger than 18?`

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

CREATE TABLE "third_league" (
  "team" text,
  "match" real,
  "points" real,
  "draw" real,
  "lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Points from a Match that is larger than 18?`:
```sql
                SELECT COUNT("points") FROM "third_league" WHERE "match">18;
```
## Task
Generate a SQL query to answer the following question:
`In what Season was the Series Formula Renault 3.5 series with less than 7 Races?`

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

CREATE TABLE "racing_record" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Season was the Series Formula Renault 3.5 series with less than 7 Races?`:
```sql
                SELECT SUM("season") FROM "racing_record" WHERE "series"='formula renault 3.5 series' AND "races"<7;
```
## Task
Generate a SQL query to answer the following question:
`What was the Series in 2009?`

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

CREATE TABLE "racing_record" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Series in 2009?`:
```sql
                SELECT "series" FROM "racing_record" WHERE "season"=2009;
```
## Task
Generate a SQL query to answer the following question:
`How many Wins in the Year with more than 16 Races?`

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

CREATE TABLE "racing_record" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Wins in the Year with more than 16 Races?`:
```sql
                SELECT "wins" FROM "racing_record" WHERE "races">16;
```
## Task
Generate a SQL query to answer the following question:
`In what Season were then less than 3 Races with less than 1 Win?`

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

CREATE TABLE "racing_record" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Season were then less than 3 Races with less than 1 Win?`:
```sql
                SELECT AVG("season") FROM "racing_record" WHERE "races"<3 AND "wins"<1;
```
## Task
Generate a SQL query to answer the following question:
`Which 1st leg has a Team #1 of ummc ekaterinburg?`

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

CREATE TABLE "eighth_finals" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1st leg has a Team #1 of ummc ekaterinburg?`:
```sql
                SELECT "1st_leg" FROM "eighth_finals" WHERE "team_num1"='ummc ekaterinburg';
```
## Task
Generate a SQL query to answer the following question:
`Which Team #2 has a 2nd leg of 79 - 74 (ot)?`

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

CREATE TABLE "eighth_finals" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team #2 has a 2nd leg of 79 - 74 (ot)?`:
```sql
                SELECT "team_num2" FROM "eighth_finals" WHERE "2nd_leg"='79 - 74 (ot)';
```
## Task
Generate a SQL query to answer the following question:
`Which Team #2 has a 1st leg of 70 - 44?`

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

CREATE TABLE "eighth_finals" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team #2 has a 1st leg of 70 - 44?`:
```sql
                SELECT "team_num2" FROM "eighth_finals" WHERE "1st_leg"='70 - 44';
```
## Task
Generate a SQL query to answer the following question:
`Which Team #2 has a Team #1 of gambrinus sika brno?`

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

CREATE TABLE "eighth_finals" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team #2 has a Team #1 of gambrinus sika brno?`:
```sql
                SELECT "team_num2" FROM "eighth_finals" WHERE "team_num1"='gambrinus sika brno';
```
## Task
Generate a SQL query to answer the following question:
`What is the Goal number in Råsunda, Stockholm with a Result of 2–2?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Goal number in Råsunda, Stockholm with a Result of 2–2?`:
```sql
                SELECT AVG("goal") FROM "international_goals" WHERE "result"='2–2' AND "venue"='råsunda, stockholm';
```
## Task
Generate a SQL query to answer the following question:
`What is the Result of Goal number 3?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result of Goal number 3?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "goal"=3;
```
## Task
Generate a SQL query to answer the following question:
`On what day was a game played at Reese Smith Field, with a score of 4-3?`

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

CREATE TABLE "schedule_and_results" (
  "date" text,
  "opponent" text,
  "score" text,
  "site_stadium" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what day was a game played at Reese Smith Field, with a score of 4-3?`:
```sql
                SELECT "date" FROM "schedule_and_results" WHERE "score"='4-3' AND "site_stadium"='reese smith field';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the game played on May 10 at Alex Box Stadium?`

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

CREATE TABLE "schedule_and_results" (
  "date" text,
  "opponent" text,
  "score" text,
  "site_stadium" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the game played on May 10 at Alex Box Stadium?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "site_stadium"='alex box stadium' AND "date"='may 10';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the game played at Sarge Frye Field?`

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

CREATE TABLE "schedule_and_results" (
  "date" text,
  "opponent" text,
  "score" text,
  "site_stadium" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the game played at Sarge Frye Field?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "site_stadium"='sarge frye field';
```