cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the time in Romania that has a lane larger than 4?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time in Romania that has a lane larger than 4?`:
```sql
                SELECT "time" FROM "heats" WHERE "lane">4 AND "nationality"='romania';
```
## Task
Generate a SQL query to answer the following question:
`Jin Hao had what amount of heat?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Jin Hao had what amount of heat?`:
```sql
                SELECT "heat" FROM "heats" WHERE "name"='jin hao';
```
## Task
Generate a SQL query to answer the following question:
`At time 15:29.69 what was the heat?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `At time 15:29.69 what was the heat?`:
```sql
                SELECT "heat" FROM "heats" WHERE "time"='15:29.69';
```
## Task
Generate a SQL query to answer the following question:
`What is the class of the team when less than 6 laps were completed?`

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

CREATE TABLE "complete_24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "class" text,
  "laps" real,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class of the team when less than 6 laps were completed?`:
```sql
                SELECT "class" FROM "complete_24_hours_of_le_mans_results" WHERE "laps"<6;
```
## Task
Generate a SQL query to answer the following question:
`What is the year when Scuderia Lancia Corse competed?`

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

CREATE TABLE "complete_24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "class" text,
  "laps" real,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year when Scuderia Lancia Corse competed?`:
```sql
                SELECT COUNT("year") FROM "complete_24_hours_of_le_mans_results" WHERE "team"='scuderia lancia corse';
```
## Task
Generate a SQL query to answer the following question:
`What was the position of the teams before 1973?`

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

CREATE TABLE "complete_24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "class" text,
  "laps" real,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position of the teams before 1973?`:
```sql
                SELECT "pos" FROM "complete_24_hours_of_le_mans_results" WHERE "year"<1973;
```
## Task
Generate a SQL query to answer the following question:
`What is the laid down date of Kaki?`

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

CREATE TABLE "list_of_ships" (
  "kanji" text,
  "name" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the laid down date of Kaki?`:
```sql
                SELECT "laid_down" FROM "list_of_ships" WHERE "name"='kaki';
```
## Task
Generate a SQL query to answer the following question:
`What is the launch date of 栗?`

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

CREATE TABLE "list_of_ships" (
  "kanji" text,
  "name" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the launch date of 栗?`:
```sql
                SELECT "launched" FROM "list_of_ships" WHERE "kanji"='栗';
```
## Task
Generate a SQL query to answer the following question:
`What is the completed date of 蓬?`

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

CREATE TABLE "list_of_ships" (
  "kanji" text,
  "name" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the completed date of 蓬?`:
```sql
                SELECT "completed" FROM "list_of_ships" WHERE "kanji"='蓬';
```
## Task
Generate a SQL query to answer the following question:
`Which catalog was published on December 19, 2001?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which catalog was published on December 19, 2001?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "date"='december 19, 2001';
```
## Task
Generate a SQL query to answer the following question:
`What is the label for October 21, 1981?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the label for October 21, 1981?`:
```sql
                SELECT "label" FROM "release_history" WHERE "date"='october 21, 1981';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for Catalog Alca-9201?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for Catalog Alca-9201?`:
```sql
                SELECT "date" FROM "release_history" WHERE "catalog"='alca-9201';
```
## Task
Generate a SQL query to answer the following question:
`What is the format for July 27, 1994?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the format for July 27, 1994?`:
```sql
                SELECT "format" FROM "release_history" WHERE "date"='july 27, 1994';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the label Alfa records, a CD format, and an alca-9201 catalog?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the label Alfa records, a CD format, and an alca-9201 catalog?`:
```sql
                SELECT "date" FROM "release_history" WHERE "label"='alfa records' AND "format"='cd' AND "catalog"='alca-9201';
```
## Task
Generate a SQL query to answer the following question:
`What catalog has the CD format?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What catalog has the CD format?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "format"='cd';
```
## Task
Generate a SQL query to answer the following question:
`Which nationaly is ranked greater than 1, with a time of 59.75?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which nationaly is ranked greater than 1, with a time of 59.75?`:
```sql
                SELECT "nationality" FROM "semifinal_1" WHERE "rank">1 AND "time"='59.75';
```
## Task
Generate a SQL query to answer the following question:
`Which france nationality has a lane larger than 3?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which france nationality has a lane larger than 3?`:
```sql
                SELECT "name" FROM "semifinal_1" WHERE "lane">3 AND "nationality"='france';
```
## Task
Generate a SQL query to answer the following question:
`What's the total rank of the lane smaller than 8 with a time of 59.80?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total rank of the lane smaller than 8 with a time of 59.80?`:
```sql
                SELECT SUM("rank") FROM "semifinal_1" WHERE "time"='59.80' AND "lane"<8;
```
## Task
Generate a SQL query to answer the following question:
`What's the top rank that's lane is smaller than 1?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the top rank that's lane is smaller than 1?`:
```sql
                SELECT MAX("rank") FROM "semifinal_1" WHERE "lane"<1;
```
## Task
Generate a SQL query to answer the following question:
`What year did deputy prime minister Mariano Rajoy Brey take office?`

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

CREATE TABLE "list_of_deputy_prime_ministers_of_spain" (
  "deputy_prime_minister" text,
  "took_office" real,
  "left_office" text,
  "prime_minister" text,
  "term" text,
  "party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did deputy prime minister Mariano Rajoy Brey take office?`:
```sql
                SELECT SUM("took_office") FROM "list_of_deputy_prime_ministers_of_spain" WHERE "deputy_prime_minister"='mariano rajoy brey';
```
## Task
Generate a SQL query to answer the following question:
`Which deputy prime minister left office in 2004 and was in the 7th legislature?`

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

CREATE TABLE "list_of_deputy_prime_ministers_of_spain" (
  "deputy_prime_minister" text,
  "took_office" real,
  "left_office" text,
  "prime_minister" text,
  "term" text,
  "party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which deputy prime minister left office in 2004 and was in the 7th legislature?`:
```sql
                SELECT "deputy_prime_minister" FROM "list_of_deputy_prime_ministers_of_spain" WHERE "term"='7th legislature' AND "left_office"='2004';
```
## Task
Generate a SQL query to answer the following question:
`Which deputy prime minister left office in 1981?`

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

CREATE TABLE "list_of_deputy_prime_ministers_of_spain" (
  "deputy_prime_minister" text,
  "took_office" real,
  "left_office" text,
  "prime_minister" text,
  "term" text,
  "party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which deputy prime minister left office in 1981?`:
```sql
                SELECT "deputy_prime_minister" FROM "list_of_deputy_prime_ministers_of_spain" WHERE "left_office"='1981';
```
## Task
Generate a SQL query to answer the following question:
`How many points did Connaught Type A chassis earn on average before 1955?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did Connaught Type A chassis earn on average before 1955?`:
```sql
                SELECT AVG("points") FROM "complete_formula_one_world_championship_" WHERE "year"<1955 AND "chassis"='connaught type a';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest points with 6 draws and lower than rank 10?`

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

CREATE TABLE "participating_countries" (
  "draw" real,
  "competing_dancers" text,
  "dance_styles" text,
  "rank" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest points with 6 draws and lower than rank 10?`:
```sql
                SELECT MIN("points") FROM "participating_countries" WHERE "draw"=6 AND "rank">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest draw with rank 4?`

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

CREATE TABLE "participating_countries" (
  "draw" real,
  "competing_dancers" text,
  "dance_styles" text,
  "rank" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest draw with rank 4?`:
```sql
                SELECT MIN("draw") FROM "participating_countries" WHERE "rank"=4;
```
## Task
Generate a SQL query to answer the following question:
`How many draws has lower than rank 10 in rumba/cha-cha/jazz dance?`

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

CREATE TABLE "participating_countries" (
  "draw" real,
  "competing_dancers" text,
  "dance_styles" text,
  "rank" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many draws has lower than rank 10 in rumba/cha-cha/jazz dance?`:
```sql
                SELECT COUNT("draw") FROM "participating_countries" WHERE "rank"<10 AND "dance_styles"='rumba/cha-cha/jazz dance';
```
## Task
Generate a SQL query to answer the following question:
`How many draws have rumba/tango dance styles?`

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

CREATE TABLE "participating_countries" (
  "draw" real,
  "competing_dancers" text,
  "dance_styles" text,
  "rank" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many draws have rumba/tango dance styles?`:
```sql
                SELECT COUNT("draw") FROM "participating_countries" WHERE "dance_styles"='rumba/tango';
```
## Task
Generate a SQL query to answer the following question:
`What's the sum of the totals for Russia with more than 1 gold and less than 10 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's the sum of the totals for Russia with more than 1 gold and less than 10 bronze?`:
```sql
                SELECT SUM("total") FROM "medal_table" WHERE "gold">1 AND "nation"='russia' AND "bronze"<10;
```
## Task
Generate a SQL query to answer the following question:
`what tournament happened on march 27, 2006?`

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

CREATE TABLE "singles_wins_14" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what tournament happened on march 27, 2006?`:
```sql
                SELECT "tournament" FROM "singles_wins_14" WHERE "date"='march 27, 2006';
```
## Task
Generate a SQL query to answer the following question:
`what was the score when scoville jenkins was the opponent?`

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

CREATE TABLE "singles_wins_14" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the score when scoville jenkins was the opponent?`:
```sql
                SELECT "score" FROM "singles_wins_14" WHERE "opponent"='scoville jenkins';
```
## Task
Generate a SQL query to answer the following question:
`what was the opponent on november 14, 2005?`

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

CREATE TABLE "singles_wins_14" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the opponent on november 14, 2005?`:
```sql
                SELECT "opponent" FROM "singles_wins_14" WHERE "date"='november 14, 2005';
```
## Task
Generate a SQL query to answer the following question:
`what tournament happened on may 2, 2011?`

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

CREATE TABLE "singles_wins_14" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what tournament happened on may 2, 2011?`:
```sql
                SELECT "tournament" FROM "singles_wins_14" WHERE "date"='may 2, 2011';
```
## Task
Generate a SQL query to answer the following question:
`what tournament had sam querrey as the opponent?`

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

CREATE TABLE "singles_wins_14" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what tournament had sam querrey as the opponent?`:
```sql
                SELECT "tournament" FROM "singles_wins_14" WHERE "opponent"='sam querrey';
```
## Task
Generate a SQL query to answer the following question:
`what tournament was on a hard surface and saw jacob adaktusson as the opponent?`

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

CREATE TABLE "singles_wins_14" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what tournament was on a hard surface and saw jacob adaktusson as the opponent?`:
```sql
                SELECT "tournament" FROM "singles_wins_14" WHERE "surface"='hard' AND "opponent"='jacob adaktusson';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on September 17, 1995?`

### 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,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on September 17, 1995?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='september 17, 1995';
```
## Task
Generate a SQL query to answer the following question:
`Which week had an attendance of 51,265?`

### 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,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week had an attendance of 51,265?`:
```sql
                SELECT "week" FROM "schedule" WHERE "attendance"='51,265';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on December 17, 1995?`

### 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,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on December 17, 1995?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='december 17, 1995';
```
## Task
Generate a SQL query to answer the following question:
`Which record has 4:14 as the time?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which record has 4:14 as the time?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='4:14';
```
## Task
Generate a SQL query to answer the following question:
`Which record has tko (strikes) as the method, and daan kooiman as the opponent?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which record has tko (strikes) as the method, and daan kooiman as the opponent?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "method"='tko (strikes)' AND "opponent"='daan kooiman';
```
## Task
Generate a SQL query to answer the following question:
`Which round has pain and glory 2006 as the event?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round has pain and glory 2006 as the event?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "event"='pain and glory 2006';
```
## Task
Generate a SQL query to answer the following question:
`Which record has john flemming as the opponent?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which record has john flemming as the opponent?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='john flemming';
```
## Task
Generate a SQL query to answer the following question:
`Which record has 5:00 as the time, jess liaudin as the opponent for the location of england?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which record has 5:00 as the time, jess liaudin as the opponent for the location of england?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "opponent"='jess liaudin' AND "location"='england';
```
## Task
Generate a SQL query to answer the following question:
`Name the date with attendance more than 19,204 and result of l and visitor of san francisco 49ers and record of 2-8-0`

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

CREATE TABLE "schedule" (
  "date" text,
  "visitor" text,
  "result" text,
  "score" text,
  "home" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date with attendance more than 19,204 and result of l and visitor of san francisco 49ers and record of 2-8-0`:
```sql
                SELECT "date" FROM "schedule" WHERE "attendance">'19,204' AND "result"='l' AND "visitor"='san francisco 49ers' AND "record"='2-8-0';
```
## Task
Generate a SQL query to answer the following question:
`Name the score for home of green bay packers`

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

CREATE TABLE "schedule" (
  "date" text,
  "visitor" text,
  "result" text,
  "score" text,
  "home" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for home of green bay packers`:
```sql
                SELECT "score" FROM "schedule" WHERE "home"='green bay packers';
```
## Task
Generate a SQL query to answer the following question:
`Name the home for 21-17`

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

CREATE TABLE "schedule" (
  "date" text,
  "visitor" text,
  "result" text,
  "score" text,
  "home" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the home for 21-17`:
```sql
                SELECT "home" FROM "schedule" WHERE "score"='21-17';
```
## Task
Generate a SQL query to answer the following question:
`What engine did Scuderia Ambrosiana with fewer than 4 points have?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What engine did Scuderia Ambrosiana with fewer than 4 points have?`:
```sql
                SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "entrant"='scuderia ambrosiana' AND "points"<4;
```
## Task
Generate a SQL query to answer the following question:
`What chassis had fewer than 0 points in a year before 1954?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What chassis had fewer than 0 points in a year before 1954?`:
```sql
                SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "year"<1954 AND "points"=0;
```
## Task
Generate a SQL query to answer the following question:
`What chassis had an entrant of G.A. Vandervell?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What chassis had an entrant of G.A. Vandervell?`:
```sql
                SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "entrant"='g.a. vandervell';
```
## Task
Generate a SQL query to answer the following question:
`How many people were in attendance on may 2?`

### 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 `How many people were in attendance on may 2?`:
```sql
                SELECT MIN("attendance") FROM "game_log" WHERE "date"='may 2';
```
## Task
Generate a SQL query to answer the following question:
`How many people were in attendance on may 17?`

### 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 `How many people were in attendance on may 17?`:
```sql
                SELECT MIN("attendance") FROM "game_log" WHERE "date"='may 17';
```
## Task
Generate a SQL query to answer the following question:
`How many weeks did the single that entered the charts 14 september 2002 stay on the charts ?`

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

CREATE TABLE "singles" (
  "title" text,
  "entered_chart_uk" text,
  "peak_position_uk" real,
  "weeks_on_chart_uk" real,
  "sent_to_c_beebies_album" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks did the single that entered the charts 14 september 2002 stay on the charts ?`:
```sql
                SELECT COUNT("weeks_on_chart_uk") FROM "singles" WHERE "entered_chart_uk"='14 september 2002';
```
## Task
Generate a SQL query to answer the following question:
`Which single was on the Charts for 23 weeks ?`

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

CREATE TABLE "singles" (
  "title" text,
  "entered_chart_uk" text,
  "peak_position_uk" real,
  "weeks_on_chart_uk" real,
  "sent_to_c_beebies_album" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which single was on the Charts for 23 weeks ?`:
```sql
                SELECT "title" FROM "singles" WHERE "weeks_on_chart_uk"=23;
```
## Task
Generate a SQL query to answer the following question:
`How many ECTS credit points occur with Master in Management?`

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

CREATE TABLE "postgraduate" (
  "program" text,
  "degree" text,
  "teaching_language" text,
  "duration_years" real,
  "full_time_part_time" text,
  "ects_credit_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many ECTS credit points occur with Master in Management?`:
```sql
                SELECT COUNT("ects_credit_points") FROM "postgraduate" WHERE "program"='master in management';
```
## Task
Generate a SQL query to answer the following question:
`What is the teaching language for Master of Quantitative Finance?`

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

CREATE TABLE "postgraduate" (
  "program" text,
  "degree" text,
  "teaching_language" text,
  "duration_years" real,
  "full_time_part_time" text,
  "ects_credit_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the teaching language for Master of Quantitative Finance?`:
```sql
                SELECT "teaching_language" FROM "postgraduate" WHERE "program"='master of quantitative finance';
```
## Task
Generate a SQL query to answer the following question:
`Which program has 3.5 years?`

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

CREATE TABLE "postgraduate" (
  "program" text,
  "degree" text,
  "teaching_language" text,
  "duration_years" real,
  "full_time_part_time" text,
  "ects_credit_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which program has 3.5 years?`:
```sql
                SELECT "program" FROM "postgraduate" WHERE "duration_years"=3.5;
```
## Task
Generate a SQL query to answer the following question:
`What is the teaching language for a less than 2 year duration and less than 65 ECTS credit points?`

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

CREATE TABLE "postgraduate" (
  "program" text,
  "degree" text,
  "teaching_language" text,
  "duration_years" real,
  "full_time_part_time" text,
  "ects_credit_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the teaching language for a less than 2 year duration and less than 65 ECTS credit points?`:
```sql
                SELECT "teaching_language" FROM "postgraduate" WHERE "duration_years"<2 AND "ects_credit_points"<65;
```
## Task
Generate a SQL query to answer the following question:
`What engine has more than 0 pts?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What engine has more than 0 pts?`:
```sql
                SELECT "engine" FROM "complete_formula_one_results" WHERE "pts">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average pots of Alfa Romeo v12 after 1983?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average pots of Alfa Romeo v12 after 1983?`:
```sql
                SELECT AVG("pts") FROM "complete_formula_one_results" WHERE "engine"='alfa romeo v12' AND "year">1983;
```
## Task
Generate a SQL query to answer the following question:
`What year did dave f. mctaggart win the men's singles and robert b. williams ethel marshall win the mixed doubles?`

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

CREATE TABLE "canadian_national_championships_and_cana" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did dave f. mctaggart win the men's singles and robert b. williams ethel marshall win the mixed doubles?`:
```sql
                SELECT MAX("year") FROM "canadian_national_championships_and_cana" WHERE "men_s_singles"='dave f. mctaggart' AND "mixed_doubles"='robert b. williams ethel marshall';
```
## Task
Generate a SQL query to answer the following question:
`Who won the women's singles before 1958 when dave f. mctaggart won the men's singles?`

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

CREATE TABLE "canadian_national_championships_and_cana" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the women's singles before 1958 when dave f. mctaggart won the men's singles?`:
```sql
                SELECT "women_s_singles" FROM "canadian_national_championships_and_cana" WHERE "men_s_singles"='dave f. mctaggart' AND "year"<1958;
```
## Task
Generate a SQL query to answer the following question:
`Who won the men's singles in 1958?`

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

CREATE TABLE "canadian_national_championships_and_cana" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the men's singles in 1958?`:
```sql
                SELECT "men_s_singles" FROM "canadian_national_championships_and_cana" WHERE "year"=1958;
```
## Task
Generate a SQL query to answer the following question:
`Who won the mixed doubles in 1957 when judy devlin won the women's singles?`

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

CREATE TABLE "canadian_national_championships_and_cana" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the mixed doubles in 1957 when judy devlin won the women's singles?`:
```sql
                SELECT "mixed_doubles" FROM "canadian_national_championships_and_cana" WHERE "women_s_singles"='judy devlin' AND "year"=1957;
```
## Task
Generate a SQL query to answer the following question:
`What was the total against in uefa champions league/european cup with more than 1 draw?`

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

CREATE TABLE "european_record" (
  "competition" text,
  "played" real,
  "draw" real,
  "lost" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total against in uefa champions league/european cup with more than 1 draw?`:
```sql
                SELECT SUM("against") FROM "european_record" WHERE "competition"='uefa champions league/european cup' AND "draw">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total against with 1 draw and less than 8 played?`

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

CREATE TABLE "european_record" (
  "competition" text,
  "played" real,
  "draw" real,
  "lost" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total against with 1 draw and less than 8 played?`:
```sql
                SELECT SUM("against") FROM "european_record" WHERE "draw"=1 AND "played"<8;
```
## Task
Generate a SQL query to answer the following question:
`How many times did Super Nova Racing win with a zytek engine?`

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

CREATE TABLE "champions" (
  "season" text,
  "team" text,
  "racing_team" text,
  "chassis" text,
  "engine" text,
  "tyres" text,
  "drivers" text,
  "wins" text,
  "sprints_wins" text,
  "main_wins" text,
  "poles" text,
  "fastest_laps" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did Super Nova Racing win with a zytek engine?`:
```sql
                SELECT "wins" FROM "champions" WHERE "engine"='zytek' AND "racing_team"='super nova racing';
```
## Task
Generate a SQL query to answer the following question:
`How many main wins for France?`

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

CREATE TABLE "champions" (
  "season" text,
  "team" text,
  "racing_team" text,
  "chassis" text,
  "engine" text,
  "tyres" text,
  "drivers" text,
  "wins" text,
  "sprints_wins" text,
  "main_wins" text,
  "poles" text,
  "fastest_laps" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many main wins for France?`:
```sql
                SELECT "main_wins" FROM "champions" WHERE "team"='france';
```
## Task
Generate a SQL query to answer the following question:
`How many poles does status grand prix have?`

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

CREATE TABLE "champions" (
  "season" text,
  "team" text,
  "racing_team" text,
  "chassis" text,
  "engine" text,
  "tyres" text,
  "drivers" text,
  "wins" text,
  "sprints_wins" text,
  "main_wins" text,
  "poles" text,
  "fastest_laps" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many poles does status grand prix have?`:
```sql
                SELECT "poles" FROM "champions" WHERE "racing_team"='status grand prix';
```
## Task
Generate a SQL query to answer the following question:
`Question does not make sense since there was no record of 88-74`

### 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 `Question does not make sense since there was no record of 88-74`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='88-74';
```
## Task
Generate a SQL query to answer the following question:
`What is the award type for all Lowe awards?`

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

CREATE TABLE "individual" (
  "date" text,
  "country" text,
  "name" text,
  "award" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the award type for all Lowe awards?`:
```sql
                SELECT "award" FROM "individual" WHERE "name"='lowe';
```
## Task
Generate a SQL query to answer the following question:
`Which engine(s) has a year of 1966, and a point of 42.`

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

CREATE TABLE "complete_world_championship_formula_one_" (
  "year" real,
  "chassis" text,
  "engine_s" text,
  "tyres" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which engine(s) has a year of 1966, and a point of 42.`:
```sql
                SELECT "engine_s" FROM "complete_world_championship_formula_one_" WHERE "year"=1966 AND "points"='42';
```
## Task
Generate a SQL query to answer the following question:
`What was the score against hapoel tel aviv?`

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

CREATE TABLE "pre_season" (
  "match" real,
  "date" text,
  "competition_or_tour" text,
  "ground" text,
  "opponent" text,
  "score1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score against hapoel tel aviv?`:
```sql
                SELECT "score1" FROM "pre_season" WHERE "opponent"='hapoel tel aviv';
```
## Task
Generate a SQL query to answer the following question:
`What day did they play cambridge united?`

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

CREATE TABLE "pre_season" (
  "match" real,
  "date" text,
  "competition_or_tour" text,
  "ground" text,
  "opponent" text,
  "score1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day did they play cambridge united?`:
```sql
                SELECT "date" FROM "pre_season" WHERE "opponent"='cambridge united';
```
## Task
Generate a SQL query to answer the following question:
`Where was match 8 played?`

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

CREATE TABLE "pre_season" (
  "match" real,
  "date" text,
  "competition_or_tour" text,
  "ground" text,
  "opponent" text,
  "score1" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was match 8 played?`:
```sql
                SELECT "ground" FROM "pre_season" WHERE "match"=8;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the person with a PWin% of .696?`

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

CREATE TABLE "coaches" (
  "name_b" text,
  "term_c" text,
  "games" real,
  "winpct" real,
  "p_winpct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the person with a PWin% of .696?`:
```sql
                SELECT "name_b" FROM "coaches" WHERE "p_winpct"='.696';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the game with a PWin% of —, Term [c] of 1987–1988, and Win% less than 0.506?`

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

CREATE TABLE "coaches" (
  "name_b" text,
  "term_c" text,
  "games" real,
  "winpct" real,
  "p_winpct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the game with a PWin% of —, Term [c] of 1987–1988, and Win% less than 0.506?`:
```sql
                SELECT SUM("games") FROM "coaches" WHERE "p_winpct"='—' AND "term_c"='1987–1988' AND "winpct"<0.506;
```
## Task
Generate a SQL query to answer the following question:
`What is the win% for the game 80 and a PWin% of —, and a Term [c ] of 1987–1988?`

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

CREATE TABLE "coaches" (
  "name_b" text,
  "term_c" text,
  "games" real,
  "winpct" real,
  "p_winpct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the win% for the game 80 and a PWin% of —, and a Term [c ] of 1987–1988?`:
```sql
                SELECT "winpct" FROM "coaches" WHERE "games"=80 AND "p_winpct"='—' AND "term_c"='1987–1988';
```
## Task
Generate a SQL query to answer the following question:
`What is the of games when for the term [c] of 1969 – 1973?`

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

CREATE TABLE "coaches" (
  "name_b" text,
  "term_c" text,
  "games" real,
  "winpct" real,
  "p_winpct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the of games when for the term [c] of 1969 – 1973?`:
```sql
                SELECT SUM("games") FROM "coaches" WHERE "term_c"='1969 – 1973';
```
## Task
Generate a SQL query to answer the following question:
`What was the method of execution on September 24, 1830?`

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

CREATE TABLE "under_u_s_jurisdiction_territorial" (
  "name" text,
  "date_of_execution" text,
  "crime" text,
  "method" text,
  "race" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the method of execution on September 24, 1830?`:
```sql
                SELECT "method" FROM "under_u_s_jurisdiction_territorial" WHERE "date_of_execution"='september 24, 1830';
```
## Task
Generate a SQL query to answer the following question:
`How was the native american, Wau-Bau-Ne-Me-Mee, executed?`

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

CREATE TABLE "under_u_s_jurisdiction_territorial" (
  "name" text,
  "date_of_execution" text,
  "crime" text,
  "method" text,
  "race" text
);
### SQL
Given the database schema, here is the SQL query that answers `How was the native american, Wau-Bau-Ne-Me-Mee, executed?`:
```sql
                SELECT "method" FROM "under_u_s_jurisdiction_territorial" WHERE "race"='native american' AND "name"='wau-bau-ne-me-mee';
```
## Task
Generate a SQL query to answer the following question:
`What was the race of the person executed on December 27, 1827?`

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

CREATE TABLE "under_u_s_jurisdiction_territorial" (
  "name" text,
  "date_of_execution" text,
  "crime" text,
  "method" text,
  "race" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the race of the person executed on December 27, 1827?`:
```sql
                SELECT "race" FROM "under_u_s_jurisdiction_territorial" WHERE "date_of_execution"='december 27, 1827';
```