cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What shows for Władysławowo, Poland when the world record shows olympic record, a Marcin Dołęga (POL) is olympic standard, and Snatch is clean & jerk?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "marcin_do_ga_pol" text,
  "199kg" text,
  "w_adys_awowo_poland" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for Władysławowo, Poland when the world record shows olympic record, a Marcin Dołęga (POL) is olympic standard, and Snatch is clean & jerk?`:
```sql
                SELECT "w_adys_awowo_poland" FROM "records" WHERE "world_record"='olympic record' AND "marcin_do_ga_pol"='olympic standard' AND "snatch"='clean & jerk';
```
## Task
Generate a SQL query to answer the following question:
`What date has 0-6700-30838-2-9 for a catalog?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has 0-6700-30838-2-9 for a catalog?`:
```sql
                SELECT "date" FROM "release_history" WHERE "catalog"='0-6700-30838-2-9';
```
## Task
Generate a SQL query to answer the following question:
`What's the date in the United Kingdom having a catalog of reveal50cd/lp?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the date in the United Kingdom having a catalog of reveal50cd/lp?`:
```sql
                SELECT "date" FROM "release_history" WHERE "catalog"='reveal50cd/lp' AND "region"='united kingdom';
```
## Task
Generate a SQL query to answer the following question:
`What day was king's cup 1996?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was king's cup 1996?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "competition"='king''s cup 1996';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for king's cup 1996?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for king's cup 1996?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "competition"='king''s cup 1996';
```
## Task
Generate a SQL query to answer the following question:
`What was the result when the score was 5-1?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result when the score was 5-1?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "score"='5-1';
```
## Task
Generate a SQL query to answer the following question:
`What tournament had an A in 2012 and Q2 in 2010?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament had an A in 2012 and Q2 in 2010?`:
```sql
                SELECT "tournament" FROM "singles_performance_timeline" WHERE "2012"='a' AND "2010"='q2';
```
## Task
Generate a SQL query to answer the following question:
`What's the 2010 when they had a Q2 in 2009?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2010 when they had a Q2 in 2009?`:
```sql
                SELECT "2010" FROM "singles_performance_timeline" WHERE "2009"='q2';
```
## Task
Generate a SQL query to answer the following question:
`What's the 2012 during Wimbledon and had a Q3 in 2008?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2012 during Wimbledon and had a Q3 in 2008?`:
```sql
                SELECT "2012" FROM "singles_performance_timeline" WHERE "2008"='q3' AND "tournament"='wimbledon';
```
## Task
Generate a SQL query to answer the following question:
`What's the tournament name when they had an A in 2011 & 2012?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the tournament name when they had an A in 2011 & 2012?`:
```sql
                SELECT "tournament" FROM "singles_performance_timeline" WHERE "2012"='a' AND "2011"='a';
```
## Task
Generate a SQL query to answer the following question:
`What's the 2012 when 2009 was 205?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2012 when 2009 was 205?`:
```sql
                SELECT "2012" FROM "singles_performance_timeline" WHERE "2009"='205';
```
## Task
Generate a SQL query to answer the following question:
`How much Col (m) has a Prominence (m) of 2,344?`

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

CREATE TABLE "and" (
  "peak" text,
  "country" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Col (m) has a Prominence (m) of 2,344?`:
```sql
                SELECT COUNT("col_m") FROM "and" WHERE "prominence_m"='2,344';
```
## Task
Generate a SQL query to answer the following question:
`Which Prominence (m) has a Col (m) of 350?`

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

CREATE TABLE "and" (
  "peak" text,
  "country" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Prominence (m) has a Col (m) of 350?`:
```sql
                SELECT AVG("prominence_m") FROM "and" WHERE "col_m"=350;
```
## Task
Generate a SQL query to answer the following question:
`Which Elevation (m) has a Prominence (m) smaller than 2,456, and a Peak of mount kyllini, and a Col (m) smaller than 506?`

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

CREATE TABLE "and" (
  "peak" text,
  "country" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Elevation (m) has a Prominence (m) smaller than 2,456, and a Peak of mount kyllini, and a Col (m) smaller than 506?`:
```sql
                SELECT MAX("elevation_m") FROM "and" WHERE "prominence_m"<'2,456' AND "peak"='mount kyllini' AND "col_m"<506;
```
## Task
Generate a SQL query to answer the following question:
`Who was the athlete from Lithuania?`

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

CREATE TABLE "heat_4" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the athlete from Lithuania?`:
```sql
                SELECT "athlete" FROM "heat_4" WHERE "country"='lithuania';
```
## Task
Generate a SQL query to answer the following question:
`How many votes did Jeannemarie Devolites Davis get in 1995-Special?`

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

CREATE TABLE "fairfax_county_board_of_supervisors_resu" (
  "year" text,
  "subject" text,
  "party" text,
  "votes" real,
  "opponent" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did Jeannemarie Devolites Davis get in 1995-Special?`:
```sql
                SELECT "votes" FROM "fairfax_county_board_of_supervisors_resu" WHERE "opponent"='jeannemarie devolites davis' AND "year"='1995-special';
```
## Task
Generate a SQL query to answer the following question:
`Who was the subject for the year of 2007?`

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

CREATE TABLE "fairfax_county_board_of_supervisors_resu" (
  "year" text,
  "subject" text,
  "party" text,
  "votes" real,
  "opponent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the subject for the year of 2007?`:
```sql
                SELECT "subject" FROM "fairfax_county_board_of_supervisors_resu" WHERE "year"='2007';
```
## Task
Generate a SQL query to answer the following question:
`Which party has a voting total greater than 4,478?`

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

CREATE TABLE "fairfax_county_board_of_supervisors_resu" (
  "year" text,
  "subject" text,
  "party" text,
  "votes" real,
  "opponent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party has a voting total greater than 4,478?`:
```sql
                SELECT "party" FROM "fairfax_county_board_of_supervisors_resu" WHERE "votes">'4,478';
```
## Task
Generate a SQL query to answer the following question:
`Which Type has a Nat of geo?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Type has a Nat of geo?`:
```sql
                SELECT "type" FROM "in" WHERE "nat"='geo';
```
## Task
Generate a SQL query to answer the following question:
`Which Moving from has a Nat of ned?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Moving from has a Nat of ned?`:
```sql
                SELECT "moving_from" FROM "in" WHERE "nat"='ned';
```
## Task
Generate a SQL query to answer the following question:
`Which Ends have a Name of zambrano?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Ends have a Name of zambrano?`:
```sql
                SELECT MAX("ends") FROM "in" WHERE "name"='zambrano';
```
## Task
Generate a SQL query to answer the following question:
`Which Transfer fee has a Moving from of youth system, and a Nat of mar?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Transfer fee has a Moving from of youth system, and a Nat of mar?`:
```sql
                SELECT "transfer_fee" FROM "in" WHERE "moving_from"='youth system' AND "nat"='mar';
```
## Task
Generate a SQL query to answer the following question:
`Which Transfer fee has Ends larger than 2011, and a Moving from of psv?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Transfer fee has Ends larger than 2011, and a Moving from of psv?`:
```sql
                SELECT "transfer_fee" FROM "in" WHERE "ends">2011 AND "moving_from"='psv';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for the Toscane Horse in the freestyle test?`

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

CREATE TABLE "equestrian" (
  "athlete" text,
  "class" text,
  "horse" text,
  "event" text,
  "result" text,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for the Toscane Horse in the freestyle test?`:
```sql
                SELECT "result" FROM "equestrian" WHERE "horse"='toscane' AND "event"='freestyle test';
```
## Task
Generate a SQL query to answer the following question:
`What horse has a 66.452 result?`

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

CREATE TABLE "equestrian" (
  "athlete" text,
  "class" text,
  "horse" text,
  "event" text,
  "result" text,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What horse has a 66.452 result?`:
```sql
                SELECT "horse" FROM "equestrian" WHERE "result"='66.452';
```
## Task
Generate a SQL query to answer the following question:
`What event did Sjerstin Vermeulen receive a 66.452 result?`

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

CREATE TABLE "equestrian" (
  "athlete" text,
  "class" text,
  "horse" text,
  "event" text,
  "result" text,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event did Sjerstin Vermeulen receive a 66.452 result?`:
```sql
                SELECT "event" FROM "equestrian" WHERE "athlete"='sjerstin vermeulen' AND "result"='66.452';
```
## Task
Generate a SQL query to answer the following question:
`What class had a Championship Test event with a 62.516 result?`

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

CREATE TABLE "equestrian" (
  "athlete" text,
  "class" text,
  "horse" text,
  "event" text,
  "result" text,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class had a Championship Test event with a 62.516 result?`:
```sql
                SELECT "class" FROM "equestrian" WHERE "event"='championship test' AND "result"='62.516';
```
## Task
Generate a SQL query to answer the following question:
`What horse has a 65.863 result?`

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

CREATE TABLE "equestrian" (
  "athlete" text,
  "class" text,
  "horse" text,
  "event" text,
  "result" text,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What horse has a 65.863 result?`:
```sql
                SELECT "horse" FROM "equestrian" WHERE "result"='65.863';
```
## Task
Generate a SQL query to answer the following question:
`What is the displacement for the model 1400?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "engine" text,
  "displacement" text,
  "power" text,
  "fuel_system" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the displacement for the model 1400?`:
```sql
                SELECT "displacement" FROM "engines" WHERE "model"='1400';
```
## Task
Generate a SQL query to answer the following question:
`What is the displacement when the fuel system is carburettor, and a power of ps (kw; hp), and also has a model of 2000?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "engine" text,
  "displacement" text,
  "power" text,
  "fuel_system" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the displacement when the fuel system is carburettor, and a power of ps (kw; hp), and also has a model of 2000?`:
```sql
                SELECT "displacement" FROM "engines" WHERE "fuel_system"='carburettor' AND "power"='ps (kw; hp)' AND "model"='2000';
```
## Task
Generate a SQL query to answer the following question:
`What engine with the years of 1975-84 has a model of 1600?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "engine" text,
  "displacement" text,
  "power" text,
  "fuel_system" text
);
### SQL
Given the database schema, here is the SQL query that answers `What engine with the years of 1975-84 has a model of 1600?`:
```sql
                SELECT "engine" FROM "engines" WHERE "model"='1600' AND "years"='1975-84';
```
## Task
Generate a SQL query to answer the following question:
`What displacement has a model of 2000?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "engine" text,
  "displacement" text,
  "power" text,
  "fuel_system" text
);
### SQL
Given the database schema, here is the SQL query that answers `What displacement has a model of 2000?`:
```sql
                SELECT "displacement" FROM "engines" WHERE "model"='2000';
```
## Task
Generate a SQL query to answer the following question:
`What engine with years of 1975-84 has a displacement of 1585cc?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "engine" text,
  "displacement" text,
  "power" text,
  "fuel_system" text
);
### SQL
Given the database schema, here is the SQL query that answers `What engine with years of 1975-84 has a displacement of 1585cc?`:
```sql
                SELECT "engine" FROM "engines" WHERE "years"='1975-84' AND "displacement"='1585cc';
```
## Task
Generate a SQL query to answer the following question:
`What is the power for the years 1975-84?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "engine" text,
  "displacement" text,
  "power" text,
  "fuel_system" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power for the years 1975-84?`:
```sql
                SELECT "power" FROM "engines" WHERE "years"='1975-84';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg in match with team 2 of Teram?`

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

CREATE TABLE "al_ahly_results" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg in match with team 2 of Teram?`:
```sql
                SELECT "2nd_leg" FROM "al_ahly_results" WHERE "team_2"='teram';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the December 15, 2002 game?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the December 15, 2002 game?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='december 15, 2002';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game that was attended by 69,024?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game that was attended by 69,024?`:
```sql
                SELECT "date" FROM "schedule" WHERE "attendance"='69,024';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the week 17 game?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the week 17 game?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=17;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the 2008 club for Istres Volleyball?`

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

CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" (
  "name" text,
  "height" text,
  "weight" text,
  "spike" text,
  "2008_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the 2008 club for Istres Volleyball?`:
```sql
                SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='istres volleyball';
```
## Task
Generate a SQL query to answer the following question:
`What is the Model of the Engine with 29 Seats Built in 1941–1942?`

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

CREATE TABLE "p_series_1939_1944" (
  "model" text,
  "built" text,
  "quantity" real,
  "seats" real,
  "length" text,
  "engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Model of the Engine with 29 Seats Built in 1941–1942?`:
```sql
                SELECT "model" FROM "p_series_1939_1944" WHERE "seats"=29 AND "built"='1941–1942';
```
## Task
Generate a SQL query to answer the following question:
`What is the Quantity of the engine Model PG-2901?`

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

CREATE TABLE "p_series_1939_1944" (
  "model" text,
  "built" text,
  "quantity" real,
  "seats" real,
  "length" text,
  "engine" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Quantity of the engine Model PG-2901?`:
```sql
                SELECT "quantity" FROM "p_series_1939_1944" WHERE "model"='pg-2901';
```
## Task
Generate a SQL query to answer the following question:
`What is the % of draws with an against ratio of 0.67 and 1 win?`

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

CREATE TABLE "by_clubs" (
  "team" text,
  "matches" real,
  "wins" real,
  "wins_pct" text,
  "draws" real,
  "draws_pct" text,
  "losses" real,
  "losses_pct" text,
  "against" real,
  "for_against_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the % of draws with an against ratio of 0.67 and 1 win?`:
```sql
                SELECT "draws_pct" FROM "by_clubs" WHERE "for_against_ratio"='0.67' AND "wins"=1;
```
## Task
Generate a SQL query to answer the following question:
`What are the matches with a 50% of draws for Team Milan?`

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

CREATE TABLE "by_clubs" (
  "team" text,
  "matches" real,
  "wins" real,
  "wins_pct" text,
  "draws" real,
  "draws_pct" text,
  "losses" real,
  "losses_pct" text,
  "against" real,
  "for_against_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the matches with a 50% of draws for Team Milan?`:
```sql
                SELECT "matches" FROM "by_clubs" WHERE "draws_pct"='50%' AND "team"='milan';
```
## Task
Generate a SQL query to answer the following question:
`What are the total losses with 2 matches, 2 against, 0% of draws and less than 1 wins?`

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

CREATE TABLE "by_clubs" (
  "team" text,
  "matches" real,
  "wins" real,
  "wins_pct" text,
  "draws" real,
  "draws_pct" text,
  "losses" real,
  "losses_pct" text,
  "against" real,
  "for_against_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the total losses with 2 matches, 2 against, 0% of draws and less than 1 wins?`:
```sql
                SELECT SUM("losses") FROM "by_clubs" WHERE "matches"=2 AND "against"=2 AND "draws_pct"='0%' AND "wins"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum on wins with an against ratio of 0.83, and more than 1 loss?`

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

CREATE TABLE "by_clubs" (
  "team" text,
  "matches" real,
  "wins" real,
  "wins_pct" text,
  "draws" real,
  "draws_pct" text,
  "losses" real,
  "losses_pct" text,
  "against" real,
  "for_against_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum on wins with an against ratio of 0.83, and more than 1 loss?`:
```sql
                SELECT SUM("wins") FROM "by_clubs" WHERE "for_against_ratio"='0.83' AND "losses">1;
```
## Task
Generate a SQL query to answer the following question:
`Why did the manager who departed on August 1, 2008 leave?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "date_outgoing" text,
  "reason_of_departure" text,
  "replaced_by" text,
  "date_of_replacement" text
);
### SQL
Given the database schema, here is the SQL query that answers `Why did the manager who departed on August 1, 2008 leave?`:
```sql
                SELECT "reason_of_departure" FROM "managerial_changes" WHERE "date_outgoing"='august 1, 2008';
```
## Task
Generate a SQL query to answer the following question:
`On what date did the manager for PSIS Semarang take over for the manager that was sacked?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "date_outgoing" text,
  "reason_of_departure" text,
  "replaced_by" text,
  "date_of_replacement" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did the manager for PSIS Semarang take over for the manager that was sacked?`:
```sql
                SELECT "date_of_replacement" FROM "managerial_changes" WHERE "reason_of_departure"='sacked' AND "team"='psis semarang';
```
## Task
Generate a SQL query to answer the following question:
`When did Peter Butler leave his team?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "date_outgoing" text,
  "reason_of_departure" text,
  "replaced_by" text,
  "date_of_replacement" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Peter Butler leave his team?`:
```sql
                SELECT "date_outgoing" FROM "managerial_changes" WHERE "outgoing_manager"='peter butler';
```
## Task
Generate a SQL query to answer the following question:
`When did the manager take over for the manager that left on August 20, 2008?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "date_outgoing" text,
  "reason_of_departure" text,
  "replaced_by" text,
  "date_of_replacement" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the manager take over for the manager that left on August 20, 2008?`:
```sql
                SELECT "date_of_replacement" FROM "managerial_changes" WHERE "date_outgoing"='august 20, 2008';
```
## Task
Generate a SQL query to answer the following question:
`In which competition(s) did Iljuštšenko jump 1.90 m?`

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

CREATE TABLE "competition_record" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which competition(s) did Iljuštšenko jump 1.90 m?`:
```sql
                SELECT "competition" FROM "competition_record" WHERE "notes"='1.90 m';
```
## Task
Generate a SQL query to answer the following question:
`In which position did Iljuštšenko finish in the European Championships held prior to 2008?`

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

CREATE TABLE "competition_record" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which position did Iljuštšenko finish in the European Championships held prior to 2008?`:
```sql
                SELECT "position" FROM "competition_record" WHERE "year"<2008 AND "competition"='european championships';
```
## Task
Generate a SQL query to answer the following question:
`In what year did Iljuštšenko compete in Barcelona, Spain?`

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

CREATE TABLE "competition_record" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year did Iljuštšenko compete in Barcelona, Spain?`:
```sql
                SELECT "year" FROM "competition_record" WHERE "venue"='barcelona, spain';
```
## Task
Generate a SQL query to answer the following question:
`What's the number of electorates for constituency number 56?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of electorates for constituency number 56?`:
```sql
                SELECT SUM("number_of_electorates_2009") FROM "assembly_segments" WHERE "constituency_number"='56';
```
## Task
Generate a SQL query to answer the following question:
`What's the constituency number for Damoh with more than 173,217 electorates?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the constituency number for Damoh with more than 173,217 electorates?`:
```sql
                SELECT "constituency_number" FROM "assembly_segments" WHERE "number_of_electorates_2009">'173,217' AND "name"='damoh';
```
## Task
Generate a SQL query to answer the following question:
`What is the tour Apps when the career caps show 15?`

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

CREATE TABLE "squad" (
  "name" text,
  "tests" real,
  "club" text,
  "career_caps" real,
  "tour_apps" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tour Apps when the career caps show 15?`:
```sql
                SELECT "tour_apps" FROM "squad" WHERE "career_caps"=15;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of career caps for a full back, when tour Apps is smaller than 29?`

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

CREATE TABLE "squad" (
  "name" text,
  "tests" real,
  "club" text,
  "career_caps" real,
  "tour_apps" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of career caps for a full back, when tour Apps is smaller than 29?`:
```sql
                SELECT COUNT("career_caps") FROM "squad" WHERE "position"='full back' AND "tour_apps"<29;
```
## Task
Generate a SQL query to answer the following question:
`What is the career caps for half-back, when tests is more than 3?`

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

CREATE TABLE "squad" (
  "name" text,
  "tests" real,
  "club" text,
  "career_caps" real,
  "tour_apps" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the career caps for half-back, when tests is more than 3?`:
```sql
                SELECT "career_caps" FROM "squad" WHERE "position"='half-back' AND "tests">3;
```
## Task
Generate a SQL query to answer the following question:
`What name has tour Apps larger than 7, tests larger than 4, and a Career caps of 20?`

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

CREATE TABLE "squad" (
  "name" text,
  "tests" real,
  "club" text,
  "career_caps" real,
  "tour_apps" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What name has tour Apps larger than 7, tests larger than 4, and a Career caps of 20?`:
```sql
                SELECT "name" FROM "squad" WHERE "tour_apps">7 AND "tests">4 AND "career_caps"=20;
```
## Task
Generate a SQL query to answer the following question:
`What constructor has a grid less than 21, and time/retired of engine?`

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

CREATE TABLE "results" (
  "driver" text,
  "entrant" text,
  "constructor" text,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What constructor has a grid less than 21, and time/retired of engine?`:
```sql
                SELECT "constructor" FROM "results" WHERE "grid"<21 AND "time_retired"='engine';
```
## Task
Generate a SQL query to answer the following question:
`When the entrant is fred saunders what is the driver?`

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

CREATE TABLE "results" (
  "driver" text,
  "entrant" text,
  "constructor" text,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the entrant is fred saunders what is the driver?`:
```sql
                SELECT "driver" FROM "results" WHERE "entrant"='fred saunders';
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest grid with and entrant of fred saunders?`

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

CREATE TABLE "results" (
  "driver" text,
  "entrant" text,
  "constructor" text,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest grid with and entrant of fred saunders?`:
```sql
                SELECT MIN("grid") FROM "results" WHERE "entrant"='fred saunders';
```
## Task
Generate a SQL query to answer the following question:
`What is the time/retired for the driver emerson fittipaldi?`

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

CREATE TABLE "results" (
  "driver" text,
  "entrant" text,
  "constructor" text,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time/retired for the driver emerson fittipaldi?`:
```sql
                SELECT "time_retired" FROM "results" WHERE "driver"='emerson fittipaldi';
```
## Task
Generate a SQL query to answer the following question:
`Which Artist has the Label of Columbia and the Standard number of COCC-72073?`

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

CREATE TABLE "music" (
  "title" text,
  "type" text,
  "artist" text,
  "label" text,
  "standard_number" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Artist has the Label of Columbia and the Standard number of COCC-72073?`:
```sql
                SELECT "artist" FROM "music" WHERE "label"='columbia' AND "standard_number"='cocc-72073';
```
## Task
Generate a SQL query to answer the following question:
`What Type has the Artist of Hiroyuki Takami?`

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

CREATE TABLE "music" (
  "title" text,
  "type" text,
  "artist" text,
  "label" text,
  "standard_number" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Type has the Artist of Hiroyuki Takami?`:
```sql
                SELECT "type" FROM "music" WHERE "artist"='hiroyuki takami';
```
## Task
Generate a SQL query to answer the following question:
`What Title has the Label of Columbia and Standard number of CODC-8760?`

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

CREATE TABLE "music" (
  "title" text,
  "type" text,
  "artist" text,
  "label" text,
  "standard_number" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Title has the Label of Columbia and Standard number of CODC-8760?`:
```sql
                SELECT "title" FROM "music" WHERE "label"='columbia' AND "standard_number"='codc-8760';
```
## Task
Generate a SQL query to answer the following question:
`What is the type of Kuang-Hsing?`

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

CREATE TABLE "acquisitions_1885_94" (
  "name_pinyin" text,
  "name_wade_giles" text,
  "characters" text,
  "type" text,
  "construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of Kuang-Hsing?`:
```sql
                SELECT "type" FROM "acquisitions_1885_94" WHERE "name_wade_giles"='kuang-hsing';
```
## Task
Generate a SQL query to answer the following question:
`What type has the characters 廣丙?`

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

CREATE TABLE "acquisitions_1885_94" (
  "name_pinyin" text,
  "name_wade_giles" text,
  "characters" text,
  "type" text,
  "construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type has the characters 廣丙?`:
```sql
                SELECT "type" FROM "acquisitions_1885_94" WHERE "characters"='廣丙';
```
## Task
Generate a SQL query to answer the following question:
`What's the name that has the characters 廣亨?`

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

CREATE TABLE "acquisitions_1885_94" (
  "name_pinyin" text,
  "name_wade_giles" text,
  "characters" text,
  "type" text,
  "construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name that has the characters 廣亨?`:
```sql
                SELECT "name_wade_giles" FROM "acquisitions_1885_94" WHERE "characters"='廣亨';
```
## Task
Generate a SQL query to answer the following question:
`What type has the characters 廣利?`

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

CREATE TABLE "acquisitions_1885_94" (
  "name_pinyin" text,
  "name_wade_giles" text,
  "characters" text,
  "type" text,
  "construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type has the characters 廣利?`:
```sql
                SELECT "type" FROM "acquisitions_1885_94" WHERE "characters"='廣利';
```
## Task
Generate a SQL query to answer the following question:
`What is the type of Guangjia?`

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

CREATE TABLE "acquisitions_1885_94" (
  "name_pinyin" text,
  "name_wade_giles" text,
  "characters" text,
  "type" text,
  "construction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of Guangjia?`:
```sql
                SELECT "type" FROM "acquisitions_1885_94" WHERE "name_pinyin"='guangjia';
```
## Task
Generate a SQL query to answer the following question:
`What soap opera has a rank larger than 1, and a Character named Emily Bishop?`

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

CREATE TABLE "top_10_across_all_platforms" (
  "rank" real,
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What soap opera has a rank larger than 1, and a Character named Emily Bishop?`:
```sql
                SELECT "soap_opera" FROM "top_10_across_all_platforms" WHERE "rank">1 AND "character"='emily bishop';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Rank 1960—?`

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

CREATE TABLE "top_10_across_all_platforms" (
  "rank" real,
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Rank 1960—?`:
```sql
                SELECT MAX("rank") FROM "top_10_across_all_platforms" WHERE "years"='1960—';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the actor with a duration of 61 years?`

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

CREATE TABLE "top_10_across_all_platforms" (
  "rank" real,
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the actor with a duration of 61 years?`:
```sql
                SELECT "actor" FROM "top_10_across_all_platforms" WHERE "duration"='61 years';
```
## Task
Generate a SQL query to answer the following question:
`What are the years for Eileen Derbyshire with a duration of 52 years?`

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

CREATE TABLE "top_10_across_all_platforms" (
  "rank" real,
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the years for Eileen Derbyshire with a duration of 52 years?`:
```sql
                SELECT "years" FROM "top_10_across_all_platforms" WHERE "duration"='52 years' AND "actor"='eileen derbyshire';
```
## Task
Generate a SQL query to answer the following question:
`What soap opera was on 1960–1965, 1965–1983, 1984–2010?`

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

CREATE TABLE "top_10_across_all_platforms" (
  "rank" real,
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What soap opera was on 1960–1965, 1965–1983, 1984–2010?`:
```sql
                SELECT "soap_opera" FROM "top_10_across_all_platforms" WHERE "years"='1960–1965, 1965–1983, 1984–2010';
```
## Task
Generate a SQL query to answer the following question:
`Who are the rowers for Australia?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the rowers for Australia?`:
```sql
                SELECT "rowers" FROM "heat_1" WHERE "country"='australia';
```
## Task
Generate a SQL query to answer the following question:
`What's Italy's rank?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's Italy's rank?`:
```sql
                SELECT SUM("rank") FROM "heat_1" WHERE "country"='italy';
```
## Task
Generate a SQL query to answer the following question:
`Who is the visitor team on Saturday, November 22 when linköpings hc was the home team and there were more than 20 rounds?`

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

CREATE TABLE "game_log" (
  "round" real,
  "date" text,
  "home" text,
  "result" text,
  "visitor" text,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the visitor team on Saturday, November 22 when linköpings hc was the home team and there were more than 20 rounds?`:
```sql
                SELECT "visitor" FROM "game_log" WHERE "home"='linköpings hc' AND "round">20 AND "date"='saturday, november 22';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest attendance on Monday, November 10 when linköpings hc was the home team and there were more than 18 rounds?`

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

CREATE TABLE "game_log" (
  "round" real,
  "date" text,
  "home" text,
  "result" text,
  "visitor" text,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest attendance on Monday, November 10 when linköpings hc was the home team and there were more than 18 rounds?`:
```sql
                SELECT MIN("attendance") FROM "game_log" WHERE "home"='linköpings hc' AND "date"='monday, november 10' AND "round">18;
```
## Task
Generate a SQL query to answer the following question:
`Who is the visitor at the axa sports center in round 20?`

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

CREATE TABLE "game_log" (
  "round" real,
  "date" text,
  "home" text,
  "result" text,
  "visitor" text,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the visitor at the axa sports center in round 20?`:
```sql
                SELECT "visitor" FROM "game_log" WHERE "venue"='axa sports center' AND "round"=20;
```