cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what total was the lowest and had a to par of e?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `what total was the lowest and had a to par of e?`:
```sql
                SELECT MIN("total") FROM "missed_the_cut" WHERE "to_par"='e';
```
## Task
Generate a SQL query to answer the following question:
`Which player played in the united states and scored a total of 144 points?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player played in the united states and scored a total of 144 points?`:
```sql
                SELECT "player" FROM "missed_the_cut" WHERE "country"='united states' AND "total"=144;
```
## Task
Generate a SQL query to answer the following question:
`What is Trailing Party % Votes, when Party Won is "Bharatiya Janta Party", and when Trailing Party is "Indian National Congress"?`

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

CREATE TABLE "members_of_parliament" (
  "year" real,
  "lok_sabha" text,
  "members_of_parliament" text,
  "party_won" text,
  "winner_s_pct_votes" text,
  "trailing_party" text,
  "trailing_party_pct_votes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Trailing Party % Votes, when Party Won is "Bharatiya Janta Party", and when Trailing Party is "Indian National Congress"?`:
```sql
                SELECT "trailing_party_pct_votes" FROM "members_of_parliament" WHERE "party_won"='bharatiya janta party' AND "trailing_party"='indian national congress';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Year(s), when Trailing Party is "Indian National Congress", and when Trailing Party % Votes is "27.42%"?`

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

CREATE TABLE "members_of_parliament" (
  "year" real,
  "lok_sabha" text,
  "members_of_parliament" text,
  "party_won" text,
  "winner_s_pct_votes" text,
  "trailing_party" text,
  "trailing_party_pct_votes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Year(s), when Trailing Party is "Indian National Congress", and when Trailing Party % Votes is "27.42%"?`:
```sql
                SELECT COUNT("year") FROM "members_of_parliament" WHERE "trailing_party"='indian national congress' AND "trailing_party_pct_votes"='27.42%';
```
## Task
Generate a SQL query to answer the following question:
`What is Members of Parliament, when Trailing Party is "Bharatiya Lok Dal"?`

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

CREATE TABLE "members_of_parliament" (
  "year" real,
  "lok_sabha" text,
  "members_of_parliament" text,
  "party_won" text,
  "winner_s_pct_votes" text,
  "trailing_party" text,
  "trailing_party_pct_votes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Members of Parliament, when Trailing Party is "Bharatiya Lok Dal"?`:
```sql
                SELECT "members_of_parliament" FROM "members_of_parliament" WHERE "trailing_party"='bharatiya lok dal';
```
## Task
Generate a SQL query to answer the following question:
`What is Trailing Party, when Party Won is "Janata Dal", and when Year is "1996"?`

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

CREATE TABLE "members_of_parliament" (
  "year" real,
  "lok_sabha" text,
  "members_of_parliament" text,
  "party_won" text,
  "winner_s_pct_votes" text,
  "trailing_party" text,
  "trailing_party_pct_votes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Trailing Party, when Party Won is "Janata Dal", and when Year is "1996"?`:
```sql
                SELECT "trailing_party" FROM "members_of_parliament" WHERE "party_won"='janata dal' AND "year"=1996;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Year, when Lok Sabha is "4th Lok Sabha"?`

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

CREATE TABLE "members_of_parliament" (
  "year" real,
  "lok_sabha" text,
  "members_of_parliament" text,
  "party_won" text,
  "winner_s_pct_votes" text,
  "trailing_party" text,
  "trailing_party_pct_votes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Year, when Lok Sabha is "4th Lok Sabha"?`:
```sql
                SELECT MIN("year") FROM "members_of_parliament" WHERE "lok_sabha"='4th lok sabha';
```
## Task
Generate a SQL query to answer the following question:
`What is Members of Parliament, when Winner's % Votes is "50.54%"?`

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

CREATE TABLE "members_of_parliament" (
  "year" real,
  "lok_sabha" text,
  "members_of_parliament" text,
  "party_won" text,
  "winner_s_pct_votes" text,
  "trailing_party" text,
  "trailing_party_pct_votes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Members of Parliament, when Winner's % Votes is "50.54%"?`:
```sql
                SELECT "members_of_parliament" FROM "members_of_parliament" WHERE "winner_s_pct_votes"='50.54%';
```
## Task
Generate a SQL query to answer the following question:
`Who scored a 68?`

### 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 `Who scored a 68?`:
```sql
                SELECT "player" FROM "first_round" WHERE "score"=68;
```
## Task
Generate a SQL query to answer the following question:
`How many  Grid has a Rider of ryuichi kiyonari?`

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

CREATE TABLE "superbike_race_1_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many  Grid has a Rider of ryuichi kiyonari?`:
```sql
                SELECT SUM("grid") FROM "superbike_race_1_classification" WHERE "rider"='ryuichi kiyonari';
```
## Task
Generate a SQL query to answer the following question:
`Name the lowest Grid which has a Bike of ducati 1098 rs 08 and a Rider of max biaggi?`

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

CREATE TABLE "superbike_race_1_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lowest Grid which has a Bike of ducati 1098 rs 08 and a Rider of max biaggi?`:
```sql
                SELECT MIN("grid") FROM "superbike_race_1_classification" WHERE "bike"='ducati 1098 rs 08' AND "rider"='max biaggi';
```
## Task
Generate a SQL query to answer the following question:
`Name the Rider which has a Time of +59.304?`

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

CREATE TABLE "superbike_race_1_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Rider which has a Time of +59.304?`:
```sql
                SELECT "rider" FROM "superbike_race_1_classification" WHERE "time"='+59.304';
```
## Task
Generate a SQL query to answer the following question:
`Name the Rider which has Laps smaller than 11 and a Bike of kawasaki zx-10r, and a Grid of 8?`

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

CREATE TABLE "superbike_race_1_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Rider which has Laps smaller than 11 and a Bike of kawasaki zx-10r, and a Grid of 8?`:
```sql
                SELECT "rider" FROM "superbike_race_1_classification" WHERE "laps"<11 AND "bike"='kawasaki zx-10r' AND "grid"=8;
```
## Task
Generate a SQL query to answer the following question:
`What is the total for player karrie webb?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for player karrie webb?`:
```sql
                SELECT COUNT("total") FROM "missed_the_cut" WHERE "player"='karrie webb';
```
## Task
Generate a SQL query to answer the following question:
`What years did the player with a total larger than 157 have wins?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What years did the player with a total larger than 157 have wins?`:
```sql
                SELECT "year_s_won" FROM "missed_the_cut" WHERE "total">157;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the to par of player meg mallon, who had a total greater than 157?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the to par of player meg mallon, who had a total greater than 157?`:
```sql
                SELECT SUM("to_par") FROM "missed_the_cut" WHERE "player"='meg mallon' AND "total">157;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest total of the player with a 7 to par?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest total of the player with a 7 to par?`:
```sql
                SELECT MAX("total") FROM "missed_the_cut" WHERE "to_par"=7;
```
## Task
Generate a SQL query to answer the following question:
`How many assists did Steve Walker have?`

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

CREATE TABLE "club_statistics" (
  "player" text,
  "seasons" text,
  "games" text,
  "goals" text,
  "assists" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many assists did Steve Walker have?`:
```sql
                SELECT "assists" FROM "club_statistics" WHERE "player"='steve walker';
```
## Task
Generate a SQL query to answer the following question:
`How many goals did the player score who had 33 assists in 85 games?`

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

CREATE TABLE "club_statistics" (
  "player" text,
  "seasons" text,
  "games" text,
  "goals" text,
  "assists" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals did the player score who had 33 assists in 85 games?`:
```sql
                SELECT "goals" FROM "club_statistics" WHERE "assists"='33' AND "games"='85';
```
## Task
Generate a SQL query to answer the following question:
`How many points did Denis Pederson have?`

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

CREATE TABLE "club_statistics" (
  "player" text,
  "seasons" text,
  "games" text,
  "goals" text,
  "assists" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did Denis Pederson have?`:
```sql
                SELECT "points" FROM "club_statistics" WHERE "player"='denis pederson';
```
## Task
Generate a SQL query to answer the following question:
`Which Xenon has a Helium of 5.1?`

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

CREATE TABLE "phase_changes_and_critical_properties" (
  "physical_property" text,
  "helium" text,
  "neon" text,
  "argon" text,
  "krypton" text,
  "xenon" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Xenon has a Helium of 5.1?`:
```sql
                SELECT "xenon" FROM "phase_changes_and_critical_properties" WHERE "helium"='5.1';
```
## Task
Generate a SQL query to answer the following question:
`Which Neon has a Argon of −189.6?`

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

CREATE TABLE "phase_changes_and_critical_properties" (
  "physical_property" text,
  "helium" text,
  "neon" text,
  "argon" text,
  "krypton" text,
  "xenon" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Neon has a Argon of −189.6?`:
```sql
                SELECT "neon" FROM "phase_changes_and_critical_properties" WHERE "argon"='−189.6';
```
## Task
Generate a SQL query to answer the following question:
`Which Physical property has a Helium of 0.0693?`

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

CREATE TABLE "phase_changes_and_critical_properties" (
  "physical_property" text,
  "helium" text,
  "neon" text,
  "argon" text,
  "krypton" text,
  "xenon" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Physical property has a Helium of 0.0693?`:
```sql
                SELECT "physical_property" FROM "phase_changes_and_critical_properties" WHERE "helium"='0.0693';
```
## Task
Generate a SQL query to answer the following question:
`Name the Argon which has a Neon of 0.484?`

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

CREATE TABLE "phase_changes_and_critical_properties" (
  "physical_property" text,
  "helium" text,
  "neon" text,
  "argon" text,
  "krypton" text,
  "xenon" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Argon which has a Neon of 0.484?`:
```sql
                SELECT "argon" FROM "phase_changes_and_critical_properties" WHERE "neon"='0.484';
```
## Task
Generate a SQL query to answer the following question:
`Which Krypton has a Physical property of critical pressure (atm)?`

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

CREATE TABLE "phase_changes_and_critical_properties" (
  "physical_property" text,
  "helium" text,
  "neon" text,
  "argon" text,
  "krypton" text,
  "xenon" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Krypton has a Physical property of critical pressure (atm)?`:
```sql
                SELECT "krypton" FROM "phase_changes_and_critical_properties" WHERE "physical_property"='critical pressure (atm)';
```
## Task
Generate a SQL query to answer the following question:
`which Helium has a Argon of −189.6?`

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

CREATE TABLE "phase_changes_and_critical_properties" (
  "physical_property" text,
  "helium" text,
  "neon" text,
  "argon" text,
  "krypton" text,
  "xenon" text
);
### SQL
Given the database schema, here is the SQL query that answers `which Helium has a Argon of −189.6?`:
```sql
                SELECT "helium" FROM "phase_changes_and_critical_properties" WHERE "argon"='−189.6';
```
## Task
Generate a SQL query to answer the following question:
`What is Venue, when Opposing Teams is "South Africa", and when Date is "17/06/2000"?`

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

CREATE TABLE "2000" (
  "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 Venue, when Opposing Teams is "South Africa", and when Date is "17/06/2000"?`:
```sql
                SELECT "venue" FROM "2000" WHERE "opposing_teams"='south africa' AND "date"='17/06/2000';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Against, when Opposing Teams is "South Africa", and when Status is "First Test"?`

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

CREATE TABLE "2000" (
  "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 sum of Against, when Opposing Teams is "South Africa", and when Status is "First Test"?`:
```sql
                SELECT SUM("against") FROM "2000" WHERE "opposing_teams"='south africa' AND "status"='first test';
```
## Task
Generate a SQL query to answer the following question:
`What is Opposing Teams, when Status is "Test Match", and when Date is "25/11/2000"?`

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

CREATE TABLE "2000" (
  "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 Opposing Teams, when Status is "Test Match", and when Date is "25/11/2000"?`:
```sql
                SELECT "opposing_teams" FROM "2000" WHERE "status"='test match' AND "date"='25/11/2000';
```
## Task
Generate a SQL query to answer the following question:
`What is Against, when Venue is "Twickenham , London", and when Date is "04/03/2000"?`

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

CREATE TABLE "2000" (
  "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 Against, when Venue is "Twickenham , London", and when Date is "04/03/2000"?`:
```sql
                SELECT "against" FROM "2000" WHERE "venue"='twickenham , london' AND "date"='04/03/2000';
```
## Task
Generate a SQL query to answer the following question:
`What is the Statue, when Venue is "Stadio Flaminio , Rome"?`

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

CREATE TABLE "2000" (
  "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 Statue, when Venue is "Stadio Flaminio , Rome"?`:
```sql
                SELECT "status" FROM "2000" WHERE "venue"='stadio flaminio , rome';
```
## Task
Generate a SQL query to answer the following question:
`What is the H/A of the game on 24 january 2009?`

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

CREATE TABLE "fa_cup" (
  "date" text,
  "round" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the H/A of the game on 24 january 2009?`:
```sql
                SELECT "h_a" FROM "fa_cup" WHERE "date"='24 january 2009';
```
## Task
Generate a SQL query to answer the following question:
`What year was the rank final of 6?`

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

CREATE TABLE "junior_career_history" (
  "year" real,
  "competition_description" text,
  "location" text,
  "apparatus" text,
  "rank_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the rank final of 6?`:
```sql
                SELECT "year" FROM "junior_career_history" WHERE "rank_final"='6';
```
## Task
Generate a SQL query to answer the following question:
`What was the rank final before 2007?`

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

CREATE TABLE "junior_career_history" (
  "year" real,
  "competition_description" text,
  "location" text,
  "apparatus" text,
  "rank_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank final before 2007?`:
```sql
                SELECT "rank_final" FROM "junior_career_history" WHERE "year"<2007;
```
## Task
Generate a SQL query to answer the following question:
`What is District, when Incumbent is "Richard Neal"?`

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

CREATE TABLE "massachusetts" (
  "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 District, when Incumbent is "Richard Neal"?`:
```sql
                SELECT "district" FROM "massachusetts" WHERE "incumbent"='richard neal';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest First Elected, when District is "Massachusetts 10"?`

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

CREATE TABLE "massachusetts" (
  "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 lowest First Elected, when District is "Massachusetts 10"?`:
```sql
                SELECT MIN("first_elected") FROM "massachusetts" WHERE "district"='massachusetts 10';
```
## Task
Generate a SQL query to answer the following question:
`What is the average First Elected, when District is "Massachusetts 3"?`

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

CREATE TABLE "massachusetts" (
  "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 average First Elected, when District is "Massachusetts 3"?`:
```sql
                SELECT AVG("first_elected") FROM "massachusetts" WHERE "district"='massachusetts 3';
```
## Task
Generate a SQL query to answer the following question:
`What team lost with 30 tries against?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team lost with 30 tries against?`:
```sql
                SELECT "lost" FROM "league_table" WHERE "tries_against"='30';
```
## Task
Generate a SQL query to answer the following question:
`Who lost with 142 points for?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who lost with 142 points for?`:
```sql
                SELECT "lost" FROM "league_table" WHERE "points_for"='142';
```
## Task
Generate a SQL query to answer the following question:
`How many tries against for the team with 67 tries for?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tries against for the team with 67 tries for?`:
```sql
                SELECT "tries_against" FROM "league_table" WHERE "tries_for"='67';
```
## Task
Generate a SQL query to answer the following question:
`Which club has 101 tries for?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club has 101 tries for?`:
```sql
                SELECT "club" FROM "league_table" WHERE "tries_for"='101';
```
## Task
Generate a SQL query to answer the following question:
`What is the try bonus for the team with 67 tries for?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the try bonus for the team with 67 tries for?`:
```sql
                SELECT "try_bonus" FROM "league_table" WHERE "tries_for"='67';
```
## Task
Generate a SQL query to answer the following question:
`What is the team that lost with 77 tries against?`

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

CREATE TABLE "league_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team that lost with 77 tries against?`:
```sql
                SELECT "lost" FROM "league_table" WHERE "tries_against"='77';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of P desc with a P 2007 of 0,00 and a P, Ap 2008 less than 30,00, and a P CL 2008 that is more than 10,56?`

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

CREATE TABLE "relegation_table" (
  "team" text,
  "p_desc" real,
  "p_2007" real,
  "p_ap_2008" real,
  "p_cl_2008" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of P desc with a P 2007 of 0,00 and a P, Ap 2008 less than 30,00, and a P CL 2008 that is more than 10,56?`:
```sql
                SELECT SUM("p_desc") FROM "relegation_table" WHERE "p_2007"='0,00' AND "p_ap_2008"<'30,00' AND "p_cl_2008">'10,56';
```
## Task
Generate a SQL query to answer the following question:
`Which Fighting Spirit has a Name of tsurugamine, and a Technique smaller than 10?`

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

CREATE TABLE "most_special_prizes" (
  "name" text,
  "total" real,
  "outstanding_performance" real,
  "fighting_spirit" real,
  "technique" real,
  "years" text,
  "highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Fighting Spirit has a Name of tsurugamine, and a Technique smaller than 10?`:
```sql
                SELECT AVG("fighting_spirit") FROM "most_special_prizes" WHERE "name"='tsurugamine' AND "technique"<10;
```
## Task
Generate a SQL query to answer the following question:
`How much Technique has the Highest rank of yokozuna, and a Total larger than 11?`

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

CREATE TABLE "most_special_prizes" (
  "name" text,
  "total" real,
  "outstanding_performance" real,
  "fighting_spirit" real,
  "technique" real,
  "years" text,
  "highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Technique has the Highest rank of yokozuna, and a Total larger than 11?`:
```sql
                SELECT COUNT("technique") FROM "most_special_prizes" WHERE "highest_rank"='yokozuna' AND "total">11;
```
## Task
Generate a SQL query to answer the following question:
`How much Fighting Spirit has a Total of 13, and a Technique smaller than 1?`

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

CREATE TABLE "most_special_prizes" (
  "name" text,
  "total" real,
  "outstanding_performance" real,
  "fighting_spirit" real,
  "technique" real,
  "years" text,
  "highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Fighting Spirit has a Total of 13, and a Technique smaller than 1?`:
```sql
                SELECT SUM("fighting_spirit") FROM "most_special_prizes" WHERE "total"=13 AND "technique"<1;
```
## Task
Generate a SQL query to answer the following question:
`What are asashio's years?`

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

CREATE TABLE "most_special_prizes" (
  "name" text,
  "total" real,
  "outstanding_performance" real,
  "fighting_spirit" real,
  "technique" real,
  "years" text,
  "highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are asashio's years?`:
```sql
                SELECT "years" FROM "most_special_prizes" WHERE "name"='asashio';
```
## Task
Generate a SQL query to answer the following question:
`Which County has a Precincts of 33/33?`

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

CREATE TABLE "u_s_house_district_11" (
  "county" text,
  "precincts" text,
  "e_greenberg" text,
  "g_hager" text,
  "t_wyka" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which County has a Precincts of 33/33?`:
```sql
                SELECT "county" FROM "u_s_house_district_11" WHERE "precincts"='33/33';
```
## Task
Generate a SQL query to answer the following question:
`Name the T. Wyka has a Precincts of 51/55?`

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

CREATE TABLE "u_s_house_district_11" (
  "county" text,
  "precincts" text,
  "e_greenberg" text,
  "g_hager" text,
  "t_wyka" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the T. Wyka has a Precincts of 51/55?`:
```sql
                SELECT "t_wyka" FROM "u_s_house_district_11" WHERE "precincts"='51/55';
```
## Task
Generate a SQL query to answer the following question:
`Which Precincts has a G. Hager of 2,260 (15%)?`

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

CREATE TABLE "u_s_house_district_11" (
  "county" text,
  "precincts" text,
  "e_greenberg" text,
  "g_hager" text,
  "t_wyka" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Precincts has a G. Hager of 2,260 (15%)?`:
```sql
                SELECT "precincts" FROM "u_s_house_district_11" WHERE "g_hager"='2,260 (15%)';
```
## Task
Generate a SQL query to answer the following question:
`Name the G. Hager of E. Greenberg of 266 (14%)?`

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

CREATE TABLE "u_s_house_district_11" (
  "county" text,
  "precincts" text,
  "e_greenberg" text,
  "g_hager" text,
  "t_wyka" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the G. Hager of E. Greenberg of 266 (14%)?`:
```sql
                SELECT "g_hager" FROM "u_s_house_district_11" WHERE "e_greenberg"='266 (14%)';
```
## Task
Generate a SQL query to answer the following question:
`Which Precincts has a County of passaic?`

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

CREATE TABLE "u_s_house_district_11" (
  "county" text,
  "precincts" text,
  "e_greenberg" text,
  "g_hager" text,
  "t_wyka" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Precincts has a County of passaic?`:
```sql
                SELECT "precincts" FROM "u_s_house_district_11" WHERE "county"='passaic';
```
## Task
Generate a SQL query to answer the following question:
`Which E. Greenberg has a T. Wyka of 10,793 (70%)?`

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

CREATE TABLE "u_s_house_district_11" (
  "county" text,
  "precincts" text,
  "e_greenberg" text,
  "g_hager" text,
  "t_wyka" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which E. Greenberg has a T. Wyka of 10,793 (70%)?`:
```sql
                SELECT "e_greenberg" FROM "u_s_house_district_11" WHERE "t_wyka"='10,793 (70%)';
```
## Task
Generate a SQL query to answer the following question:
`Which player from England finished in T41?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player from England finished in T41?`:
```sql
                SELECT "player" FROM "made_the_cut" WHERE "finish"='t41' AND "country"='england';
```
## Task
Generate a SQL query to answer the following question:
`From which country is the player that won in 1998?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `From which country is the player that won in 1998?`:
```sql
                SELECT "country" FROM "made_the_cut" WHERE "year_s_won"='1998';
```
## Task
Generate a SQL query to answer the following question:
`In 1997, what was the final total?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 1997, what was the final total?`:
```sql
                SELECT "total" FROM "made_the_cut" WHERE "year_s_won"='1997';
```
## Task
Generate a SQL query to answer the following question:
`What was the To Par score for player Justin Leonard?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the To Par score for player Justin Leonard?`:
```sql
                SELECT "to_par" FROM "made_the_cut" WHERE "player"='justin leonard';
```
## Task
Generate a SQL query to answer the following question:
`How many points were scored by the player who played 348 games?`

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

CREATE TABLE "club_statistics" (
  "player" text,
  "seasons" text,
  "games" text,
  "goals" text,
  "assists" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points were scored by the player who played 348 games?`:
```sql
                SELECT "points" FROM "club_statistics" WHERE "games"='348';
```
## Task
Generate a SQL query to answer the following question:
`How many points were scored by the player who played 363 games?`

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

CREATE TABLE "club_statistics" (
  "player" text,
  "seasons" text,
  "games" text,
  "goals" text,
  "assists" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points were scored by the player who played 363 games?`:
```sql
                SELECT "points" FROM "club_statistics" WHERE "games"='363';
```
## Task
Generate a SQL query to answer the following question:
`What kind of Replaced has a Manner of departure of end of contract on dec. 16, 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,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Replaced has a Manner of departure of end of contract on dec. 16, 2008?`:
```sql
                SELECT "replaced_by" FROM "managerial_changes" WHERE "manner_of_departure"='end of contract' AND "date_of_appointment"='dec. 16, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What kind of Replaced has a Outgoing manager of guillermo sanguinetti?`

### 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,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Replaced has a Outgoing manager of guillermo sanguinetti?`:
```sql
                SELECT "replaced_by" FROM "managerial_changes" WHERE "outgoing_manager"='guillermo sanguinetti';
```
## Task
Generate a SQL query to answer the following question:
`What kind of Replaced has a Team of gimnasia y esgrima (lp)?`

### 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,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Replaced has a Team of gimnasia y esgrima (lp)?`:
```sql
                SELECT "replaced_by" FROM "managerial_changes" WHERE "team"='gimnasia y esgrima (lp)';
```
## Task
Generate a SQL query to answer the following question:
`Which Team has a Position in table of 15th (c)?`

### 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,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team has a Position in table of 15th (c)?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "position_in_table"='15th (c)';
```
## Task
Generate a SQL query to answer the following question:
`Which Team that has a Position in table of 15th (a) and a Outgoing manager of claudio borghi?`

### 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,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team that has a Position in table of 15th (a) and a Outgoing manager of claudio borghi?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "position_in_table"='15th (a)' AND "outgoing_manager"='claudio borghi';
```
## Task
Generate a SQL query to answer the following question:
`Which Team has a Date of appointment on sep. 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,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team has a Date of appointment on sep. 20, 2008?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "date_of_appointment"='sep. 20, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of losses for a position less than 6, with more than 11 wins and 36 points, with a played entry of more than 30?`

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

CREATE TABLE "group_i" (
  "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 was the highest number of losses for a position less than 6, with more than 11 wins and 36 points, with a played entry of more than 30?`:
```sql
                SELECT MAX("losses") FROM "group_i" WHERE "position"<6 AND "wins">11 AND "points"=36 AND "played">30;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of wins for the entry that has fewer than 49 goals against, 39 goals for, 9 draws, and fewer than 31 points?`

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

CREATE TABLE "group_i" (
  "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 wins for the entry that has fewer than 49 goals against, 39 goals for, 9 draws, and fewer than 31 points?`:
```sql
                SELECT COUNT("wins") FROM "group_i" WHERE "goals_against"<49 AND "draws"=9 AND "goals_for"=39 AND "points"<31;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of goals for entries with more than 12 losses, more than 10 wins, more than 3 draws, and fewer than 29 points?`

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

CREATE TABLE "group_i" (
  "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 average number of goals for entries with more than 12 losses, more than 10 wins, more than 3 draws, and fewer than 29 points?`:
```sql
                SELECT AVG("goals_for") FROM "group_i" WHERE "losses">12 AND "wins">10 AND "points"<29 AND "draws">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of wins for club Cd Orense, with points greater than 36 and more than 4 draws?`

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

CREATE TABLE "group_i" (
  "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 number of wins for club Cd Orense, with points greater than 36 and more than 4 draws?`:
```sql
                SELECT MAX("wins") FROM "group_i" WHERE "draws">4 AND "club"='cd orense' AND "points">36;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of played for the entry with a position of less than 1?`

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

CREATE TABLE "group_i" (
  "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 played for the entry with a position of less than 1?`:
```sql
                SELECT SUM("played") FROM "group_i" WHERE "position"<1;
```
## Task
Generate a SQL query to answer the following question:
`For the match that lasted 3:53 minutes, what was the final record?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the match that lasted 3:53 minutes, what was the final record?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='3:53';
```
## Task
Generate a SQL query to answer the following question:
`Where was the UFC 154 match held?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the UFC 154 match held?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "event"='ufc 154';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1st leg that has a Rc Cannes Team 1?`

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

CREATE TABLE "playoffs_12" (
  "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 1st leg that has a Rc Cannes Team 1?`:
```sql
                SELECT "1st_leg" FROM "playoffs_12" WHERE "team_1"='rc cannes';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest positioned club with points greater than 40, 16 wins and losses less than 3?`

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

CREATE TABLE "2_lyga_zone_north" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest positioned club with points greater than 40, 16 wins and losses less than 3?`:
```sql
                SELECT MIN("position") FROM "2_lyga_zone_north" WHERE "points">40 AND "wins"=16 AND "loses"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest positioned team with 2 wins and losses greater than 13?`

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

CREATE TABLE "2_lyga_zone_north" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest positioned team with 2 wins and losses greater than 13?`:
```sql
                SELECT MIN("position") FROM "2_lyga_zone_north" WHERE "wins"=2 AND "loses">13;
```