cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Country has a Score of 71-74-70=215?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Score of 71-74-70=215?`:
```sql
                SELECT "country" FROM "third_round" WHERE "score"='71-74-70=215';
```
## Task
Generate a SQL query to answer the following question:
`How many losses for the team with less than 4 wins, more than 0 byes and 2510 against?`

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

CREATE TABLE "2008_ladder" (
  "mininera_dfl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses for the team with less than 4 wins, more than 0 byes and 2510 against?`:
```sql
                SELECT AVG("losses") FROM "2008_ladder" WHERE "wins"<4 AND "against"=2510 AND "byes">0;
```
## Task
Generate a SQL query to answer the following question:
`How many wins for team with 1800 Against and more than 0 byes?`

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

CREATE TABLE "2008_ladder" (
  "mininera_dfl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins for team with 1800 Against and more than 0 byes?`:
```sql
                SELECT MAX("wins") FROM "2008_ladder" WHERE "against"=1800 AND "draws">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the least wins for a team with against less than 814?`

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

CREATE TABLE "2008_ladder" (
  "mininera_dfl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least wins for a team with against less than 814?`:
```sql
                SELECT MIN("wins") FROM "2008_ladder" WHERE "against"<814;
```
## Task
Generate a SQL query to answer the following question:
`How many losses for the team with 3 wins and more than 1919 against?`

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

CREATE TABLE "2008_ladder" (
  "mininera_dfl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses for the team with 3 wins and more than 1919 against?`:
```sql
                SELECT MIN("losses") FROM "2008_ladder" WHERE "wins"=3 AND "against">1919;
```
## Task
Generate a SQL query to answer the following question:
`What is the 2002 result where 2011 and 2000 are 1R?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2002 result where 2011 and 2000 are 1R?`:
```sql
                SELECT "2002" FROM "singles_performance_timeline" WHERE "2011"='1r' AND "2000"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2008 result where 2003 is 325?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2008 result where 2003 is 325?`:
```sql
                SELECT "2008" FROM "singles_performance_timeline" WHERE "2003"='325';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2002 result when 2006 is A and 2010 is Q1?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2002 result when 2006 is A and 2010 is Q1?`:
```sql
                SELECT "2002" FROM "singles_performance_timeline" WHERE "2006"='a' AND "2010"='q1';
```
## Task
Generate a SQL query to answer the following question:
`Which Year completed has a Dam type of concrete gravity, and an Impounded body of water of deep creek reservoir?`

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

CREATE TABLE "major_dams_and_reservoirs" (
  "dam_constructed" text,
  "year_completed" real,
  "impounded_body_of_water" text,
  "reservoir_capacity" text,
  "dam_wall_height" text,
  "dam_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year completed has a Dam type of concrete gravity, and an Impounded body of water of deep creek reservoir?`:
```sql
                SELECT MIN("year_completed") FROM "major_dams_and_reservoirs" WHERE "dam_type"='concrete gravity' AND "impounded_body_of_water"='deep creek reservoir';
```
## Task
Generate a SQL query to answer the following question:
`Which dam type was completed in 1961?`

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

CREATE TABLE "major_dams_and_reservoirs" (
  "dam_constructed" text,
  "year_completed" real,
  "impounded_body_of_water" text,
  "reservoir_capacity" text,
  "dam_wall_height" text,
  "dam_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which dam type was completed in 1961?`:
```sql
                SELECT "dam_type" FROM "major_dams_and_reservoirs" WHERE "year_completed"=1961;
```
## Task
Generate a SQL query to answer the following question:
`Which Year completed has a Dam type of earthfill embankment, and a Dam constructed of khancoban dam?`

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

CREATE TABLE "major_dams_and_reservoirs" (
  "dam_constructed" text,
  "year_completed" real,
  "impounded_body_of_water" text,
  "reservoir_capacity" text,
  "dam_wall_height" text,
  "dam_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year completed has a Dam type of earthfill embankment, and a Dam constructed of khancoban dam?`:
```sql
                SELECT MAX("year_completed") FROM "major_dams_and_reservoirs" WHERE "dam_type"='earthfill embankment' AND "dam_constructed"='khancoban dam';
```
## Task
Generate a SQL query to answer the following question:
`Which Reservoir capacity has an Impounded body of water of tumut two pondage?`

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

CREATE TABLE "major_dams_and_reservoirs" (
  "dam_constructed" text,
  "year_completed" real,
  "impounded_body_of_water" text,
  "reservoir_capacity" text,
  "dam_wall_height" text,
  "dam_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Reservoir capacity has an Impounded body of water of tumut two pondage?`:
```sql
                SELECT "reservoir_capacity" FROM "major_dams_and_reservoirs" WHERE "impounded_body_of_water"='tumut two pondage';
```
## Task
Generate a SQL query to answer the following question:
`What Companion (in order from star) has a Semimajor axis (AU) of 0.1886 +0.083 −0.0104?`

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

CREATE TABLE "the_hd_40307_system" (
  "companion_in_order_from_star" text,
  "mass" text,
  "semimajor_axis_au" text,
  "orbital_period_s_day" text,
  "eccentricity" text,
  "inclination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Companion (in order from star) has a Semimajor axis (AU) of 0.1886 +0.083 −0.0104?`:
```sql
                SELECT "companion_in_order_from_star" FROM "the_hd_40307_system" WHERE "semimajor_axis_au"='0.1886 +0.083 −0.0104';
```
## Task
Generate a SQL query to answer the following question:
`What Inclination has Eccentricity of 0.06 +0.06 −0.11?`

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

CREATE TABLE "the_hd_40307_system" (
  "companion_in_order_from_star" text,
  "mass" text,
  "semimajor_axis_au" text,
  "orbital_period_s_day" text,
  "eccentricity" text,
  "inclination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Inclination has Eccentricity of 0.06 +0.06 −0.11?`:
```sql
                SELECT "inclination" FROM "the_hd_40307_system" WHERE "eccentricity"='0.06 +0.06 −0.11';
```
## Task
Generate a SQL query to answer the following question:
`What Companion (in order from star) has an Orbital period (s day) of 9.6184 +0.0050 −0.0049?`

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

CREATE TABLE "the_hd_40307_system" (
  "companion_in_order_from_star" text,
  "mass" text,
  "semimajor_axis_au" text,
  "orbital_period_s_day" text,
  "eccentricity" text,
  "inclination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Companion (in order from star) has an Orbital period (s day) of 9.6184 +0.0050 −0.0049?`:
```sql
                SELECT "companion_in_order_from_star" FROM "the_hd_40307_system" WHERE "orbital_period_s_day"='9.6184 +0.0050 −0.0049';
```
## Task
Generate a SQL query to answer the following question:
`What Inclination has a Mass of ≥ 6.6 +1.1 −1.0 m⊕?`

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

CREATE TABLE "the_hd_40307_system" (
  "companion_in_order_from_star" text,
  "mass" text,
  "semimajor_axis_au" text,
  "orbital_period_s_day" text,
  "eccentricity" text,
  "inclination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Inclination has a Mass of ≥ 6.6 +1.1 −1.0 m⊕?`:
```sql
                SELECT "inclination" FROM "the_hd_40307_system" WHERE "mass"='≥ 6.6 +1.1 −1.0 m⊕';
```
## Task
Generate a SQL query to answer the following question:
`What Semimajor axis (AU) has a Companion (in order from star) of g?`

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

CREATE TABLE "the_hd_40307_system" (
  "companion_in_order_from_star" text,
  "mass" text,
  "semimajor_axis_au" text,
  "orbital_period_s_day" text,
  "eccentricity" text,
  "inclination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Semimajor axis (AU) has a Companion (in order from star) of g?`:
```sql
                SELECT "semimajor_axis_au" FROM "the_hd_40307_system" WHERE "companion_in_order_from_star"='g';
```
## Task
Generate a SQL query to answer the following question:
`What Semimajor axis (AU) has a Mass of ≥ 3.5 ± 1.4 m⊕?`

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

CREATE TABLE "the_hd_40307_system" (
  "companion_in_order_from_star" text,
  "mass" text,
  "semimajor_axis_au" text,
  "orbital_period_s_day" text,
  "eccentricity" text,
  "inclination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Semimajor axis (AU) has a Mass of ≥ 3.5 ± 1.4 m⊕?`:
```sql
                SELECT "semimajor_axis_au" FROM "the_hd_40307_system" WHERE "mass"='≥ 3.5 ± 1.4 m⊕';
```
## Task
Generate a SQL query to answer the following question:
`What Slalom was Switzerland in?`

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

CREATE TABLE "most_race_wins_in_a_single_season" (
  "country" text,
  "season" text,
  "victories" real,
  "downhill" text,
  "super_g" text,
  "giant_slalom" real,
  "slalom" text,
  "combined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Slalom was Switzerland in?`:
```sql
                SELECT "slalom" FROM "most_race_wins_in_a_single_season" WHERE "country"='switzerland';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE PACKAGE VERSION WITH TELUS MOBILITY?`

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

CREATE TABLE "software_updates" (
  "device" text,
  "carrier" text,
  "package_version" text,
  "applications" text,
  "software_platform" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE PACKAGE VERSION WITH TELUS MOBILITY?`:
```sql
                SELECT "package_version" FROM "software_updates" WHERE "carrier"='telus mobility';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE PACKAGE VERSION FOR blackberry storm 9530, APPLICATION 5.0.0.419, AND MTS MOBILITY?`

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

CREATE TABLE "software_updates" (
  "device" text,
  "carrier" text,
  "package_version" text,
  "applications" text,
  "software_platform" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE PACKAGE VERSION FOR blackberry storm 9530, APPLICATION 5.0.0.419, AND MTS MOBILITY?`:
```sql
                SELECT "package_version" FROM "software_updates" WHERE "device"='blackberry storm 9530' AND "applications"='5.0.0.419' AND "carrier"='mts mobility';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE CARRIER WITH 5.0.0.742 VERSION?`

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

CREATE TABLE "software_updates" (
  "device" text,
  "carrier" text,
  "package_version" text,
  "applications" text,
  "software_platform" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE CARRIER WITH 5.0.0.742 VERSION?`:
```sql
                SELECT "carrier" FROM "software_updates" WHERE "package_version"='5.0.0.742';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE CARRIER FOR 4.7.0.208 VERSION?`

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

CREATE TABLE "software_updates" (
  "device" text,
  "carrier" text,
  "package_version" text,
  "applications" text,
  "software_platform" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE CARRIER FOR 4.7.0.208 VERSION?`:
```sql
                SELECT "carrier" FROM "software_updates" WHERE "package_version"='4.7.0.208';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE DEVICE WITH MTS MOBILITY?`

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

CREATE TABLE "software_updates" (
  "device" text,
  "carrier" text,
  "package_version" text,
  "applications" text,
  "software_platform" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE DEVICE WITH MTS MOBILITY?`:
```sql
                SELECT "device" FROM "software_updates" WHERE "carrier"='mts mobility';
```
## Task
Generate a SQL query to answer the following question:
`How much money was there when the to par was 15?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much money was there when the to par was 15?`:
```sql
                SELECT SUM("money") FROM "final_leaderboard" WHERE "to_par"=15;
```
## Task
Generate a SQL query to answer the following question:
`What are the years for the 250 model?`

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

CREATE TABLE "models_except_north_america_and_japan" (
  "chassis_code" text,
  "years" text,
  "model" text,
  "engine" text,
  "power" text,
  "torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the years for the 250 model?`:
```sql
                SELECT "years" FROM "models_except_north_america_and_japan" WHERE "model"='250';
```
## Task
Generate a SQL query to answer the following question:
`What is the power of the Chassis code w123.130?`

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

CREATE TABLE "models_except_north_america_and_japan" (
  "chassis_code" text,
  "years" text,
  "model" text,
  "engine" text,
  "power" text,
  "torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power of the Chassis code w123.130?`:
```sql
                SELECT "power" FROM "models_except_north_america_and_japan" WHERE "chassis_code"='w123.130';
```
## Task
Generate a SQL query to answer the following question:
`What Engine does the w123.026 chassis have?`

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

CREATE TABLE "models_except_north_america_and_japan" (
  "chassis_code" text,
  "years" text,
  "model" text,
  "engine" text,
  "power" text,
  "torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Engine does the w123.026 chassis have?`:
```sql
                SELECT "engine" FROM "models_except_north_america_and_japan" WHERE "chassis_code"='w123.026';
```
## Task
Generate a SQL query to answer the following question:
`What Chassis code has a 200d model and a Power of ps (kw; hp) @ 4200?`

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

CREATE TABLE "models_except_north_america_and_japan" (
  "chassis_code" text,
  "years" text,
  "model" text,
  "engine" text,
  "power" text,
  "torque" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Chassis code has a 200d model and a Power of ps (kw; hp) @ 4200?`:
```sql
                SELECT "chassis_code" FROM "models_except_north_america_and_japan" WHERE "power"='ps (kw; hp) @ 4200' AND "model"='200d';
```
## Task
Generate a SQL query to answer the following question:
`What is the height in ft and m of the regions bank building?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_ft_m" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height in ft and m of the regions bank building?`:
```sql
                SELECT "height_ft_m" FROM "timeline_of_tallest_buildings" WHERE "name"='regions bank building';
```
## Task
Generate a SQL query to answer the following question:
`What is the street address of the van antwerp building?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_ft_m" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the street address of the van antwerp building?`:
```sql
                SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='van antwerp building';
```
## Task
Generate a SQL query to answer the following question:
`What is the hight in ft and m of the building with less than 11 floors?`

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

CREATE TABLE "timeline_of_tallest_buildings" (
  "name" text,
  "street_address" text,
  "years_as_tallest" text,
  "height_ft_m" text,
  "floors" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hight in ft and m of the building with less than 11 floors?`:
```sql
                SELECT "height_ft_m" FROM "timeline_of_tallest_buildings" WHERE "floors"<11;
```
## Task
Generate a SQL query to answer the following question:
`What is the against when the opposing team is Italy?`

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

CREATE TABLE "2004" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the against when the opposing team is Italy?`:
```sql
                SELECT COUNT("against") FROM "2004" WHERE "opposing_teams"='italy';
```
## Task
Generate a SQL query to answer the following question:
`What is Cha Bum-Kun's average number of goals per match?`

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

CREATE TABLE "notes" (
  "name" text,
  "confederation" text,
  "international_goals" real,
  "caps" real,
  "goals_per_match" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Cha Bum-Kun's average number of goals per match?`:
```sql
                SELECT COUNT("goals_per_match") FROM "notes" WHERE "name"='cha bum-kun';
```
## Task
Generate a SQL query to answer the following question:
`How many caps does Jon Dahl Tomasson, who has less than 0.46 goals per match, have?`

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

CREATE TABLE "notes" (
  "name" text,
  "confederation" text,
  "international_goals" real,
  "caps" real,
  "goals_per_match" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many caps does Jon Dahl Tomasson, who has less than 0.46 goals per match, have?`:
```sql
                SELECT COUNT("caps") FROM "notes" WHERE "name"='jon dahl tomasson' AND "goals_per_match"<0.46;
```
## Task
Generate a SQL query to answer the following question:
`What is the club from Vila Do Conde?`

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

CREATE TABLE "club_information" (
  "club" text,
  "season_s_last_head_coach" text,
  "city" text,
  "stadium" text,
  "2004_2005_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the club from Vila Do Conde?`:
```sql
                SELECT "club" FROM "club_information" WHERE "city"='vila do conde';
```
## Task
Generate a SQL query to answer the following question:
`What is the stadium for the team that was 6th in the liga in the 2004-2005 season?`

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

CREATE TABLE "club_information" (
  "club" text,
  "season_s_last_head_coach" text,
  "city" text,
  "stadium" text,
  "2004_2005_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the stadium for the team that was 6th in the liga in the 2004-2005 season?`:
```sql
                SELECT "stadium" FROM "club_information" WHERE "2004_2005_season"='6th in the liga';
```
## Task
Generate a SQL query to answer the following question:
`What is the stadium for the city of Braga?`

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

CREATE TABLE "club_information" (
  "club" text,
  "season_s_last_head_coach" text,
  "city" text,
  "stadium" text,
  "2004_2005_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the stadium for the city of Braga?`:
```sql
                SELECT "stadium" FROM "club_information" WHERE "city"='braga';
```
## Task
Generate a SQL query to answer the following question:
`In what round was Kelsey Tessier drafted?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what round was Kelsey Tessier drafted?`:
```sql
                SELECT "round" FROM "draft_picks" WHERE "player"='kelsey tessier';
```
## Task
Generate a SQL query to answer the following question:
`What is Local Mission, when Mission is "Mauritius"?`

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

CREATE TABLE "non_resident_heads_of_missions" (
  "mission" text,
  "resident_country" text,
  "local_location" text,
  "local_mission" text,
  "non_resident_head_of_mission" text,
  "local_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Local Mission, when Mission is "Mauritius"?`:
```sql
                SELECT "local_mission" FROM "non_resident_heads_of_missions" WHERE "mission"='mauritius';
```
## Task
Generate a SQL query to answer the following question:
`What is Local Position, when Mission is "Paraguay"?`

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

CREATE TABLE "non_resident_heads_of_missions" (
  "mission" text,
  "resident_country" text,
  "local_location" text,
  "local_mission" text,
  "non_resident_head_of_mission" text,
  "local_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Local Position, when Mission is "Paraguay"?`:
```sql
                SELECT "local_position" FROM "non_resident_heads_of_missions" WHERE "mission"='paraguay';
```
## Task
Generate a SQL query to answer the following question:
`What is Local Location, when Local Position is "Ambassador", when Non-Resident Head of Mission is "Marina Isabel Cáceres de Estévez", and when Mission is "Finland"?`

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

CREATE TABLE "non_resident_heads_of_missions" (
  "mission" text,
  "resident_country" text,
  "local_location" text,
  "local_mission" text,
  "non_resident_head_of_mission" text,
  "local_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Local Location, when Local Position is "Ambassador", when Non-Resident Head of Mission is "Marina Isabel Cáceres de Estévez", and when Mission is "Finland"?`:
```sql
                SELECT "local_location" FROM "non_resident_heads_of_missions" WHERE "local_position"='ambassador' AND "non_resident_head_of_mission"='marina isabel cáceres de estévez' AND "mission"='finland';
```
## Task
Generate a SQL query to answer the following question:
`What is Non-Resident Head of Mission, when Local Location is "Warsaw", and when Mission is "Poland"?`

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

CREATE TABLE "non_resident_heads_of_missions" (
  "mission" text,
  "resident_country" text,
  "local_location" text,
  "local_mission" text,
  "non_resident_head_of_mission" text,
  "local_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Non-Resident Head of Mission, when Local Location is "Warsaw", and when Mission is "Poland"?`:
```sql
                SELECT "non_resident_head_of_mission" FROM "non_resident_heads_of_missions" WHERE "local_location"='warsaw' AND "mission"='poland';
```
## Task
Generate a SQL query to answer the following question:
`What is Local Location, when Resident Country is "Belgium", and when Mission is "Poland"?`

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

CREATE TABLE "non_resident_heads_of_missions" (
  "mission" text,
  "resident_country" text,
  "local_location" text,
  "local_mission" text,
  "non_resident_head_of_mission" text,
  "local_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Local Location, when Resident Country is "Belgium", and when Mission is "Poland"?`:
```sql
                SELECT "local_location" FROM "non_resident_heads_of_missions" WHERE "resident_country"='belgium' AND "mission"='poland';
```
## Task
Generate a SQL query to answer the following question:
`What is Resident Country, when Local Location is "Copenhagen"?`

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

CREATE TABLE "non_resident_heads_of_missions" (
  "mission" text,
  "resident_country" text,
  "local_location" text,
  "local_mission" text,
  "non_resident_head_of_mission" text,
  "local_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Resident Country, when Local Location is "Copenhagen"?`:
```sql
                SELECT "resident_country" FROM "non_resident_heads_of_missions" WHERE "local_location"='copenhagen';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Country is "United States", when Place is "T3", and when Player is "Phil Blackmar"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Country is "United States", when Place is "T3", and when Player is "Phil Blackmar"?`:
```sql
                SELECT "score" FROM "second_round" WHERE "country"='united states' AND "place"='t3' AND "player"='phil blackmar';
```
## Task
Generate a SQL query to answer the following question:
`What is To Par, when Country is "Australia"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is To Par, when Country is "Australia"?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "country"='australia';
```
## Task
Generate a SQL query to answer the following question:
`What type of surface did they play on 23 October 2000?`

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

CREATE TABLE "wins_17_13" (
  "outcome" text,
  "date" text,
  "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 type of surface did they play on 23 October 2000?`:
```sql
                SELECT "surface" FROM "wins_17_13" WHERE "date"='23 october 2000';
```
## Task
Generate a SQL query to answer the following question:
`What type of surface did they play on 21 July 1997`

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

CREATE TABLE "wins_17_13" (
  "outcome" text,
  "date" text,
  "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 type of surface did they play on 21 July 1997`:
```sql
                SELECT "surface" FROM "wins_17_13" WHERE "date"='21 july 1997';
```
## Task
Generate a SQL query to answer the following question:
`what was the score of the Championship match played in Estoril, Portugal?`

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

CREATE TABLE "wins_17_13" (
  "outcome" text,
  "date" text,
  "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 was the score of the Championship match played in Estoril, Portugal?`:
```sql
                SELECT "score_in_the_final" FROM "wins_17_13" WHERE "championship"='estoril, portugal';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the opponent Tommy Haas played in the Championship?`

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

CREATE TABLE "wins_17_13" (
  "outcome" text,
  "date" text,
  "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 was the name of the opponent Tommy Haas played in the Championship?`:
```sql
                SELECT "championship" FROM "wins_17_13" WHERE "opponent_in_the_final"='tommy haas';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the match played on 18 January 1999?`

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

CREATE TABLE "wins_17_13" (
  "outcome" text,
  "date" text,
  "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 was the score of the match played on 18 January 1999?`:
```sql
                SELECT "outcome" FROM "wins_17_13" WHERE "date"='18 january 1999';
```
## Task
Generate a SQL query to answer the following question:
`What season has roma as the opponent?`

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

CREATE TABLE "european_record" (
  "season" text,
  "competition" text,
  "round" text,
  "opponent" text,
  "home" text,
  "away" text,
  "aggregate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season has roma as the opponent?`:
```sql
                SELECT "season" FROM "european_record" WHERE "opponent"='roma';
```
## Task
Generate a SQL query to answer the following question:
`What is the Ship Type of the Prize Disposition of ship and a tonnage less than 151?`

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

CREATE TABLE "first_raiding_cruise" (
  "date" text,
  "ship_name" text,
  "tonnage" real,
  "ship_type" text,
  "location" text,
  "disposition_of_ship" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Ship Type of the Prize Disposition of ship and a tonnage less than 151?`:
```sql
                SELECT "ship_type" FROM "first_raiding_cruise" WHERE "disposition_of_ship"='prize' AND "tonnage"<151;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest tonnage of the Brig Ship Type and the disposition of Ship of Prize?`

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

CREATE TABLE "first_raiding_cruise" (
  "date" text,
  "ship_name" text,
  "tonnage" real,
  "ship_type" text,
  "location" text,
  "disposition_of_ship" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest tonnage of the Brig Ship Type and the disposition of Ship of Prize?`:
```sql
                SELECT MAX("tonnage") FROM "first_raiding_cruise" WHERE "ship_type"='brig' AND "disposition_of_ship"='prize';
```
## Task
Generate a SQL query to answer the following question:
`What's the to par for england when the score is less than 71?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the to par for england when the score is less than 71?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "country"='england' AND "score"<71;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest total for 1985-1986 when the total points are 124?`

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

CREATE TABLE "relegation_table" (
  "team" text,
  "1983" text,
  "1984" text,
  "1985_1986" real,
  "total_points" real,
  "seasons" real,
  "points_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest total for 1985-1986 when the total points are 124?`:
```sql
                SELECT MIN("1985_1986") FROM "relegation_table" WHERE "total_points"=124;
```
## Task
Generate a SQL query to answer the following question:
`Which Year born (Age) has a Current Club of sporting al riyadi beirut, and a Position of pf?`

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

CREATE TABLE "fiba_world_olympic_qualifying_tournament" (
  "player" text,
  "height" real,
  "position" text,
  "year_born_age" text,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year born (Age) has a Current Club of sporting al riyadi beirut, and a Position of pf?`:
```sql
                SELECT "year_born_age" FROM "fiba_world_olympic_qualifying_tournament" WHERE "current_club"='sporting al riyadi beirut' AND "position"='pf';
```
## Task
Generate a SQL query to answer the following question:
`Which Current Club has a Player of bassem balaa?`

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

CREATE TABLE "fiba_world_olympic_qualifying_tournament" (
  "player" text,
  "height" real,
  "position" text,
  "year_born_age" text,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Current Club has a Player of bassem balaa?`:
```sql
                SELECT "current_club" FROM "fiba_world_olympic_qualifying_tournament" WHERE "player"='bassem balaa';
```
## Task
Generate a SQL query to answer the following question:
`What was the round in 1968?`

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

CREATE TABLE "men" (
  "year" real,
  "grand_slam" text,
  "round" text,
  "winner" text,
  "loser" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the round in 1968?`:
```sql
                SELECT "round" FROM "men" WHERE "year"=1968;
```
## Task
Generate a SQL query to answer the following question:
`What is the round for a year earlier than 1987?`

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

CREATE TABLE "men" (
  "year" real,
  "grand_slam" text,
  "round" text,
  "winner" text,
  "loser" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round for a year earlier than 1987?`:
```sql
                SELECT "round" FROM "men" WHERE "year"<1987;
```
## Task
Generate a SQL query to answer the following question:
`What is the round when Grand Slam was the Davis Cup?`

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

CREATE TABLE "men" (
  "year" real,
  "grand_slam" text,
  "round" text,
  "winner" text,
  "loser" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round when Grand Slam was the Davis Cup?`:
```sql
                SELECT "round" FROM "men" WHERE "grand_slam"='davis cup';
```
## Task
Generate a SQL query to answer the following question:
`What is the grand slam in 1987, when round shows first round, and Ivan Lendl won?`

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

CREATE TABLE "men" (
  "year" real,
  "grand_slam" text,
  "round" text,
  "winner" text,
  "loser" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grand slam in 1987, when round shows first round, and Ivan Lendl won?`:
```sql
                SELECT "grand_slam" FROM "men" WHERE "year"=1987 AND "round"='first round' AND "winner"='ivan lendl';
```
## Task
Generate a SQL query to answer the following question:
`What is the highes win % that manager juan carlos chávez's team had when they lost less than 4 times?`

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

CREATE TABLE "mexico_under_20_managers" (
  "manager" text,
  "mexico_career" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highes win % that manager juan carlos chávez's team had when they lost less than 4 times?`:
```sql
                SELECT MAX("win_pct") FROM "mexico_under_20_managers" WHERE "manager"='juan carlos chávez' AND "lost"<4;
```
## Task
Generate a SQL query to answer the following question:
`In which district is the incumbent a republican first elected in 1998?`

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

CREATE TABLE "north_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which district is the incumbent a republican first elected in 1998?`:
```sql
                SELECT "district" FROM "north_carolina" WHERE "party"='republican' AND "first_elected"=1998;
```
## Task
Generate a SQL query to answer the following question:
`What is the party affiliation of Virginia Foxx?`

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

CREATE TABLE "north_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the party affiliation of Virginia Foxx?`:
```sql
                SELECT "party" FROM "north_carolina" WHERE "incumbent"='virginia foxx';
```
## Task
Generate a SQL query to answer the following question:
`What is Event, when Winning Driver is "Laurent Aiello Laurent Aiello", when Round is greater than 1, and when Circuit is "Wunstorf"?`

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

CREATE TABLE "race_calendar_and_winners" (
  "round" real,
  "race" text,
  "circuit" text,
  "date" text,
  "event" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Event, when Winning Driver is "Laurent Aiello Laurent Aiello", when Round is greater than 1, and when Circuit is "Wunstorf"?`:
```sql
                SELECT "event" FROM "race_calendar_and_winners" WHERE "winning_driver"='laurent aiello laurent aiello' AND "round">1 AND "circuit"='wunstorf';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Round is "2"?`

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

CREATE TABLE "race_calendar_and_winners" (
  "round" real,
  "race" text,
  "circuit" text,
  "date" text,
  "event" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Round is "2"?`:
```sql
                SELECT "date" FROM "race_calendar_and_winners" WHERE "round"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is Event, when Round is "10"?`

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

CREATE TABLE "race_calendar_and_winners" (
  "round" real,
  "race" text,
  "circuit" text,
  "date" text,
  "event" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Event, when Round is "10"?`:
```sql
                SELECT "event" FROM "race_calendar_and_winners" WHERE "round"=10;
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Round is less than 10, and when Circuit is "Norisring"?`

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

CREATE TABLE "race_calendar_and_winners" (
  "round" real,
  "race" text,
  "circuit" text,
  "date" text,
  "event" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Round is less than 10, and when Circuit is "Norisring"?`:
```sql
                SELECT "date" FROM "race_calendar_and_winners" WHERE "round"<10 AND "circuit"='norisring';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest goal difference of the club with more than 34 played?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest goal difference of the club with more than 34 played?`:
```sql
                SELECT MAX("goal_difference") FROM "group_ii" WHERE "played">34;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of points of the club with a goal difference greater than 17 and more than 34 played?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of points of the club with a goal difference greater than 17 and more than 34 played?`:
```sql
                SELECT COUNT("points") FROM "group_ii" WHERE "goal_difference">17 AND "played">34;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest goal difference of club real betis, who has less than 18 wins?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest goal difference of club real betis, who has less than 18 wins?`:
```sql
                SELECT MIN("goal_difference") FROM "group_ii" WHERE "club"='real betis' AND "wins"<18;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the points of the club with more than 34 played?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the points of the club with more than 34 played?`:
```sql
                SELECT SUM("points") FROM "group_ii" WHERE "played">34;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number played of the club with more than 15 wins and less than 42 goals against?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number played of the club with more than 15 wins and less than 42 goals against?`:
```sql
                SELECT MIN("played") FROM "group_ii" WHERE "wins">15 AND "goals_against"<42;
```