cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Equestrian Time (pts) has an Athlete of omnia fakhry ( egy )?`

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

CREATE TABLE "results" (
  "athlete" text,
  "shooting_score_pts" text,
  "fencing_victories_pts" text,
  "swimming_time_pts" text,
  "equestrian_time_pts" text,
  "running_time_pts" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Equestrian Time (pts) has an Athlete of omnia fakhry ( egy )?`:
```sql
                SELECT "equestrian_time_pts" FROM "results" WHERE "athlete"='omnia fakhry ( egy )';
```
## Task
Generate a SQL query to answer the following question:
`Which Shooting Score (pts) has a Total larger than 5464 and a Athlete of heather fell ( gbr )?`

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

CREATE TABLE "results" (
  "athlete" text,
  "shooting_score_pts" text,
  "fencing_victories_pts" text,
  "swimming_time_pts" text,
  "equestrian_time_pts" text,
  "running_time_pts" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Shooting Score (pts) has a Total larger than 5464 and a Athlete of heather fell ( gbr )?`:
```sql
                SELECT "shooting_score_pts" FROM "results" WHERE "total">5464 AND "athlete"='heather fell ( gbr )';
```
## Task
Generate a SQL query to answer the following question:
`Which Fencing Victories (pts) that has a Equestrian Time (pts) of 67.88 (1144)?`

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

CREATE TABLE "results" (
  "athlete" text,
  "shooting_score_pts" text,
  "fencing_victories_pts" text,
  "swimming_time_pts" text,
  "equestrian_time_pts" text,
  "running_time_pts" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Fencing Victories (pts) that has a Equestrian Time (pts) of 67.88 (1144)?`:
```sql
                SELECT "fencing_victories_pts" FROM "results" WHERE "equestrian_time_pts"='67.88 (1144)';
```
## Task
Generate a SQL query to answer the following question:
`Which Fencing Victories (pts) has a Total of 5640?`

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

CREATE TABLE "results" (
  "athlete" text,
  "shooting_score_pts" text,
  "fencing_victories_pts" text,
  "swimming_time_pts" text,
  "equestrian_time_pts" text,
  "running_time_pts" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Fencing Victories (pts) has a Total of 5640?`:
```sql
                SELECT "fencing_victories_pts" FROM "results" WHERE "total"=5640;
```
## Task
Generate a SQL query to answer the following question:
`What position did the player from Rice College play who was picked under 15?`

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

CREATE TABLE "second_round" (
  "pick" real,
  "team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the player from Rice College play who was picked under 15?`:
```sql
                SELECT "position" FROM "second_round" WHERE "pick"<15 AND "college"='rice';
```
## Task
Generate a SQL query to answer the following question:
`What position did pick 14 play?`

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

CREATE TABLE "second_round" (
  "pick" real,
  "team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did pick 14 play?`:
```sql
                SELECT "position" FROM "second_round" WHERE "pick"=14;
```
## Task
Generate a SQL query to answer the following question:
`What pick number did the linebacker from the denver broncos get?`

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

CREATE TABLE "second_round" (
  "pick" real,
  "team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pick number did the linebacker from the denver broncos get?`:
```sql
                SELECT "pick" FROM "second_round" WHERE "position"='linebacker' AND "team"='denver broncos';
```
## Task
Generate a SQL query to answer the following question:
`What college was the quarterback from?`

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

CREATE TABLE "second_round" (
  "pick" real,
  "team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college was the quarterback from?`:
```sql
                SELECT "college" FROM "second_round" WHERE "position"='quarterback';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number pick from san diego chargers?`

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

CREATE TABLE "second_round" (
  "pick" real,
  "team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number pick from san diego chargers?`:
```sql
                SELECT MIN("pick") FROM "second_round" WHERE "team"='san diego chargers';
```
## Task
Generate a SQL query to answer the following question:
`Which Type/code has a Torque@rpm of n·m (lb·ft) @1900–3500? Question 1`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "type_code" text,
  "power_rpm" text,
  "torque_rpm" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Type/code has a Torque@rpm of n·m (lb·ft) @1900–3500? Question 1`:
```sql
                SELECT "type_code" FROM "engines" WHERE "torque_rpm"='n·m (lb·ft) @1900–3500';
```
## Task
Generate a SQL query to answer the following question:
`Which Torque@rpm has a Power@rpm of ps (kw; hp)@6100?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "type_code" text,
  "power_rpm" text,
  "torque_rpm" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Torque@rpm has a Power@rpm of ps (kw; hp)@6100?`:
```sql
                SELECT "torque_rpm" FROM "engines" WHERE "power_rpm"='ps (kw; hp)@6100';
```
## Task
Generate a SQL query to answer the following question:
`Name Model which has a Years of 2006–2008 and a Torque@rpm of n·m (lb·ft) @1900–3500?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "type_code" text,
  "power_rpm" text,
  "torque_rpm" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name Model which has a Years of 2006–2008 and a Torque@rpm of n·m (lb·ft) @1900–3500?`:
```sql
                SELECT "model" FROM "engines" WHERE "years"='2006–2008' AND "torque_rpm"='n·m (lb·ft) @1900–3500';
```
## Task
Generate a SQL query to answer the following question:
`Which Torque@rpm has a Power@rpm of ps (kw; hp)@4800–5100?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "type_code" text,
  "power_rpm" text,
  "torque_rpm" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Torque@rpm has a Power@rpm of ps (kw; hp)@4800–5100?`:
```sql
                SELECT "torque_rpm" FROM "engines" WHERE "power_rpm"='ps (kw; hp)@4800–5100';
```
## Task
Generate a SQL query to answer the following question:
`Which Years has a Type/code of cubic centimetres (cuin) v8 ( m273 )?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "type_code" text,
  "power_rpm" text,
  "torque_rpm" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Years has a Type/code of cubic centimetres (cuin) v8 ( m273 )?`:
```sql
                SELECT "years" FROM "engines" WHERE "type_code"='cubic centimetres (cuin) v8 ( m273 )';
```
## Task
Generate a SQL query to answer the following question:
`What is the total heat number of sun yang, who has a lane less than 2?`

### 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 total heat number of sun yang, who has a lane less than 2?`:
```sql
                SELECT COUNT("heat") FROM "heats" WHERE "name"='sun yang' AND "lane"<2;
```
## Task
Generate a SQL query to answer the following question:
`Who has a time of 3:50.90?`

### 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 `Who has a time of 3:50.90?`:
```sql
                SELECT "name" FROM "heats" WHERE "time"='3:50.90';
```
## Task
Generate a SQL query to answer the following question:
`What is the time of lane 3 in heat 5?`

### 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 of lane 3 in heat 5?`:
```sql
                SELECT "time" FROM "heats" WHERE "heat"=5 AND "lane"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the heat with a time of 3:45.57 in lane 3?`

### 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 heat with a time of 3:45.57 in lane 3?`:
```sql
                SELECT "heat" FROM "heats" WHERE "lane"=3 AND "time"='3:45.57';
```
## Task
Generate a SQL query to answer the following question:
`Who are the Rowers with a Time of 6:39.49?`

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

CREATE TABLE "heat_3" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the Rowers with a Time of 6:39.49?`:
```sql
                SELECT "rowers" FROM "heat_3" WHERE "time"='6:39.49';
```
## Task
Generate a SQL query to answer the following question:
`What is the Country of the rowers with a Rank of 4?`

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

CREATE TABLE "heat_3" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Country of the rowers with a Rank of 4?`:
```sql
                SELECT "country" FROM "heat_3" WHERE "rank"=4;
```
## Task
Generate a SQL query to answer the following question:
`What counties mascot are the Red Ramblers?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What counties mascot are the Red Ramblers?`:
```sql
                SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='red ramblers';
```
## Task
Generate a SQL query to answer the following question:
`What is the IHSAA class when the county was 83 vermillion?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IHSAA class when the county was 83 vermillion?`:
```sql
                SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "county"='83 vermillion';
```
## Task
Generate a SQL query to answer the following question:
`What is the enrollment number for Rockville?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment number for Rockville?`:
```sql
                SELECT COUNT("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "location"='rockville';
```
## Task
Generate a SQL query to answer the following question:
`What is the Result of the game on October 20, 1963 with an Attendance of 60,671 or greater?`

### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result of the game on October 20, 1963 with an Attendance of 60,671 or greater?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance">'60,671' AND "date"='october 20, 1963';
```
## Task
Generate a SQL query to answer the following question:
`What is the Attendance of the game against Minnesota Vikings?`

### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance of the game against Minnesota Vikings?`:
```sql
                SELECT COUNT("attendance") FROM "schedule" WHERE "opponent"='minnesota vikings';
```
## Task
Generate a SQL query to answer the following question:
`what is the average score for søren kjeldsen?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average score for søren kjeldsen?`:
```sql
                SELECT AVG("score") FROM "first_round" WHERE "player"='søren kjeldsen';
```
## Task
Generate a SQL query to answer the following question:
`What's the against of South Warrnambool when the draw is less than 0?`

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

CREATE TABLE "1946_ladder" (
  "club" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the against of South Warrnambool when the draw is less than 0?`:
```sql
                SELECT SUM("against") FROM "1946_ladder" WHERE "club"='south warrnambool' AND "draws"<0;
```
## Task
Generate a SQL query to answer the following question:
`What's the smallest draw of Warrnambool when the against was less than 1299, more than 7 wins, and less than 2 losses?`

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

CREATE TABLE "1946_ladder" (
  "club" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest draw of Warrnambool when the against was less than 1299, more than 7 wins, and less than 2 losses?`:
```sql
                SELECT MIN("draws") FROM "1946_ladder" WHERE "against"<1299 AND "wins">7 AND "club"='warrnambool' AND "losses"<2;
```
## Task
Generate a SQL query to answer the following question:
`What's the against when the draw was more than 0 and had 13 losses?`

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

CREATE TABLE "1946_ladder" (
  "club" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the against when the draw was more than 0 and had 13 losses?`:
```sql
                SELECT COUNT("against") FROM "1946_ladder" WHERE "losses"=13 AND "draws">0;
```
## Task
Generate a SQL query to answer the following question:
`What's the against when there were more than 2 losses, more than 3 wins, and draws more than 0?`

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

CREATE TABLE "1946_ladder" (
  "club" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the against when there were more than 2 losses, more than 3 wins, and draws more than 0?`:
```sql
                SELECT AVG("against") FROM "1946_ladder" WHERE "losses">2 AND "wins">3 AND "draws">0;
```
## Task
Generate a SQL query to answer the following question:
`What's the highest amount of losses of Camperdown when the against was less than 945?`

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

CREATE TABLE "1946_ladder" (
  "club" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest amount of losses of Camperdown when the against was less than 945?`:
```sql
                SELECT MAX("losses") FROM "1946_ladder" WHERE "club"='camperdown' AND "against"<945;
```
## Task
Generate a SQL query to answer the following question:
`What is the venue later than 1983 with Men's Open of NSW and Men's 35 of QLD?`

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

CREATE TABLE "results_of_the_national_championships_19" (
  "year" real,
  "venue" text,
  "men_s_open" text,
  "women_s_open" text,
  "men_s_35s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue later than 1983 with Men's Open of NSW and Men's 35 of QLD?`:
```sql
                SELECT "venue" FROM "results_of_the_national_championships_19" WHERE "men_s_open"='nsw' AND "men_s_35s"='qld' AND "year">1983;
```
## Task
Generate a SQL query to answer the following question:
`What is the venue earlier than 1995 with Men's Open of QLD and Men's 35 of QLD and Woman's Open of QLD?`

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

CREATE TABLE "results_of_the_national_championships_19" (
  "year" real,
  "venue" text,
  "men_s_open" text,
  "women_s_open" text,
  "men_s_35s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue earlier than 1995 with Men's Open of QLD and Men's 35 of QLD and Woman's Open of QLD?`:
```sql
                SELECT "venue" FROM "results_of_the_national_championships_19" WHERE "men_s_35s"='qld' AND "men_s_open"='qld' AND "year"<1995 AND "women_s_open"='qld';
```
## Task
Generate a SQL query to answer the following question:
`What is the Men's 35 in year before 1990 when Men's Open is NSW and the venue is Sydney?`

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

CREATE TABLE "results_of_the_national_championships_19" (
  "year" real,
  "venue" text,
  "men_s_open" text,
  "women_s_open" text,
  "men_s_35s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Men's 35 in year before 1990 when Men's Open is NSW and the venue is Sydney?`:
```sql
                SELECT "men_s_35s" FROM "results_of_the_national_championships_19" WHERE "year"<1990 AND "men_s_open"='nsw' AND "venue"='sydney';
```
## Task
Generate a SQL query to answer the following question:
`In what year was the venue Gold Coast and the Men's 35s NSW?`

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

CREATE TABLE "results_of_the_national_championships_19" (
  "year" real,
  "venue" text,
  "men_s_open" text,
  "women_s_open" text,
  "men_s_35s" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was the venue Gold Coast and the Men's 35s NSW?`:
```sql
                SELECT SUM("year") FROM "results_of_the_national_championships_19" WHERE "venue"='gold coast' AND "men_s_35s"='nsw';
```
## Task
Generate a SQL query to answer the following question:
`What is the Men's Open when the venue is Perth?`

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

CREATE TABLE "results_of_the_national_championships_19" (
  "year" real,
  "venue" text,
  "men_s_open" text,
  "women_s_open" text,
  "men_s_35s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Men's Open when the venue is Perth?`:
```sql
                SELECT "men_s_open" FROM "results_of_the_national_championships_19" WHERE "venue"='perth';
```
## Task
Generate a SQL query to answer the following question:
`What is the year that the Men's 35 is NSW, Women's Open is QLD and the venue is Sydney?`

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

CREATE TABLE "results_of_the_national_championships_19" (
  "year" real,
  "venue" text,
  "men_s_open" text,
  "women_s_open" text,
  "men_s_35s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year that the Men's 35 is NSW, Women's Open is QLD and the venue is Sydney?`:
```sql
                SELECT "year" FROM "results_of_the_national_championships_19" WHERE "men_s_35s"='nsw' AND "venue"='sydney' AND "women_s_open"='qld';
```
## Task
Generate a SQL query to answer the following question:
`What is the average for the team with highest less than 13,500 and games played are fewer than 5?`

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

CREATE TABLE "attendances" (
  "team" text,
  "played" real,
  "highest" real,
  "lowest" real,
  "total" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average for the team with highest less than 13,500 and games played are fewer than 5?`:
```sql
                SELECT MIN("average") FROM "attendances" WHERE "highest"<'13,500' AND "played"<5;
```
## Task
Generate a SQL query to answer the following question:
`what is the sum of league goals when the fa cup goals is more than 0?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" real,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the sum of league goals when the fa cup goals is more than 0?`:
```sql
                SELECT SUM("league_goals") FROM "appearances_and_goals" WHERE "fa_cup_goals">0;
```
## Task
Generate a SQL query to answer the following question:
`what is the average league cup goals when the league cup apps is 4, league goals is less than 4, fa cup apps is 1 and total apps is 35?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" real,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average league cup goals when the league cup apps is 4, league goals is less than 4, fa cup apps is 1 and total apps is 35?`:
```sql
                SELECT AVG("league_cup_goals") FROM "appearances_and_goals" WHERE "league_cup_apps"=4 AND "league_goals"<4 AND "fa_cup_apps"='1' AND "total_apps"='35';
```
## Task
Generate a SQL query to answer the following question:
`what is the average league cup goals when the position is df and total goals is more than 4?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" real,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average league cup goals when the position is df and total goals is more than 4?`:
```sql
                SELECT AVG("league_cup_goals") FROM "appearances_and_goals" WHERE "position"='df' AND "total_goals">4;
```
## Task
Generate a SQL query to answer the following question:
`what is the average fa cup goals when the fa cup apps is 0, total goals is less than 1 and position is df?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" real,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average fa cup goals when the fa cup apps is 0, total goals is less than 1 and position is df?`:
```sql
                SELECT AVG("fa_cup_goals") FROM "appearances_and_goals" WHERE "fa_cup_apps"='0' AND "total_goals"<1 AND "position"='df';
```
## Task
Generate a SQL query to answer the following question:
`What year had a score of 0.586?`

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

CREATE TABLE "international_recognition" (
  "index" text,
  "score" text,
  "palop_rank" text,
  "cplp_rank" text,
  "n_africa_rank" text,
  "world_rank" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year had a score of 0.586?`:
```sql
                SELECT COUNT("year") FROM "international_recognition" WHERE "score"='0.586';
```
## Task
Generate a SQL query to answer the following question:
`What's the n Africa in 2012 with an N/A as the CPLP?`

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

CREATE TABLE "international_recognition" (
  "index" text,
  "score" text,
  "palop_rank" text,
  "cplp_rank" text,
  "n_africa_rank" text,
  "world_rank" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the n Africa in 2012 with an N/A as the CPLP?`:
```sql
                SELECT "n_africa_rank" FROM "international_recognition" WHERE "year"=2012 AND "cplp_rank"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`What was the final venue for 82 delegates?`

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

CREATE TABLE "miss_earth_titleholders" (
  "year" real,
  "finals_venue" text,
  "location" text,
  "pageant_date" text,
  "number_of_delegates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final venue for 82 delegates?`:
```sql
                SELECT "finals_venue" FROM "miss_earth_titleholders" WHERE "number_of_delegates"='82';
```
## Task
Generate a SQL query to answer the following question:
`Which Artist has a Record label of vertigo?`

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

CREATE TABLE "best_selling_albums_in_the_uk" (
  "artist" text,
  "record_label" text,
  "released" text,
  "chart_peak" real,
  "number_of_times_certified_platinum" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Artist has a Record label of vertigo?`:
```sql
                SELECT "artist" FROM "best_selling_albums_in_the_uk" WHERE "record_label"='vertigo';
```
## Task
Generate a SQL query to answer the following question:
`Where is the ceremonial county for motorwy junction 1 and a population larger than 118,229?`

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

CREATE TABLE "settlements_on_m40_corridor" (
  "place" text,
  "population" real,
  "ceremonial_county" text,
  "main_railway_station" text,
  "motorway_junction" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the ceremonial county for motorwy junction 1 and a population larger than 118,229?`:
```sql
                SELECT "ceremonial_county" FROM "settlements_on_m40_corridor" WHERE "population">'118,229' AND "motorway_junction"='1';
```
## Task
Generate a SQL query to answer the following question:
`What was the place that had a main railway station of banbury and a population bigger than 28,672?`

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

CREATE TABLE "settlements_on_m40_corridor" (
  "place" text,
  "population" real,
  "ceremonial_county" text,
  "main_railway_station" text,
  "motorway_junction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the place that had a main railway station of banbury and a population bigger than 28,672?`:
```sql
                SELECT "place" FROM "settlements_on_m40_corridor" WHERE "population">'28,672' AND "main_railway_station"='banbury';
```
## Task
Generate a SQL query to answer the following question:
`Who is the president when c-span 2009 is 21?`

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

CREATE TABLE "scholar_survey_results" (
  "president" text,
  "schl_1948" text,
  "schl_1962" text,
  "m_b_1982" text,
  "ct_1982" text,
  "siena_1982" text,
  "siena_1990" text,
  "siena_1994" text,
  "r_mc_i_1996" text,
  "schl_1996" text,
  "c_span_1999" text,
  "wsj_2000" text,
  "siena_2002" text,
  "wsj_2005" text,
  "times_2008" text,
  "c_span_2009" text,
  "siena_2010" text,
  "uspc_2011" text,
  "aggr" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the president when c-span 2009 is 21?`:
```sql
                SELECT "president" FROM "scholar_survey_results" WHERE "c_span_2009"='21';
```
## Task
Generate a SQL query to answer the following question:
`what is c-span 2009 when times 2008** is 08?`

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

CREATE TABLE "scholar_survey_results" (
  "president" text,
  "schl_1948" text,
  "schl_1962" text,
  "m_b_1982" text,
  "ct_1982" text,
  "siena_1982" text,
  "siena_1990" text,
  "siena_1994" text,
  "r_mc_i_1996" text,
  "schl_1996" text,
  "c_span_1999" text,
  "wsj_2000" text,
  "siena_2002" text,
  "wsj_2005" text,
  "times_2008" text,
  "c_span_2009" text,
  "siena_2010" text,
  "uspc_2011" text,
  "aggr" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is c-span 2009 when times 2008** is 08?`:
```sql
                SELECT "c_span_2009" FROM "scholar_survey_results" WHERE "times_2008"='08';
```
## Task
Generate a SQL query to answer the following question:
`what is siena 2002 when the president is andrew jackson?`

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

CREATE TABLE "scholar_survey_results" (
  "president" text,
  "schl_1948" text,
  "schl_1962" text,
  "m_b_1982" text,
  "ct_1982" text,
  "siena_1982" text,
  "siena_1990" text,
  "siena_1994" text,
  "r_mc_i_1996" text,
  "schl_1996" text,
  "c_span_1999" text,
  "wsj_2000" text,
  "siena_2002" text,
  "wsj_2005" text,
  "times_2008" text,
  "c_span_2009" text,
  "siena_2010" text,
  "uspc_2011" text,
  "aggr" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is siena 2002 when the president is andrew jackson?`:
```sql
                SELECT "siena_2002" FROM "scholar_survey_results" WHERE "president"='andrew jackson';
```
## Task
Generate a SQL query to answer the following question:
`Which Location has a Home Ground of Mong kok stadium?`

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

CREATE TABLE "k" (
  "club" text,
  "league_division" text,
  "home_ground" text,
  "location" text,
  "position_in_2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location has a Home Ground of Mong kok stadium?`:
```sql
                SELECT "location" FROM "k" WHERE "home_ground"='mong kok stadium';
```
## Task
Generate a SQL query to answer the following question:
`Which club is in the First division?`

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

CREATE TABLE "k" (
  "club" text,
  "league_division" text,
  "home_ground" text,
  "location" text,
  "position_in_2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club is in the First division?`:
```sql
                SELECT "club" FROM "k" WHERE "league_division"='first division';
```
## Task
Generate a SQL query to answer the following question:
`What is the Home Ground with the Location n/a for the Club kcdrsc?`

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

CREATE TABLE "k" (
  "club" text,
  "league_division" text,
  "home_ground" text,
  "location" text,
  "position_in_2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home Ground with the Location n/a for the Club kcdrsc?`:
```sql
                SELECT "home_ground" FROM "k" WHERE "location"='n/a' AND "club"='kcdrsc';
```
## Task
Generate a SQL query to answer the following question:
`What League/Division has a Location of n/a?`

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

CREATE TABLE "k" (
  "club" text,
  "league_division" text,
  "home_ground" text,
  "location" text,
  "position_in_2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What League/Division has a Location of n/a?`:
```sql
                SELECT "league_division" FROM "k" WHERE "location"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`What Location is in the second division and has 4th, third division (promoted) as its Position in 2012-13?`

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

CREATE TABLE "k" (
  "club" text,
  "league_division" text,
  "home_ground" text,
  "location" text,
  "position_in_2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Location is in the second division and has 4th, third division (promoted) as its Position in 2012-13?`:
```sql
                SELECT "location" FROM "k" WHERE "league_division"='second division' AND "position_in_2012_13"='4th, third division (promoted)';
```
## Task
Generate a SQL query to answer the following question:
`What was the rank of the team who raced at a time of 7:16.13?`

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

CREATE TABLE "semifinal_a_b_2" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank of the team who raced at a time of 7:16.13?`:
```sql
                SELECT "rank" FROM "semifinal_a_b_2" WHERE "time"='7:16.13';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of rank for the country of greece?`

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

CREATE TABLE "semifinal_a_b_2" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of rank for the country of greece?`:
```sql
                SELECT COUNT("rank") FROM "semifinal_a_b_2" WHERE "country"='greece';
```
## Task
Generate a SQL query to answer the following question:
`What country were the athletes where ranked smaller than 5 with notes listed as fb?`

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

CREATE TABLE "semifinal_a_b_2" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country were the athletes where ranked smaller than 5 with notes listed as fb?`:
```sql
                SELECT "country" FROM "semifinal_a_b_2" WHERE "rank"<5 AND "notes"='fb';
```
## Task
Generate a SQL query to answer the following question:
`What is the time for the race with the United States?`

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

CREATE TABLE "semifinal_a_b_2" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time for the race with the United States?`:
```sql
                SELECT "time" FROM "semifinal_a_b_2" WHERE "country"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What shirt No has a Birth Date of April 12, 1986 (age27)?`

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

CREATE TABLE "team_roster_season_2013_2014" (
  "shirt_no" real,
  "nationality" text,
  "player" text,
  "birth_date" text,
  "height" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shirt No has a Birth Date of April 12, 1986 (age27)?`:
```sql
                SELECT MIN("shirt_no") FROM "team_roster_season_2013_2014" WHERE "birth_date"='april 12, 1986 (age27)';
```
## Task
Generate a SQL query to answer the following question:
`What position that has a Height larger than 179, and Player is Ezgi Arslan?`

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

CREATE TABLE "team_roster_season_2013_2014" (
  "shirt_no" real,
  "nationality" text,
  "player" text,
  "birth_date" text,
  "height" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position that has a Height larger than 179, and Player is Ezgi Arslan?`:
```sql
                SELECT "position" FROM "team_roster_season_2013_2014" WHERE "height">179 AND "player"='ezgi arslan';
```
## Task
Generate a SQL query to answer the following question:
`What is the shirt no with a position of setter, a nationality of Italy, and height larger than 172?`

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

CREATE TABLE "team_roster_season_2013_2014" (
  "shirt_no" real,
  "nationality" text,
  "player" text,
  "birth_date" text,
  "height" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the shirt no with a position of setter, a nationality of Italy, and height larger than 172?`:
```sql
                SELECT SUM("shirt_no") FROM "team_roster_season_2013_2014" WHERE "position"='setter' AND "nationality"='italy' AND "height">172;
```
## Task
Generate a SQL query to answer the following question:
`What player that has a position of middle blocker, a Nationality of Turkey, and shirt no is 8?`

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

CREATE TABLE "team_roster_season_2013_2014" (
  "shirt_no" real,
  "nationality" text,
  "player" text,
  "birth_date" text,
  "height" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player that has a position of middle blocker, a Nationality of Turkey, and shirt no is 8?`:
```sql
                SELECT "player" FROM "team_roster_season_2013_2014" WHERE "position"='middle blocker' AND "nationality"='turkey' AND "shirt_no"=8;
```
## Task
Generate a SQL query to answer the following question:
`What player that has a Nationality of Turkey, a Height smaller than 183, a shirt no smaller than 19, and a birth date of June 27, 1993 (age20)?`

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

CREATE TABLE "team_roster_season_2013_2014" (
  "shirt_no" real,
  "nationality" text,
  "player" text,
  "birth_date" text,
  "height" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player that has a Nationality of Turkey, a Height smaller than 183, a shirt no smaller than 19, and a birth date of June 27, 1993 (age20)?`:
```sql
                SELECT "player" FROM "team_roster_season_2013_2014" WHERE "nationality"='turkey' AND "height"<183 AND "shirt_no"<19 AND "birth_date"='june 27, 1993 (age20)';
```
## Task
Generate a SQL query to answer the following question:
`Which nation won 29 gold medals?`

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

CREATE TABLE "canoe" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which nation won 29 gold medals?`:
```sql
                SELECT "nation" FROM "canoe" WHERE "gold"=29;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of bronze medals won among the nations ranked 12 that won no gold medals and 1 medal overall?`

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

CREATE TABLE "canoe" (
  "rank" text,
  "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 fewest number of bronze medals won among the nations ranked 12 that won no gold medals and 1 medal overall?`:
```sql
                SELECT MIN("bronze") FROM "canoe" WHERE "total"=1 AND "rank"='12' AND "gold"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the FCC info for the translator with frequency over 89.3MHz and licensd in Portales, New Mexico?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the FCC info for the translator with frequency over 89.3MHz and licensd in Portales, New Mexico?`:
```sql
                SELECT "fcc_info" FROM "translators" WHERE "frequency_m_hz">89.3 AND "city_of_license"='portales, new mexico';
```
## Task
Generate a SQL query to answer the following question:
`Which ship was launched from Devonport, Devon?`

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

CREATE TABLE "see_also" (
  "country" text,
  "builder" text,
  "location" text,
  "ship" text,
  "class_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which ship was launched from Devonport, Devon?`:
```sql
                SELECT "ship" FROM "see_also" WHERE "location"='devonport, devon';
```
## Task
Generate a SQL query to answer the following question:
`What country was the Pegasus, build by Royal Dockyard, from?`

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

CREATE TABLE "see_also" (
  "country" text,
  "builder" text,
  "location" text,
  "ship" text,
  "class_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country was the Pegasus, build by Royal Dockyard, from?`:
```sql
                SELECT "country" FROM "see_also" WHERE "builder"='royal dockyard' AND "ship"='pegasus';
```
## Task
Generate a SQL query to answer the following question:
`Who was the builder of Gannet from the United Kingdom?`

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

CREATE TABLE "see_also" (
  "country" text,
  "builder" text,
  "location" text,
  "ship" text,
  "class_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the builder of Gannet from the United Kingdom?`:
```sql
                SELECT "builder" FROM "see_also" WHERE "country"='united kingdom' AND "ship"='gannet';
```
## Task
Generate a SQL query to answer the following question:
`Who was the builder of Nor?`

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

CREATE TABLE "see_also" (
  "country" text,
  "builder" text,
  "location" text,
  "ship" text,
  "class_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the builder of Nor?`:
```sql
                SELECT "builder" FROM "see_also" WHERE "ship"='nor';
```
## Task
Generate a SQL query to answer the following question:
`Who was the builder of Brage from Norway?`

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

CREATE TABLE "see_also" (
  "country" text,
  "builder" text,
  "location" text,
  "ship" text,
  "class_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the builder of Brage from Norway?`:
```sql
                SELECT "builder" FROM "see_also" WHERE "country"='norway' AND "ship"='brage';
```
## Task
Generate a SQL query to answer the following question:
`What country was Brage, built by karljohansverns verft, from?`

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

CREATE TABLE "see_also" (
  "country" text,
  "builder" text,
  "location" text,
  "ship" text,
  "class_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country was Brage, built by karljohansverns verft, from?`:
```sql
                SELECT "country" FROM "see_also" WHERE "builder"='karljohansverns verft' AND "ship"='brage';
```
## Task
Generate a SQL query to answer the following question:
`Which Silver has a Total of 11, and a Gold smaller than 8?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Silver has a Total of 11, and a Gold smaller than 8?`:
```sql
                SELECT MIN("silver") FROM "medals_table" WHERE "total"=11 AND "gold"<8;
```
## Task
Generate a SQL query to answer the following question:
`Which Silver has a Total of 1, and a Rank of 12?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Silver has a Total of 1, and a Rank of 12?`:
```sql
                SELECT MIN("silver") FROM "medals_table" WHERE "total"=1 AND "rank"='12';
```