cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many people voted for others in the county where McCain got 65.5% of the votes?`

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

CREATE TABLE "by_county" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real,
  "otherspct" text,
  "others" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people voted for others in the county where McCain got 65.5% of the votes?`:
```sql
                SELECT "others" FROM "by_county" WHERE "mc_cainpct"='65.5%';
```
## Task
Generate a SQL query to answer the following question:
`How many players had 6 180s?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players had 6 180s?`:
```sql
                SELECT COUNT("player") FROM "statistics" WHERE "180s"=6;
```
## Task
Generate a SQL query to answer the following question:
`How many 140+ did Gary Anderson have?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many 140+ did Gary Anderson have?`:
```sql
                SELECT "140" FROM "statistics" WHERE "player"='Gary Anderson';
```
## Task
Generate a SQL query to answer the following question:
`What is Phil Taylor's 3-dart average?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Phil Taylor's 3-dart average?`:
```sql
                SELECT "3_dart_average" FROM "statistics" WHERE "player"='Phil Taylor';
```
## Task
Generate a SQL query to answer the following question:
`Who is the guest 3 in the show where guest 4 is Jill Douglas?`

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

CREATE TABLE "season_2006_07" (
  "date" text,
  "presenter" text,
  "guest_1" text,
  "guest_2" text,
  "guest_3" text,
  "guest_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the guest 3 in the show where guest 4 is Jill Douglas?`:
```sql
                SELECT "guest_3" FROM "season_2006_07" WHERE "guest_4"='Jill Douglas';
```
## Task
Generate a SQL query to answer the following question:
`Who is the guest 2 in the episode where guest 4 is Iyare Igiehon and guest 3 is John Oliver?`

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

CREATE TABLE "season_2006_07" (
  "date" text,
  "presenter" text,
  "guest_1" text,
  "guest_2" text,
  "guest_3" text,
  "guest_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the guest 2 in the episode where guest 4 is Iyare Igiehon and guest 3 is John Oliver?`:
```sql
                SELECT "guest_2" FROM "season_2006_07" WHERE "guest_4"='Iyare Igiehon' AND "guest_3"='John Oliver';
```
## Task
Generate a SQL query to answer the following question:
`Who is the guest 1 in the episode where guest 4 is Jill Douglas?`

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

CREATE TABLE "season_2006_07" (
  "date" text,
  "presenter" text,
  "guest_1" text,
  "guest_2" text,
  "guest_3" text,
  "guest_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the guest 1 in the episode where guest 4 is Jill Douglas?`:
```sql
                SELECT "guest_1" FROM "season_2006_07" WHERE "guest_4"='Jill Douglas';
```
## Task
Generate a SQL query to answer the following question:
`How many dates are associated with a guest 4 being Jim Jeffries (debut)?`

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

CREATE TABLE "season_2006_07" (
  "date" text,
  "presenter" text,
  "guest_1" text,
  "guest_2" text,
  "guest_3" text,
  "guest_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates are associated with a guest 4 being Jim Jeffries (debut)?`:
```sql
                SELECT COUNT("date") FROM "season_2006_07" WHERE "guest_4"='Jim Jeffries (debut)';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the episode in which the presenter is Johnny Vaughan?`

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

CREATE TABLE "season_2006_07" (
  "date" text,
  "presenter" text,
  "guest_1" text,
  "guest_2" text,
  "guest_3" text,
  "guest_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the episode in which the presenter is Johnny Vaughan?`:
```sql
                SELECT "date" FROM "season_2006_07" WHERE "presenter"='Johnny Vaughan';
```
## Task
Generate a SQL query to answer the following question:
`Name the guest 4 for 8 december`

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

CREATE TABLE "table1_20466963_13" (
  "date" text,
  "presenter" text,
  "guest_1" text,
  "guest_2" text,
  "guest_3" text,
  "guest_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the guest 4 for 8 december`:
```sql
                SELECT "guest_4" FROM "table1_20466963_13" WHERE "date"='8 December';
```
## Task
Generate a SQL query to answer the following question:
`Name the guest 4 for steve lamacq`

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

CREATE TABLE "table1_20466963_13" (
  "date" text,
  "presenter" text,
  "guest_1" text,
  "guest_2" text,
  "guest_3" text,
  "guest_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the guest 4 for steve lamacq`:
```sql
                SELECT "guest_4" FROM "table1_20466963_13" WHERE "guest_2"='Steve Lamacq';
```
## Task
Generate a SQL query to answer the following question:
`Name the guest 2 for colin murray 6 april`

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

CREATE TABLE "table1_20466963_13" (
  "date" text,
  "presenter" text,
  "guest_1" text,
  "guest_2" text,
  "guest_3" text,
  "guest_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the guest 2 for colin murray 6 april`:
```sql
                SELECT COUNT("guest_2") FROM "table1_20466963_13" WHERE "presenter"='Colin Murray' AND "date"='6 April';
```
## Task
Generate a SQL query to answer the following question:
`Name the presenter 11 may`

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

CREATE TABLE "table1_20466963_13" (
  "date" text,
  "presenter" text,
  "guest_1" text,
  "guest_2" text,
  "guest_3" text,
  "guest_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the presenter 11 may`:
```sql
                SELECT "presenter" FROM "table1_20466963_13" WHERE "date"='11 May';
```
## Task
Generate a SQL query to answer the following question:
`Name the guest 3 for iyare igiehon`

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

CREATE TABLE "table1_20466963_13" (
  "date" text,
  "presenter" text,
  "guest_1" text,
  "guest_2" text,
  "guest_3" text,
  "guest_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the guest 3 for iyare igiehon`:
```sql
                SELECT "guest_3" FROM "table1_20466963_13" WHERE "guest_2"='Iyare Igiehon';
```
## Task
Generate a SQL query to answer the following question:
`How many seasons featured 29 conversions?`

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

CREATE TABLE "newport_rfc_record" (
  "season" text,
  "games" real,
  "tries" real,
  "conversions" real,
  "penalties" real,
  "drop_goals" real,
  "total_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons featured 29 conversions?`:
```sql
                SELECT COUNT("penalties") FROM "newport_rfc_record" WHERE "conversions"=29;
```
## Task
Generate a SQL query to answer the following question:
`Lowest number of drop goals?`

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

CREATE TABLE "newport_rfc_record" (
  "season" text,
  "games" real,
  "tries" real,
  "conversions" real,
  "penalties" real,
  "drop_goals" real,
  "total_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Lowest number of drop goals?`:
```sql
                SELECT MIN("drop_goals") FROM "newport_rfc_record";
```
## Task
Generate a SQL query to answer the following question:
`What is the point total for the season with 2 drop goals?`

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

CREATE TABLE "newport_rfc_record" (
  "season" text,
  "games" real,
  "tries" real,
  "conversions" real,
  "penalties" real,
  "drop_goals" real,
  "total_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the point total for the season with 2 drop goals?`:
```sql
                SELECT MIN("total_points") FROM "newport_rfc_record" WHERE "drop_goals"=2;
```
## Task
Generate a SQL query to answer the following question:
`Name the most obama number for mccain being 38.86%`

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

CREATE TABLE "by_county" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real,
  "otherspct" text,
  "othersnum" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most obama number for mccain being 38.86%`:
```sql
                SELECT MAX("obamanum") FROM "by_county" WHERE "mc_cainpct"='38.86%';
```
## Task
Generate a SQL query to answer the following question:
`Name the most abama number for mccain being 29266`

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

CREATE TABLE "by_county" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real,
  "otherspct" text,
  "othersnum" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most abama number for mccain being 29266`:
```sql
                SELECT MAX("obamanum") FROM "by_county" WHERE "mc_cainnum"=29266;
```
## Task
Generate a SQL query to answer the following question:
`Name the county for mccain being 38.78%`

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

CREATE TABLE "by_county" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real,
  "otherspct" text,
  "othersnum" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the county for mccain being 38.78%`:
```sql
                SELECT "county" FROM "by_county" WHERE "mc_cainpct"='38.78%';
```
## Task
Generate a SQL query to answer the following question:
`In how many counties di McCain win 41.62% of the vote?`

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

CREATE TABLE "by_county_city" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `In how many counties di McCain win 41.62% of the vote?`:
```sql
                SELECT COUNT("county") FROM "by_county_city" WHERE "mc_cainpct"='41.62%';
```
## Task
Generate a SQL query to answer the following question:
`What percentage of the vote did McCain win in Waynesboro (city)?`

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

CREATE TABLE "by_county_city" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of the vote did McCain win in Waynesboro (city)?`:
```sql
                SELECT "mc_cainpct" FROM "by_county_city" WHERE "county"='Waynesboro (city)';
```
## Task
Generate a SQL query to answer the following question:
`What was Obama's percentage in those places where McCain's percentage was 55.46%?`

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

CREATE TABLE "by_county_city" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Obama's percentage in those places where McCain's percentage was 55.46%?`:
```sql
                SELECT "obamapct" FROM "by_county_city" WHERE "mc_cainpct"='55.46%';
```
## Task
Generate a SQL query to answer the following question:
`What was Obama's percentage in the county of Alleghany?`

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

CREATE TABLE "by_county_city" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Obama's percentage in the county of Alleghany?`:
```sql
                SELECT "obamapct" FROM "by_county_city" WHERE "county"='Alleghany';
```
## Task
Generate a SQL query to answer the following question:
`What was Obama's percentage in the county of Surry?`

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

CREATE TABLE "by_county_city" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Obama's percentage in the county of Surry?`:
```sql
                SELECT "obamapct" FROM "by_county_city" WHERE "county"='Surry';
```
## Task
Generate a SQL query to answer the following question:
`How many percent of the votes in Debaca did McCain get?`

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

CREATE TABLE "by_county" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many percent of the votes in Debaca did McCain get?`:
```sql
                SELECT "mc_cainpct" FROM "by_county" WHERE "county"='DeBaca';
```
## Task
Generate a SQL query to answer the following question:
`What percentage of the votes did Obama get in the county where 3909 people voted in total?`

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

CREATE TABLE "by_county" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of the votes did Obama get in the county where 3909 people voted in total?`:
```sql
                SELECT "obamapct" FROM "by_county" WHERE "total"=3909;
```
## Task
Generate a SQL query to answer the following question:
`What percentage of the votes did Obama get in the county where McCain got 3648 votes?`

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

CREATE TABLE "by_county" (
  "county" text,
  "obamapct" text,
  "obamanum" real,
  "mc_cainpct" text,
  "mc_cainnum" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of the votes did Obama get in the county where McCain got 3648 votes?`:
```sql
                SELECT "obamapct" FROM "by_county" WHERE "mc_cainnum"=3648;
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner when the SEC team LSU played?`

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

CREATE TABLE "table1_20540006_6" (
  "date" text,
  "time" text,
  "big_east_team" text,
  "sec_team" text,
  "location" text,
  "television" text,
  "attendance" real,
  "winner" text,
  "challenge_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner when the SEC team LSU played?`:
```sql
                SELECT "winner" FROM "table1_20540006_6" WHERE "sec_team"='LSU';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the game when the challenge leader was at Big East (4-2)?`

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

CREATE TABLE "table1_20540006_6" (
  "date" text,
  "time" text,
  "big_east_team" text,
  "sec_team" text,
  "location" text,
  "television" text,
  "attendance" real,
  "winner" text,
  "challenge_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for the game when the challenge leader was at Big East (4-2)?`:
```sql
                SELECT MAX("attendance") FROM "table1_20540006_6" WHERE "challenge_leader"='Big East (4-2)';
```
## Task
Generate a SQL query to answer the following question:
`What suumer team was James Lomangino from St. John's on?`

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

CREATE TABLE "mlb_draft_history" (
  "draft_year" real,
  "player" text,
  "summer_team" text,
  "college" text,
  "mlb_team" text,
  "draft_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What suumer team was James Lomangino from St. John's on?`:
```sql
                SELECT "summer_team" FROM "mlb_draft_history" WHERE "college"='St. John''s' AND "player"='James Lomangino';
```
## Task
Generate a SQL query to answer the following question:
`In what draft round in 2012 did a player from Rio Hondo get drafted?`

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

CREATE TABLE "mlb_draft_history" (
  "draft_year" real,
  "player" text,
  "summer_team" text,
  "college" text,
  "mlb_team" text,
  "draft_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what draft round in 2012 did a player from Rio Hondo get drafted?`:
```sql
                SELECT "draft_round" FROM "mlb_draft_history" WHERE "college"='Rio Hondo' AND "draft_year"=2012;
```
## Task
Generate a SQL query to answer the following question:
`What college did Aaron Slegers attend?`

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

CREATE TABLE "mlb_draft_history" (
  "draft_year" real,
  "player" text,
  "summer_team" text,
  "college" text,
  "mlb_team" text,
  "draft_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college did Aaron Slegers attend?`:
```sql
                SELECT "college" FROM "mlb_draft_history" WHERE "player"='Aaron Slegers';
```
## Task
Generate a SQL query to answer the following question:
`What are the statuses of the platelet counts for the conditions where the prothrombin time and partial thromboblastin time is unaffected? `

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the statuses of the platelet counts for the conditions where the prothrombin time and partial thromboblastin time is unaffected? `:
```sql
                SELECT "platelet_count" FROM "laboratory_findings_in_various_platelet_" WHERE "prothrombin_time"='Unaffected' AND "partial_thromboplastin_time"='Unaffected';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of partial thromboplastin times for conditions where the platelet count is decreased? `

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of partial thromboplastin times for conditions where the platelet count is decreased? `:
```sql
                SELECT "partial_thromboplastin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "platelet_count"='Decreased';
```
## Task
Generate a SQL query to answer the following question:
`In what conditions are both the platelet count and prothrombin time unaffected? `

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what conditions are both the platelet count and prothrombin time unaffected? `:
```sql
                SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "platelet_count"='Unaffected' AND "prothrombin_time"='Unaffected';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of bleeding time for thrombocytopenia? `

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of bleeding time for thrombocytopenia? `:
```sql
                SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Thrombocytopenia';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of platelet counts for conditions where bleeding time is prolonged and partial thromboplastin time is unaffected? `

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of platelet counts for conditions where bleeding time is prolonged and partial thromboplastin time is unaffected? `:
```sql
                SELECT "platelet_count" FROM "laboratory_findings_in_various_platelet_" WHERE "bleeding_time"='Prolonged' AND "partial_thromboplastin_time"='Unaffected';
```
## Task
Generate a SQL query to answer the following question:
`Which players made exactly 8 cuts?`

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

CREATE TABLE "2009_results" (
  "player" text,
  "starts" real,
  "cuts_made" real,
  "best_finish" text,
  "money_list_rank" real,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which players made exactly 8 cuts?`:
```sql
                SELECT "player" FROM "2009_results" WHERE "cuts_made"=8;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of entries for Leif Olson?`

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

CREATE TABLE "2009_results" (
  "player" text,
  "starts" real,
  "cuts_made" real,
  "best_finish" text,
  "money_list_rank" real,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of entries for Leif Olson?`:
```sql
                SELECT COUNT("starts") FROM "2009_results" WHERE "player"='Leif Olson';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of players who had a money list rank of 96?`

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

CREATE TABLE "2009_results" (
  "player" text,
  "starts" real,
  "cuts_made" real,
  "best_finish" text,
  "money_list_rank" real,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of players who had a money list rank of 96?`:
```sql
                SELECT COUNT("best_finish") FROM "2009_results" WHERE "money_list_rank"=96;
```
## Task
Generate a SQL query to answer the following question:
`what is the name for br no. 60501`

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

CREATE TABLE "stock_list" (
  "original_no" real,
  "lner_no_intermediate_no" text,
  "br_no" real,
  "name" text,
  "rebuild_date" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name for br no. 60501`:
```sql
                SELECT "name" FROM "stock_list" WHERE "br_no"=60501;
```
## Task
Generate a SQL query to answer the following question:
`When 23% scott mcadams (d) what are the dates administered?`

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

CREATE TABLE "polling" (
  "poll_source" text,
  "dates_administered" text,
  "joe_miller_r" text,
  "lisa_murkowski_r_write_in_candidate" text,
  "scott_mc_adams_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 23% scott mcadams (d) what are the dates administered?`:
```sql
                SELECT "dates_administered" FROM "polling" WHERE "scott_mc_adams_d"='23%';
```
## Task
Generate a SQL query to answer the following question:
`When 30% is scott mcadams (d) percentage how many poll sources are there?`

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

CREATE TABLE "polling" (
  "poll_source" text,
  "dates_administered" text,
  "joe_miller_r" text,
  "lisa_murkowski_r_write_in_candidate" text,
  "scott_mc_adams_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 30% is scott mcadams (d) percentage how many poll sources are there?`:
```sql
                SELECT COUNT("poll_source") FROM "polling" WHERE "scott_mc_adams_d"='30%';
```
## Task
Generate a SQL query to answer the following question:
`Name the revenue for eps being 1.19`

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

CREATE TABLE "umicore_n_v_financial_results" (
  "year_ended" real,
  "revenue_million" real,
  "earnings_before_interest_and_taxes_m" text,
  "net_profit_m" text,
  "earnings_per_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the revenue for eps being 1.19`:
```sql
                SELECT MAX("revenue_million") FROM "umicore_n_v_financial_results" WHERE "earnings_per_share"='1.19';
```
## Task
Generate a SQL query to answer the following question:
`Name the net profit for eps beign 1.19`

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

CREATE TABLE "umicore_n_v_financial_results" (
  "year_ended" real,
  "revenue_million" real,
  "earnings_before_interest_and_taxes_m" text,
  "net_profit_m" text,
  "earnings_per_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the net profit for eps beign 1.19`:
```sql
                SELECT "net_profit_m" FROM "umicore_n_v_financial_results" WHERE "earnings_per_share"='1.19';
```
## Task
Generate a SQL query to answer the following question:
`Name the ebit for eps being 1.78`

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

CREATE TABLE "umicore_n_v_financial_results" (
  "year_ended" real,
  "revenue_million" real,
  "earnings_before_interest_and_taxes_m" text,
  "net_profit_m" text,
  "earnings_per_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ebit for eps being 1.78`:
```sql
                SELECT "earnings_before_interest_and_taxes_m" FROM "umicore_n_v_financial_results" WHERE "earnings_per_share"='1.78';
```
## Task
Generate a SQL query to answer the following question:
`How many different production codes does the episode directed by Dominic Polcino have?`

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

CREATE TABLE "table1_20613292_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different production codes does the episode directed by Dominic Polcino have?`:
```sql
                SELECT COUNT("production_code") FROM "table1_20613292_1" WHERE "directed_by"='Dominic Polcino';
```
## Task
Generate a SQL query to answer the following question:
`What's the production code of the episode written by Kirker Butler and directed by Dan Povenmire?`

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

CREATE TABLE "table1_20613292_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the production code of the episode written by Kirker Butler and directed by Dan Povenmire?`:
```sql
                SELECT "production_code" FROM "table1_20613292_1" WHERE "written_by"='Kirker Butler' AND "directed_by"='Dan Povenmire';
```
## Task
Generate a SQL query to answer the following question:
`What was the weight in kg when the jockey was B. York? `

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

CREATE TABLE "1996_97_season_as_a_three_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the weight in kg when the jockey was B. York? `:
```sql
                SELECT "weight_kg" FROM "1996_97_season_as_a_three_year_old" WHERE "jockey"='B. York';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the race where the jockey was J. Marshall? `

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

CREATE TABLE "1996_97_season_as_a_three_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the race where the jockey was J. Marshall? `:
```sql
                SELECT "result" FROM "1996_97_season_as_a_three_year_old" WHERE "jockey"='J. Marshall';
```
## Task
Generate a SQL query to answer the following question:
`Name the most weight`

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

CREATE TABLE "1998_99_season_as_a_five_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most weight`:
```sql
                SELECT MAX("weight_kg") FROM "1998_99_season_as_a_five_year_old";
```
## Task
Generate a SQL query to answer the following question:
`Name the date for moonee valley`

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

CREATE TABLE "1998_99_season_as_a_five_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for moonee valley`:
```sql
                SELECT "date" FROM "1998_99_season_as_a_five_year_old" WHERE "venue"='Moonee Valley';
```
## Task
Generate a SQL query to answer the following question:
`What group was the Hollindale Stakes in?`

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

CREATE TABLE "1997_98_season_as_a_four_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What group was the Hollindale Stakes in?`:
```sql
                SELECT "group" FROM "1997_98_season_as_a_four_year_old" WHERE "race"='Hollindale Stakes';
```
## Task
Generate a SQL query to answer the following question:
`What race has a distance of 1200 m?`

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

CREATE TABLE "1997_98_season_as_a_four_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What race has a distance of 1200 m?`:
```sql
                SELECT "race" FROM "1997_98_season_as_a_four_year_old" WHERE "distance"='1200 m';
```
## Task
Generate a SQL query to answer the following question:
`What was the result for the time of 1-26.21?`

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

CREATE TABLE "career_results" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "distance" text,
  "class" text,
  "weight_kg" text,
  "time" text,
  "jockey" text,
  "odds" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for the time of 1-26.21?`:
```sql
                SELECT "result" FROM "career_results" WHERE "time"='1-26.21';
```
## Task
Generate a SQL query to answer the following question:
`Who was the jockey in group 1 at the 1400m distance at randwick?`

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

CREATE TABLE "career_results" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "distance" text,
  "class" text,
  "weight_kg" text,
  "time" text,
  "jockey" text,
  "odds" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the jockey in group 1 at the 1400m distance at randwick?`:
```sql
                SELECT "jockey" FROM "career_results" WHERE "class"='Group 1' AND "venue"='Randwick' AND "distance"='1400m';
```
## Task
Generate a SQL query to answer the following question:
`What class was the 2nd - portillo?`

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

CREATE TABLE "career_results" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "distance" text,
  "class" text,
  "weight_kg" text,
  "time" text,
  "jockey" text,
  "odds" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class was the 2nd - portillo?`:
```sql
                SELECT "class" FROM "career_results" WHERE "winner_2nd"='2nd - Portillo';
```
## Task
Generate a SQL query to answer the following question:
`What time for the entrant weighing 54.4kg?`

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

CREATE TABLE "career_results" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "distance" text,
  "class" text,
  "weight_kg" text,
  "time" text,
  "jockey" text,
  "odds" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time for the entrant weighing 54.4kg?`:
```sql
                SELECT "time" FROM "career_results" WHERE "weight_kg"='54.4kg';
```
## Task
Generate a SQL query to answer the following question:
`What is every entry for epoch if periselene is 5,454.925?`

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

CREATE TABLE "summary_of_osculating_selenocentric_orbi" (
  "epoch_utc" text,
  "periselene_km" text,
  "aposelene_km" text,
  "eccentricity" text,
  "inclination_deg_to_moon_equator" text,
  "period_h" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every entry for epoch if periselene is 5,454.925?`:
```sql
                SELECT "epoch_utc" FROM "summary_of_osculating_selenocentric_orbi" WHERE "periselene_km"='5,454.925';
```
## Task
Generate a SQL query to answer the following question:
`What is every entry for epoch if periselene is 2,291.250?`

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

CREATE TABLE "summary_of_osculating_selenocentric_orbi" (
  "epoch_utc" text,
  "periselene_km" text,
  "aposelene_km" text,
  "eccentricity" text,
  "inclination_deg_to_moon_equator" text,
  "period_h" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every entry for epoch if periselene is 2,291.250?`:
```sql
                SELECT "epoch_utc" FROM "summary_of_osculating_selenocentric_orbi" WHERE "periselene_km"='2,291.250';
```
## Task
Generate a SQL query to answer the following question:
`What is every value of period when eccentricity is 0.583085?`

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

CREATE TABLE "summary_of_osculating_selenocentric_orbi" (
  "epoch_utc" text,
  "periselene_km" text,
  "aposelene_km" text,
  "eccentricity" text,
  "inclination_deg_to_moon_equator" text,
  "period_h" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value of period when eccentricity is 0.583085?`:
```sql
                SELECT "period_h" FROM "summary_of_osculating_selenocentric_orbi" WHERE "eccentricity"='0.583085';
```
## Task
Generate a SQL query to answer the following question:
`What is every value of epoch if inclination is 90.063603?`

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

CREATE TABLE "summary_of_osculating_selenocentric_orbi" (
  "epoch_utc" text,
  "periselene_km" text,
  "aposelene_km" text,
  "eccentricity" text,
  "inclination_deg_to_moon_equator" text,
  "period_h" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value of epoch if inclination is 90.063603?`:
```sql
                SELECT "epoch_utc" FROM "summary_of_osculating_selenocentric_orbi" WHERE "inclination_deg_to_moon_equator"='90.063603';
```
## Task
Generate a SQL query to answer the following question:
`What is every value for periselene if period is 4.947432?`

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

CREATE TABLE "summary_of_osculating_selenocentric_orbi" (
  "epoch_utc" text,
  "periselene_km" text,
  "aposelene_km" text,
  "eccentricity" text,
  "inclination_deg_to_moon_equator" text,
  "period_h" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for periselene if period is 4.947432?`:
```sql
                SELECT "periselene_km" FROM "summary_of_osculating_selenocentric_orbi" WHERE "period_h"='4.947432';
```
## Task
Generate a SQL query to answer the following question:
`How many values of periselene when epoch is November 15, 2004, 17:47:12.1?`

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

CREATE TABLE "summary_of_osculating_selenocentric_orbi" (
  "epoch_utc" text,
  "periselene_km" text,
  "aposelene_km" text,
  "eccentricity" text,
  "inclination_deg_to_moon_equator" text,
  "period_h" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values of periselene when epoch is November 15, 2004, 17:47:12.1?`:
```sql
                SELECT COUNT("periselene_km") FROM "summary_of_osculating_selenocentric_orbi" WHERE "epoch_utc"='November 15, 2004, 17:47:12.1';
```
## Task
Generate a SQL query to answer the following question:
`How many times did the Bruins play Tennessee?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "bruins_points" real,
  "opponents" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did the Bruins play Tennessee?`:
```sql
                SELECT COUNT("result") FROM "schedule" WHERE "opponent"='Tennessee';
```
## Task
Generate a SQL query to answer the following question:
`What is the current tournament name for the event in Tampa?`

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

CREATE TABLE "events" (
  "tournament" text,
  "also_currently_known_as" text,
  "city_s" text,
  "country" text,
  "court_surface" text,
  "tier_iv_in" text,
  "years" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the current tournament name for the event in Tampa?`:
```sql
                SELECT "also_currently_known_as" FROM "events" WHERE "tournament"='Tampa';
```
## Task
Generate a SQL query to answer the following question:
`What is the tier IV year for the tournament held in Tampa?`

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

CREATE TABLE "events" (
  "tournament" text,
  "also_currently_known_as" text,
  "city_s" text,
  "country" text,
  "court_surface" text,
  "tier_iv_in" text,
  "years" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tier IV year for the tournament held in Tampa?`:
```sql
                SELECT "tier_iv_in" FROM "events" WHERE "tournament"='Tampa';
```
## Task
Generate a SQL query to answer the following question:
`What is the most years that tournaments held in Rome have lasted?`

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

CREATE TABLE "events" (
  "tournament" text,
  "also_currently_known_as" text,
  "city_s" text,
  "country" text,
  "court_surface" text,
  "tier_iv_in" text,
  "years" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most years that tournaments held in Rome have lasted?`:
```sql
                SELECT MAX("years") FROM "events" WHERE "tournament"='Rome';
```
## Task
Generate a SQL query to answer the following question:
`What is the city location of the tournament currently known as the Medibank International Sydney?`

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

CREATE TABLE "events" (
  "tournament" text,
  "also_currently_known_as" text,
  "city_s" text,
  "country" text,
  "court_surface" text,
  "tier_iv_in" text,
  "years" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the city location of the tournament currently known as the Medibank International Sydney?`:
```sql
                SELECT "city_s" FROM "events" WHERE "also_currently_known_as"='Medibank International Sydney';
```
## Task
Generate a SQL query to answer the following question:
`How many different shareholders have 2.39 % of capital?`

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

CREATE TABLE "scania_ab_publ_principal_shareholders" (
  "shareholder_name" text,
  "a_shares" real,
  "b_shares" real,
  "pct_of_capital" text,
  "pct_of_votes" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different shareholders have 2.39 % of capital?`:
```sql
                SELECT COUNT("shareholder_name") FROM "scania_ab_publ_principal_shareholders" WHERE "pct_of_capital"='2.39';
```
## Task
Generate a SQL query to answer the following question:
`What shareholders have 0 A shares?`

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

CREATE TABLE "scania_ab_publ_principal_shareholders" (
  "shareholder_name" text,
  "a_shares" real,
  "b_shares" real,
  "pct_of_capital" text,
  "pct_of_votes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shareholders have 0 A shares?`:
```sql
                SELECT "shareholder_name" FROM "scania_ab_publ_principal_shareholders" WHERE "a_shares"=0;
```
## Task
Generate a SQL query to answer the following question:
`What percentage of votes does the shareholder with 78.19% of capital have?`

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

CREATE TABLE "scania_ab_publ_principal_shareholders" (
  "shareholder_name" text,
  "a_shares" real,
  "b_shares" real,
  "pct_of_capital" text,
  "pct_of_votes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage of votes does the shareholder with 78.19% of capital have?`:
```sql
                SELECT "pct_of_votes" FROM "scania_ab_publ_principal_shareholders" WHERE "pct_of_capital"='78.19';
```
## Task
Generate a SQL query to answer the following question:
`How many different numbers of B shares does Handelsbanken fonder have?`

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

CREATE TABLE "scania_ab_publ_principal_shareholders" (
  "shareholder_name" text,
  "a_shares" real,
  "b_shares" real,
  "pct_of_capital" text,
  "pct_of_votes" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different numbers of B shares does Handelsbanken fonder have?`:
```sql
                SELECT COUNT("b_shares") FROM "scania_ab_publ_principal_shareholders" WHERE "shareholder_name"='Handelsbanken fonder';
```
## Task
Generate a SQL query to answer the following question:
`What's the green (SW) of the model with charcoal/white interior/roof?`

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

CREATE TABLE "convertible" (
  "interior_roof" text,
  "black_ua" real,
  "red_e8" real,
  "white_zr" real,
  "green_sw" real,
  "totals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the green (SW) of the model with charcoal/white interior/roof?`:
```sql
                SELECT MIN("green_sw") FROM "convertible" WHERE "interior_roof"='Charcoal/white';
```
## Task
Generate a SQL query to answer the following question:
`How many different results for red (e8) does the model with parchment/saddle interior/roof have?`

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

CREATE TABLE "convertible" (
  "interior_roof" text,
  "black_ua" real,
  "red_e8" real,
  "white_zr" real,
  "green_sw" real,
  "totals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different results for red (e8) does the model with parchment/saddle interior/roof have?`:
```sql
                SELECT COUNT("red_e8") FROM "convertible" WHERE "interior_roof"='Parchment/saddle';
```