cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Weight of 220 has what class?`

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

CREATE TABLE "roster" (
  "number" real,
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "class" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `Weight of 220 has what class?`:
```sql
                SELECT "class" FROM "roster" WHERE "weight"=220;
```
## Task
Generate a SQL query to answer the following question:
`Name of byron geis, and a Weight smaller than 195 involves what average number?`

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

CREATE TABLE "roster" (
  "number" real,
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "class" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name of byron geis, and a Weight smaller than 195 involves what average number?`:
```sql
                SELECT AVG("number") FROM "roster" WHERE "name"='byron geis' AND "weight"<195;
```
## Task
Generate a SQL query to answer the following question:
`What was the record on March 22?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on March 22?`:
```sql
                SELECT "record" FROM "march" WHERE "date"='march 22';
```
## Task
Generate a SQL query to answer the following question:
`What day in february was game 53?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day in february was game 53?`:
```sql
                SELECT AVG("february") FROM "schedule_and_results" WHERE "game"=53;
```
## Task
Generate a SQL query to answer the following question:
`What is the team's record on februrary 23?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team's record on februrary 23?`:
```sql
                SELECT "record" FROM "schedule_and_results" WHERE "february"=23;
```
## Task
Generate a SQL query to answer the following question:
`Which Place is the lowest one that has a Total smaller than 24, and a Draw larger than 7?`

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

CREATE TABLE "malta_in_the_eurovision_song_contest_200" (
  "draw" real,
  "artist" text,
  "song" text,
  "jury" real,
  "televote" real,
  "total" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Place is the lowest one that has a Total smaller than 24, and a Draw larger than 7?`:
```sql
                SELECT MIN("place") FROM "malta_in_the_eurovision_song_contest_200" WHERE "total"<24 AND "draw">7;
```
## Task
Generate a SQL query to answer the following question:
`with lola t86/50 chassis and less than 7 points what is the entrant?`

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

CREATE TABLE "complete_international_formula_3000_resu" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `with lola t86/50 chassis and less than 7 points what is the entrant?`:
```sql
                SELECT "entrant" FROM "complete_international_formula_3000_resu" WHERE "points"<7 AND "chassis"='lola t86/50';
```
## Task
Generate a SQL query to answer the following question:
`after 1987 and entrant of first racing what is the highest points?`

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

CREATE TABLE "complete_international_formula_3000_resu" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `after 1987 and entrant of first racing what is the highest points?`:
```sql
                SELECT MAX("points") FROM "complete_international_formula_3000_resu" WHERE "entrant"='first racing' AND "year">1987;
```
## Task
Generate a SQL query to answer the following question:
`with year greater than 1988 what is the total number of points?`

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

CREATE TABLE "complete_international_formula_3000_resu" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `with year greater than 1988 what is the total number of points?`:
```sql
                SELECT COUNT("points") FROM "complete_international_formula_3000_resu" WHERE "year">1988;
```
## Task
Generate a SQL query to answer the following question:
`what is the points total for forti corse?`

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

CREATE TABLE "complete_international_formula_3000_resu" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the points total for forti corse?`:
```sql
                SELECT SUM("points") FROM "complete_international_formula_3000_resu" WHERE "entrant"='forti corse';
```
## Task
Generate a SQL query to answer the following question:
`What is the Parts-per example of 2×10 −6?`

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

CREATE TABLE "iupap_s_uno_proposal" (
  "coefficient" text,
  "parts_per_example" text,
  "uno_equiv" text,
  "symbol_form" text,
  "value_of_quantity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Parts-per example of 2×10 −6?`:
```sql
                SELECT "parts_per_example" FROM "iupap_s_uno_proposal" WHERE "value_of_quantity"='2×10 −6';
```
## Task
Generate a SQL query to answer the following question:
`What is the Coefficient of 2 ppt?`

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

CREATE TABLE "iupap_s_uno_proposal" (
  "coefficient" text,
  "parts_per_example" text,
  "uno_equiv" text,
  "symbol_form" text,
  "value_of_quantity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Coefficient of 2 ppt?`:
```sql
                SELECT "coefficient" FROM "iupap_s_uno_proposal" WHERE "parts_per_example"='2 ppt';
```
## Task
Generate a SQL query to answer the following question:
`what is the format of catalog 865 821-1?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "region" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the format of catalog 865 821-1?`:
```sql
                SELECT "format" FROM "release_history" WHERE "catalog"='865 821-1';
```
## Task
Generate a SQL query to answer the following question:
`What season had Kanto Gakuin University as the winner, with an attendance of n/a, and a title of 37th?`

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

CREATE TABLE "all_japan_university_rugby_championships" (
  "title" text,
  "season" text,
  "winner" text,
  "score" text,
  "runner_up" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season had Kanto Gakuin University as the winner, with an attendance of n/a, and a title of 37th?`:
```sql
                SELECT "season" FROM "all_japan_university_rugby_championships" WHERE "winner"='kanto gakuin university' AND "attendance"='n/a' AND "title"='37th';
```
## Task
Generate a SQL query to answer the following question:
`What was the title for the game with an attendance of n/a with the runner-up being Waseda, and a season of 1995-6 details?`

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

CREATE TABLE "all_japan_university_rugby_championships" (
  "title" text,
  "season" text,
  "winner" text,
  "score" text,
  "runner_up" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title for the game with an attendance of n/a with the runner-up being Waseda, and a season of 1995-6 details?`:
```sql
                SELECT "title" FROM "all_japan_university_rugby_championships" WHERE "attendance"='n/a' AND "runner_up"='waseda' AND "season"='1995-6 details';
```
## Task
Generate a SQL query to answer the following question:
`What season has a runner-up of waseda, and a title of 47th?`

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

CREATE TABLE "all_japan_university_rugby_championships" (
  "title" text,
  "season" text,
  "winner" text,
  "score" text,
  "runner_up" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season has a runner-up of waseda, and a title of 47th?`:
```sql
                SELECT "season" FROM "all_japan_university_rugby_championships" WHERE "runner_up"='waseda' AND "title"='47th';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner in the game that had Teikyo as the runner-up?`

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

CREATE TABLE "all_japan_university_rugby_championships" (
  "title" text,
  "season" text,
  "winner" text,
  "score" text,
  "runner_up" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner in the game that had Teikyo as the runner-up?`:
```sql
                SELECT "winner" FROM "all_japan_university_rugby_championships" WHERE "runner_up"='teikyo';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner in the game that had a title of 32nd, and Waseda as the runner-up?`

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

CREATE TABLE "all_japan_university_rugby_championships" (
  "title" text,
  "season" text,
  "winner" text,
  "score" text,
  "runner_up" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner in the game that had a title of 32nd, and Waseda as the runner-up?`:
```sql
                SELECT "winner" FROM "all_japan_university_rugby_championships" WHERE "runner_up"='waseda' AND "title"='32nd';
```
## Task
Generate a SQL query to answer the following question:
`what is the date on week 6`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date on week 6`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=6;
```
## Task
Generate a SQL query to answer the following question:
`Which City has 600kw 500kw ERP (Analog/ Digital)?`

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

CREATE TABLE "main_transmitters" (
  "region_served" text,
  "city" text,
  "channels_analog_digital" text,
  "first_air_date" text,
  "erp_analog_digital" text,
  "haat_analog_digital_1" text,
  "transmitter_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has 600kw 500kw ERP (Analog/ Digital)?`:
```sql
                SELECT "city" FROM "main_transmitters" WHERE "erp_analog_digital"='600kw 500kw';
```
## Task
Generate a SQL query to answer the following question:
`Which Region served has  of 1176 m 1190 m HAAT (Analog/ Digital) 1?`

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

CREATE TABLE "main_transmitters" (
  "region_served" text,
  "city" text,
  "channels_analog_digital" text,
  "first_air_date" text,
  "erp_analog_digital" text,
  "haat_analog_digital_1" text,
  "transmitter_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Region served has  of 1176 m 1190 m HAAT (Analog/ Digital) 1?`:
```sql
                SELECT "region_served" FROM "main_transmitters" WHERE "haat_analog_digital_1"='1176 m 1190 m';
```
## Task
Generate a SQL query to answer the following question:
`Which City has 600kw 500kw ERP ?`

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

CREATE TABLE "main_transmitters" (
  "region_served" text,
  "city" text,
  "channels_analog_digital" text,
  "first_air_date" text,
  "erp_analog_digital" text,
  "haat_analog_digital_1" text,
  "transmitter_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has 600kw 500kw ERP ?`:
```sql
                SELECT "city" FROM "main_transmitters" WHERE "erp_analog_digital"='600kw 500kw';
```
## Task
Generate a SQL query to answer the following question:
`Which City has a 360kw 90kw ERP?`

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

CREATE TABLE "main_transmitters" (
  "region_served" text,
  "city" text,
  "channels_analog_digital" text,
  "first_air_date" text,
  "erp_analog_digital" text,
  "haat_analog_digital_1" text,
  "transmitter_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has a 360kw 90kw ERP?`:
```sql
                SELECT "city" FROM "main_transmitters" WHERE "erp_analog_digital"='360kw 90kw';
```
## Task
Generate a SQL query to answer the following question:
`What was the series standing for games over 4?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the series standing for games over 4?`:
```sql
                SELECT "series" FROM "playoffs" WHERE "game">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the game number held on May 20?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game number held on May 20?`:
```sql
                SELECT AVG("game") FROM "playoffs" WHERE "date"='may 20';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when the Indians ended up with a record of 55-51?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game when the Indians ended up with a record of 55-51?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='55-51';
```
## Task
Generate a SQL query to answer the following question:
`On which date did the Indians have a record of 67-58`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date did the Indians have a record of 67-58`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='67-58';
```
## Task
Generate a SQL query to answer the following question:
`Which Work has a Result of nominated, and an Award of contigo award, and a Year smaller than 2002?`

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

CREATE TABLE "awards_and_nominations" (
  "award" text,
  "year" real,
  "category" text,
  "work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Work has a Result of nominated, and an Award of contigo award, and a Year smaller than 2002?`:
```sql
                SELECT "work" FROM "awards_and_nominations" WHERE "result"='nominated' AND "award"='contigo award' AND "year"<2002;
```
## Task
Generate a SQL query to answer the following question:
`How many years have an Award of press award?`

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

CREATE TABLE "awards_and_nominations" (
  "award" text,
  "year" real,
  "category" text,
  "work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years have an Award of press award?`:
```sql
                SELECT COUNT("year") FROM "awards_and_nominations" WHERE "award"='press award';
```
## Task
Generate a SQL query to answer the following question:
`Which Award has a Year smaller than 2004, and a Work of the clone, and a Result of won, and a Category of favourite actress?`

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

CREATE TABLE "awards_and_nominations" (
  "award" text,
  "year" real,
  "category" text,
  "work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Award has a Year smaller than 2004, and a Work of the clone, and a Result of won, and a Category of favourite actress?`:
```sql
                SELECT "award" FROM "awards_and_nominations" WHERE "year"<2004 AND "work"='the clone' AND "result"='won' AND "category"='favourite actress';
```
## Task
Generate a SQL query to answer the following question:
`Which Year is the highest one that has a Work of the clone, and an Award of contigo award?`

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

CREATE TABLE "awards_and_nominations" (
  "award" text,
  "year" real,
  "category" text,
  "work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year is the highest one that has a Work of the clone, and an Award of contigo award?`:
```sql
                SELECT MAX("year") FROM "awards_and_nominations" WHERE "work"='the clone' AND "award"='contigo award';
```
## Task
Generate a SQL query to answer the following question:
`With the Destination of Jupiter and the Closest approach of 4 February 2004, what is the Time elapsed?`

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

CREATE TABLE "1990s" (
  "spacecraft" text,
  "destination" text,
  "launched" text,
  "closest_approach" text,
  "time_elapsed" text
);
### SQL
Given the database schema, here is the SQL query that answers `With the Destination of Jupiter and the Closest approach of 4 February 2004, what is the Time elapsed?`:
```sql
                SELECT "time_elapsed" FROM "1990s" WHERE "destination"='jupiter' AND "closest_approach"='4 february 2004';
```
## Task
Generate a SQL query to answer the following question:
`What Time elapsed has both the Launched of 15 October 1997 and the Closest approach of 24 June 1999?`

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

CREATE TABLE "1990s" (
  "spacecraft" text,
  "destination" text,
  "launched" text,
  "closest_approach" text,
  "time_elapsed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Time elapsed has both the Launched of 15 October 1997 and the Closest approach of 24 June 1999?`:
```sql
                SELECT "time_elapsed" FROM "1990s" WHERE "launched"='15 october 1997' AND "closest_approach"='24 june 1999';
```
## Task
Generate a SQL query to answer the following question:
`What Time elapsed has 14 February 2011 as the Closest approach?`

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

CREATE TABLE "1990s" (
  "spacecraft" text,
  "destination" text,
  "launched" text,
  "closest_approach" text,
  "time_elapsed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Time elapsed has 14 February 2011 as the Closest approach?`:
```sql
                SELECT "time_elapsed" FROM "1990s" WHERE "closest_approach"='14 february 2011';
```
## Task
Generate a SQL query to answer the following question:
`What Launched has Time elapsed of 1991 days (5 yr, 5 mo, 12 d)?`

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

CREATE TABLE "1990s" (
  "spacecraft" text,
  "destination" text,
  "launched" text,
  "closest_approach" text,
  "time_elapsed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Launched has Time elapsed of 1991 days (5 yr, 5 mo, 12 d)?`:
```sql
                SELECT "launched" FROM "1990s" WHERE "time_elapsed"='1991 days (5 yr, 5 mo, 12 d)';
```
## Task
Generate a SQL query to answer the following question:
`With a Launched of 3 July 1998 what is the Closest approach?`

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

CREATE TABLE "1990s" (
  "spacecraft" text,
  "destination" text,
  "launched" text,
  "closest_approach" text,
  "time_elapsed" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a Launched of 3 July 1998 what is the Closest approach?`:
```sql
                SELECT "closest_approach" FROM "1990s" WHERE "launched"='3 july 1998';
```
## Task
Generate a SQL query to answer the following question:
`What Launched has both a Spacecraft of Ulysses and 491 days (1 yr, 4 mo, 3 d) as Time elapsed?`

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

CREATE TABLE "1990s" (
  "spacecraft" text,
  "destination" text,
  "launched" text,
  "closest_approach" text,
  "time_elapsed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Launched has both a Spacecraft of Ulysses and 491 days (1 yr, 4 mo, 3 d) as Time elapsed?`:
```sql
                SELECT "launched" FROM "1990s" WHERE "spacecraft"='ulysses' AND "time_elapsed"='491 days (1 yr, 4 mo, 3 d)';
```
## Task
Generate a SQL query to answer the following question:
`What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%?`

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

CREATE TABLE "republican_primary" (
  "poll_source" text,
  "dates_administered" text,
  "john_oxendine" text,
  "karen_handel" text,
  "nathan_deal" text,
  "eric_johnson" text,
  "ray_mc_berry" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%?`:
```sql
                SELECT "karen_handel" FROM "republican_primary" WHERE "eric_johnson"='13%' AND "undecided"='22%';
```
## Task
Generate a SQL query to answer the following question:
`In what poll is Nathan Deal at 13% and John Oxendine at 28%?`

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

CREATE TABLE "republican_primary" (
  "poll_source" text,
  "dates_administered" text,
  "john_oxendine" text,
  "karen_handel" text,
  "nathan_deal" text,
  "eric_johnson" text,
  "ray_mc_berry" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what poll is Nathan Deal at 13% and John Oxendine at 28%?`:
```sql
                SELECT "poll_source" FROM "republican_primary" WHERE "nathan_deal"='13%' AND "john_oxendine"='28%';
```
## Task
Generate a SQL query to answer the following question:
`What is Eric Johnson at in the poll where Karen Handel is at 12%?`

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

CREATE TABLE "republican_primary" (
  "poll_source" text,
  "dates_administered" text,
  "john_oxendine" text,
  "karen_handel" text,
  "nathan_deal" text,
  "eric_johnson" text,
  "ray_mc_berry" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Eric Johnson at in the poll where Karen Handel is at 12%?`:
```sql
                SELECT "eric_johnson" FROM "republican_primary" WHERE "karen_handel"='12%';
```
## Task
Generate a SQL query to answer the following question:
`In what poll is John Oxendine at 32%?`

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

CREATE TABLE "republican_primary" (
  "poll_source" text,
  "dates_administered" text,
  "john_oxendine" text,
  "karen_handel" text,
  "nathan_deal" text,
  "eric_johnson" text,
  "ray_mc_berry" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what poll is John Oxendine at 32%?`:
```sql
                SELECT "poll_source" FROM "republican_primary" WHERE "john_oxendine"='32%';
```
## Task
Generate a SQL query to answer the following question:
`What is John Oxendine at in the poll where Karen Handel is at 38%?`

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

CREATE TABLE "republican_primary" (
  "poll_source" text,
  "dates_administered" text,
  "john_oxendine" text,
  "karen_handel" text,
  "nathan_deal" text,
  "eric_johnson" text,
  "ray_mc_berry" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is John Oxendine at in the poll where Karen Handel is at 38%?`:
```sql
                SELECT "john_oxendine" FROM "republican_primary" WHERE "karen_handel"='38%';
```
## Task
Generate a SQL query to answer the following question:
`What is Karen Handel polling at in the Insideradvantage poll where John Oxendine is at 15%?`

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

CREATE TABLE "republican_primary" (
  "poll_source" text,
  "dates_administered" text,
  "john_oxendine" text,
  "karen_handel" text,
  "nathan_deal" text,
  "eric_johnson" text,
  "ray_mc_berry" text,
  "undecided" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Karen Handel polling at in the Insideradvantage poll where John Oxendine is at 15%?`:
```sql
                SELECT "karen_handel" FROM "republican_primary" WHERE "poll_source"='insideradvantage' AND "john_oxendine"='15%';
```
## Task
Generate a SQL query to answer the following question:
`What was the 1991 score?`

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

CREATE TABLE "winners" (
  "year" text,
  "venue" text,
  "winner" text,
  "country" text,
  "score" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 1991 score?`:
```sql
                SELECT "score" FROM "winners" WHERE "year"='1991';
```
## Task
Generate a SQL query to answer the following question:
`Where was the 1966 competition with a winner of Gary Cowan held?`

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

CREATE TABLE "winners" (
  "year" text,
  "venue" text,
  "winner" text,
  "country" text,
  "score" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the 1966 competition with a winner of Gary Cowan held?`:
```sql
                SELECT "venue" FROM "winners" WHERE "winner"='gary cowan' AND "year"='1966';
```
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up of the competition played at Minikahda Club?`

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

CREATE TABLE "winners" (
  "year" text,
  "venue" text,
  "winner" text,
  "country" text,
  "score" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner-up of the competition played at Minikahda Club?`:
```sql
                SELECT "runner_up" FROM "winners" WHERE "venue"='minikahda club';
```
## Task
Generate a SQL query to answer the following question:
`Which Year is the highest one that has a Next Highest Spender of aarp, and a US Cham Spending of $39,805,000, and a US Cham Rank larger than 1?`

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

CREATE TABLE "us_chamber_lobbying_2002_2012" (
  "year" real,
  "us_cham_rank" real,
  "us_cham_spending" text,
  "next_highest_spender" text,
  "next_highest_amount" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year is the highest one that has a Next Highest Spender of aarp, and a US Cham Spending of $39,805,000, and a US Cham Rank larger than 1?`:
```sql
                SELECT MAX("year") FROM "us_chamber_lobbying_2002_2012" WHERE "next_highest_spender"='aarp' AND "us_cham_spending"='$39,805,000' AND "us_cham_rank">1;
```
## Task
Generate a SQL query to answer the following question:
`Which US Cham Rank is the lowest one that has a Next Highest Spender of national assn of realtors, and a Year smaller than 2012?`

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

CREATE TABLE "us_chamber_lobbying_2002_2012" (
  "year" real,
  "us_cham_rank" real,
  "us_cham_spending" text,
  "next_highest_spender" text,
  "next_highest_amount" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which US Cham Rank is the lowest one that has a Next Highest Spender of national assn of realtors, and a Year smaller than 2012?`:
```sql
                SELECT MIN("us_cham_rank") FROM "us_chamber_lobbying_2002_2012" WHERE "next_highest_spender"='national assn of realtors' AND "year"<2012;
```
## Task
Generate a SQL query to answer the following question:
`Which Year is the lowest one that has a US Cham Rank smaller than 1?`

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

CREATE TABLE "us_chamber_lobbying_2002_2012" (
  "year" real,
  "us_cham_rank" real,
  "us_cham_spending" text,
  "next_highest_spender" text,
  "next_highest_amount" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year is the lowest one that has a US Cham Rank smaller than 1?`:
```sql
                SELECT MIN("year") FROM "us_chamber_lobbying_2002_2012" WHERE "us_cham_rank"<1;
```
## Task
Generate a SQL query to answer the following question:
`What was the Score in Final of the Eckerd Open Tournament?`

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

CREATE TABLE "women_s_doubles_111" (
  "date" text,
  "tournament_name" text,
  "location" text,
  "partner" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Score in Final of the Eckerd Open Tournament?`:
```sql
                SELECT "score_in_final" FROM "women_s_doubles_111" WHERE "tournament_name"='eckerd open';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Partner in the United Airlines Tournament (1)?`

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

CREATE TABLE "women_s_doubles_111" (
  "date" text,
  "tournament_name" text,
  "location" text,
  "partner" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Partner in the United Airlines Tournament (1)?`:
```sql
                SELECT "partner" FROM "women_s_doubles_111" WHERE "tournament_name"='united airlines tournament (1)';
```
## Task
Generate a SQL query to answer the following question:
`What was the Score in Final on February 19, 1989?`

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

CREATE TABLE "women_s_doubles_111" (
  "date" text,
  "tournament_name" text,
  "location" text,
  "partner" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Score in Final on February 19, 1989?`:
```sql
                SELECT "score_in_final" FROM "women_s_doubles_111" WHERE "date"='february 19, 1989';
```
## Task
Generate a SQL query to answer the following question:
`What are the Points when the Place is 9?`

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

CREATE TABLE "festivali_i_k_ng_s_46" (
  "draw" real,
  "singer" text,
  "song" text,
  "points" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Points when the Place is 9?`:
```sql
                SELECT "points" FROM "festivali_i_k_ng_s_46" WHERE "place"=9;
```
## Task
Generate a SQL query to answer the following question:
`What is the total for the place when the singer is Mariza Ikonomi when points are larger than 20?`

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

CREATE TABLE "festivali_i_k_ng_s_46" (
  "draw" real,
  "singer" text,
  "song" text,
  "points" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for the place when the singer is Mariza Ikonomi when points are larger than 20?`:
```sql
                SELECT COUNT("place") FROM "festivali_i_k_ng_s_46" WHERE "singer"='mariza ikonomi' AND "points">20;
```
## Task
Generate a SQL query to answer the following question:
`What is the average total TCs of the season where the strongest storm was Zoe and the season was totals?`

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

CREATE TABLE "2000s" (
  "season" text,
  "total_td_s" real,
  "total_tc_s" real,
  "total_stc_s" real,
  "strongest_storm" text,
  "deaths" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average total TCs of the season where the strongest storm was Zoe and the season was totals?`:
```sql
                SELECT AVG("total_tc_s") FROM "2000s" WHERE "strongest_storm"='zoe' AND "season"='totals';
```
## Task
Generate a SQL query to answer the following question:
`With a Suited Match of 13:1, what is the Double Non-Suited Match?`

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

CREATE TABLE "match_the_dealer" (
  "number_of_decks" real,
  "non_suited_match" text,
  "double_non_suited_match" text,
  "suited_match" text,
  "suited_non_suited_match" text,
  "double_suited_match" text,
  "house_edge" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a Suited Match of 13:1, what is the Double Non-Suited Match?`:
```sql
                SELECT "double_non_suited_match" FROM "match_the_dealer" WHERE "suited_match"='13:1';
```
## Task
Generate a SQL query to answer the following question:
`What's the Suited Match with a 2.99% House Edge?`

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

CREATE TABLE "match_the_dealer" (
  "number_of_decks" real,
  "non_suited_match" text,
  "double_non_suited_match" text,
  "suited_match" text,
  "suited_non_suited_match" text,
  "double_suited_match" text,
  "house_edge" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Suited Match with a 2.99% House Edge?`:
```sql
                SELECT "suited_match" FROM "match_the_dealer" WHERE "house_edge"='2.99%';
```
## Task
Generate a SQL query to answer the following question:
`With a house edge of 3.53% and a Non-Suited Matched of 3:1, name the Double Non-Suited Match.`

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

CREATE TABLE "match_the_dealer" (
  "number_of_decks" real,
  "non_suited_match" text,
  "double_non_suited_match" text,
  "suited_match" text,
  "suited_non_suited_match" text,
  "double_suited_match" text,
  "house_edge" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a house edge of 3.53% and a Non-Suited Matched of 3:1, name the Double Non-Suited Match.`:
```sql
                SELECT "double_non_suited_match" FROM "match_the_dealer" WHERE "non_suited_match"='3:1' AND "house_edge"='3.53%';
```
## Task
Generate a SQL query to answer the following question:
`Name the Non-Suited Match that has greater than 6 Number of Decks.`

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

CREATE TABLE "match_the_dealer" (
  "number_of_decks" real,
  "non_suited_match" text,
  "double_non_suited_match" text,
  "suited_match" text,
  "suited_non_suited_match" text,
  "double_suited_match" text,
  "house_edge" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Non-Suited Match that has greater than 6 Number of Decks.`:
```sql
                SELECT "non_suited_match" FROM "match_the_dealer" WHERE "number_of_decks">6;
```
## Task
Generate a SQL query to answer the following question:
`Name the Suited & Non-Suited Match with a 2.99% for House Edge.`

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

CREATE TABLE "match_the_dealer" (
  "number_of_decks" real,
  "non_suited_match" text,
  "double_non_suited_match" text,
  "suited_match" text,
  "suited_non_suited_match" text,
  "double_suited_match" text,
  "house_edge" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Suited & Non-Suited Match with a 2.99% for House Edge.`:
```sql
                SELECT "suited_non_suited_match" FROM "match_the_dealer" WHERE "house_edge"='2.99%';
```
## Task
Generate a SQL query to answer the following question:
`With a House Edge of 3.63% and a Non-Suited Match of 4:1, what is the Double Non-Suited Match?`

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

CREATE TABLE "match_the_dealer" (
  "number_of_decks" real,
  "non_suited_match" text,
  "double_non_suited_match" text,
  "suited_match" text,
  "suited_non_suited_match" text,
  "double_suited_match" text,
  "house_edge" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a House Edge of 3.63% and a Non-Suited Match of 4:1, what is the Double Non-Suited Match?`:
```sql
                SELECT "double_non_suited_match" FROM "match_the_dealer" WHERE "non_suited_match"='4:1' AND "house_edge"='3.63%';
```
## Task
Generate a SQL query to answer the following question:
`Wins smaller than 0 had what sum of year?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Wins smaller than 0 had what sum of year?`:
```sql
                SELECT SUM("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`Class of 125cc, and a Year smaller than 1966 had what lowest wins?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Class of 125cc, and a Year smaller than 1966 had what lowest wins?`:
```sql
                SELECT MIN("wins") FROM "motorcycle_grand_prix_results" WHERE "class"='125cc' AND "year"<1966;
```
## Task
Generate a SQL query to answer the following question:
`Class of 500cc, and a Wins smaller than 0 had what average year?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Class of 500cc, and a Wins smaller than 0 had what average year?`:
```sql
                SELECT AVG("year") FROM "motorcycle_grand_prix_results" WHERE "class"='500cc' AND "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What are the highest laps Kazuki Nakajima did with a Grid larger than 19?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the highest laps Kazuki Nakajima did with a Grid larger than 19?`:
```sql
                SELECT MAX("laps") FROM "race" WHERE "driver"='kazuki nakajima' AND "grid">19;
```
## Task
Generate a SQL query to answer the following question:
`Which Constructor has a Grid of 17?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Constructor has a Grid of 17?`:
```sql
                SELECT "constructor" FROM "race" WHERE "grid"=17;
```
## Task
Generate a SQL query to answer the following question:
`Who drives a BMW Sauber with a Grid larger than 2 and a Time/Retired of +15.037?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who drives a BMW Sauber with a Grid larger than 2 and a Time/Retired of +15.037?`:
```sql
                SELECT "driver" FROM "race" WHERE "grid">2 AND "constructor"='bmw sauber' AND "time_retired"='+15.037';
```
## Task
Generate a SQL query to answer the following question:
`Participation as of actor, film editor has what average year?`

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

CREATE TABLE "other_film_projects" (
  "year" real,
  "english_title" text,
  "original_title" text,
  "country" text,
  "length" text,
  "participation_as" text
);
### SQL
Given the database schema, here is the SQL query that answers `Participation as of actor, film editor has what average year?`:
```sql
                SELECT AVG("year") FROM "other_film_projects" WHERE "participation_as"='actor, film editor';
```
## Task
Generate a SQL query to answer the following question:
`What were the odds for the finish of 1/4h?`

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

CREATE TABLE "race_history" (
  "date" text,
  "track" text,
  "race" text,
  "purse_hi" text,
  "finish" text,
  "time" text,
  "last_1_4" real,
  "odds" text,
  "driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the odds for the finish of 1/4h?`:
```sql
                SELECT "odds" FROM "race_history" WHERE "finish"='1/4h';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest last quarter with a time of 1:53.2 and odds of *1.30?`

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

CREATE TABLE "race_history" (
  "date" text,
  "track" text,
  "race" text,
  "purse_hi" text,
  "finish" text,
  "time" text,
  "last_1_4" real,
  "odds" text,
  "driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest last quarter with a time of 1:53.2 and odds of *1.30?`:
```sql
                SELECT MIN("last_1_4") FROM "race_history" WHERE "time"='1:53.2' AND "odds"='*1.30';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of Gold when the total is 11 with more than 2 silver?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of Gold when the total is 11 with more than 2 silver?`:
```sql
                SELECT AVG("gold") FROM "medal_table" WHERE "total"=11 AND "silver">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the total rank with more than 0 silver and less than 2 medals total?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total rank with more than 0 silver and less than 2 medals total?`:
```sql
                SELECT COUNT("rank") FROM "medal_table" WHERE "total"<2 AND "silver">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the value of bronze with less than 2 in total?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value of bronze with less than 2 in total?`:
```sql
                SELECT "bronze" FROM "medal_table" WHERE "total"<2;
```
## Task
Generate a SQL query to answer the following question:
`What number of rank has more than 2 medals in total with less than 4 bronze?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What number of rank has more than 2 medals in total with less than 4 bronze?`:
```sql
                SELECT COUNT("rank") FROM "medal_table" WHERE "total">2 AND "bronze"<4;
```
## Task
Generate a SQL query to answer the following question:
`what is a building that is proposed and will have 32 floors?`

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

CREATE TABLE "approved_and_proposed" (
  "rank" real,
  "building" text,
  "city" text,
  "height_m_ft" text,
  "floors" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is a building that is proposed and will have 32 floors?`:
```sql
                SELECT "building" FROM "approved_and_proposed" WHERE "status"='proposed' AND "floors"=32;
```