cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the most overall for james davis and round more than 5`

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

CREATE TABLE "1981_raiders_draft_selections" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most overall for james davis and round more than 5`:
```sql
                SELECT MAX("overall") FROM "1981_raiders_draft_selections" WHERE "player"='james davis' AND "round">5;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of overall for villanova and round less than 2`

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

CREATE TABLE "1981_raiders_draft_selections" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of overall for villanova and round less than 2`:
```sql
                SELECT COUNT("overall") FROM "1981_raiders_draft_selections" WHERE "college"='villanova' AND "round"<2;
```
## Task
Generate a SQL query to answer the following question:
`Which state is Mount Chiginagak located in?`

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

CREATE TABLE "the_50_most_topographically_prominent_su" (
  "rank" real,
  "mountain_peak" text,
  "state" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which state is Mount Chiginagak located in?`:
```sql
                SELECT "state" FROM "the_50_most_topographically_prominent_su" WHERE "mountain_peak"='mount chiginagak';
```
## Task
Generate a SQL query to answer the following question:
`What were the circumstances for the Baghlan location?`

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

CREATE TABLE "2008" (
  "date" text,
  "location" text,
  "nature_of_incident" text,
  "circumstances" text,
  "casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the circumstances for the Baghlan location?`:
```sql
                SELECT "circumstances" FROM "2008" WHERE "location"='baghlan';
```
## Task
Generate a SQL query to answer the following question:
`What were the casualties in the Baghlan location?`

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

CREATE TABLE "2008" (
  "date" text,
  "location" text,
  "nature_of_incident" text,
  "circumstances" text,
  "casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the casualties in the Baghlan location?`:
```sql
                SELECT "casualties" FROM "2008" WHERE "location"='baghlan';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of natural cause situation?`

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

CREATE TABLE "2008" (
  "date" text,
  "location" text,
  "nature_of_incident" text,
  "circumstances" text,
  "casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of natural cause situation?`:
```sql
                SELECT "date" FROM "2008" WHERE "circumstances"='natural cause';
```
## Task
Generate a SQL query to answer the following question:
`Which Gold Coast has a Perth of no, a Sydney of yes, and an Auckland of yes?`

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

CREATE TABLE "2008" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Gold Coast has a Perth of no, a Sydney of yes, and an Auckland of yes?`:
```sql
                SELECT "gold_coast" FROM "2008" WHERE "perth"='no' AND "sydney"='yes' AND "auckland"='yes';
```
## Task
Generate a SQL query to answer the following question:
`Which Melbourne has an Auckland of no, and a Gold Coast of no?`

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

CREATE TABLE "2008" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Melbourne has an Auckland of no, and a Gold Coast of no?`:
```sql
                SELECT "melbourne" FROM "2008" WHERE "auckland"='no' AND "gold_coast"='no';
```
## Task
Generate a SQL query to answer the following question:
`Which Adelaide has a Melbourne of yes, an Auckland of yes, and a Perth of yes?`

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

CREATE TABLE "2008" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Adelaide has a Melbourne of yes, an Auckland of yes, and a Perth of yes?`:
```sql
                SELECT "adelaide" FROM "2008" WHERE "melbourne"='yes' AND "auckland"='yes' AND "perth"='yes';
```
## Task
Generate a SQL query to answer the following question:
`Which Sydney has a Perth of no, a Melbourne of yes, and a Gold Coast of no?`

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

CREATE TABLE "2008" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Sydney has a Perth of no, a Melbourne of yes, and a Gold Coast of no?`:
```sql
                SELECT "sydney" FROM "2008" WHERE "perth"='no' AND "melbourne"='yes' AND "gold_coast"='no';
```
## Task
Generate a SQL query to answer the following question:
`Which Auckland has an Adelaide of no, a Melbourne of yes, and a Sydney of yes?`

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

CREATE TABLE "2008" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Auckland has an Adelaide of no, a Melbourne of yes, and a Sydney of yes?`:
```sql
                SELECT "auckland" FROM "2008" WHERE "adelaide"='no' AND "melbourne"='yes' AND "sydney"='yes';
```
## Task
Generate a SQL query to answer the following question:
`Which Adelaide has an Auckland of yes, a Melbourne of yes, a Perth of yes, and a Sydney of cancelled?`

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

CREATE TABLE "2008" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Adelaide has an Auckland of yes, a Melbourne of yes, a Perth of yes, and a Sydney of cancelled?`:
```sql
                SELECT "adelaide" FROM "2008" WHERE "auckland"='yes' AND "melbourne"='yes' AND "perth"='yes' AND "sydney"='cancelled';
```
## Task
Generate a SQL query to answer the following question:
`Who is the owner of RSS Racing that driver Ryan Sieg belongs to?`

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

CREATE TABLE "full_time_teams" (
  "team" text,
  "truck_s" text,
  "driver_s" text,
  "primary_sponsor_s" text,
  "owner_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the owner of RSS Racing that driver Ryan Sieg belongs to?`:
```sql
                SELECT "owner_s" FROM "full_time_teams" WHERE "team"='rss racing' AND "driver_s"='ryan sieg';
```
## Task
Generate a SQL query to answer the following question:
`Parts Plus sponsors what driver?`

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

CREATE TABLE "full_time_teams" (
  "team" text,
  "truck_s" text,
  "driver_s" text,
  "primary_sponsor_s" text,
  "owner_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Parts Plus sponsors what driver?`:
```sql
                SELECT "driver_s" FROM "full_time_teams" WHERE "primary_sponsor_s"='parts plus';
```
## Task
Generate a SQL query to answer the following question:
`Who is the owner of NTS Motorsports sponsored by Qore-24?`

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

CREATE TABLE "full_time_teams" (
  "team" text,
  "truck_s" text,
  "driver_s" text,
  "primary_sponsor_s" text,
  "owner_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the owner of NTS Motorsports sponsored by Qore-24?`:
```sql
                SELECT "owner_s" FROM "full_time_teams" WHERE "team"='nts motorsports' AND "primary_sponsor_s"='qore-24';
```
## Task
Generate a SQL query to answer the following question:
`Who is the crew chief, of driver Matt kurzejewski?`

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

CREATE TABLE "full_time_teams" (
  "team" text,
  "truck_s" text,
  "driver_s" text,
  "primary_sponsor_s" text,
  "owner_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the crew chief, of driver Matt kurzejewski?`:
```sql
                SELECT "crew_chief" FROM "full_time_teams" WHERE "driver_s"='matt kurzejewski';
```
## Task
Generate a SQL query to answer the following question:
`Who is the driver that has a crew chief Gary Ritter?`

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

CREATE TABLE "full_time_teams" (
  "team" text,
  "truck_s" text,
  "driver_s" text,
  "primary_sponsor_s" text,
  "owner_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the driver that has a crew chief Gary Ritter?`:
```sql
                SELECT "driver_s" FROM "full_time_teams" WHERE "crew_chief"='gary ritter';
```
## Task
Generate a SQL query to answer the following question:
`what is the award for the 2009 songwriter of the year?`

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

CREATE TABLE "others_awards_and_nominations" (
  "year" real,
  "result" text,
  "award" text,
  "category" text,
  "nominated_work" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the award for the 2009 songwriter of the year?`:
```sql
                SELECT "award" FROM "others_awards_and_nominations" WHERE "year"=2009 AND "category"='songwriter of the year';
```
## Task
Generate a SQL query to answer the following question:
`what is the category that has the people's choice awards?`

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

CREATE TABLE "others_awards_and_nominations" (
  "year" real,
  "result" text,
  "award" text,
  "category" text,
  "nominated_work" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the category that has the people's choice awards?`:
```sql
                SELECT "category" FROM "others_awards_and_nominations" WHERE "award"='people''s choice awards';
```
## Task
Generate a SQL query to answer the following question:
`what year has general nominated in the category or choice breakthrough artist?`

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

CREATE TABLE "others_awards_and_nominations" (
  "year" real,
  "result" text,
  "award" text,
  "category" text,
  "nominated_work" text
);
### SQL
Given the database schema, here is the SQL query that answers `what year has general nominated in the category or choice breakthrough artist?`:
```sql
                SELECT COUNT("year") FROM "others_awards_and_nominations" WHERE "nominated_work"='general' AND "category"='choice breakthrough artist';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on 6 February 2008?`

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

CREATE TABLE "national_team" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on 6 February 2008?`:
```sql
                SELECT "score" FROM "national_team" WHERE "date"='6 february 2008';
```
## Task
Generate a SQL query to answer the following question:
`Which competition was held on 14 November 2012?`

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

CREATE TABLE "national_team" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition was held on 14 November 2012?`:
```sql
                SELECT "competition" FROM "national_team" WHERE "date"='14 november 2012';
```
## Task
Generate a SQL query to answer the following question:
`What competition took place on 10 August 2011?`

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

CREATE TABLE "national_team" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition took place on 10 August 2011?`:
```sql
                SELECT "competition" FROM "national_team" WHERE "date"='10 august 2011';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Year with Chassis equalling cooper t60?`

### 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 is the average Year with Chassis equalling cooper t60?`:
```sql
                SELECT AVG("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='cooper t60';
```
## Task
Generate a SQL query to answer the following question:
`Which Chassis has an Entrant of cooper car company, and a Year of 1963?`

### 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 `Which Chassis has an Entrant of cooper car company, and a Year of 1963?`:
```sql
                SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "entrant"='cooper car company' AND "year"=1963;
```
## Task
Generate a SQL query to answer the following question:
`Which Entrant has an Engine of climax straight-4, and Points larger than 0?`

### 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 `Which Entrant has an Engine of climax straight-4, and Points larger than 0?`:
```sql
                SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "engine"='climax straight-4' AND "points">0;
```
## Task
Generate a SQL query to answer the following question:
`Which tournament has hard as the surface and apr. 12, 1998 as the date?`

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

CREATE TABLE "singles_18_itf" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament has hard as the surface and apr. 12, 1998 as the date?`:
```sql
                SELECT "tournament" FROM "singles_18_itf" WHERE "surface"='hard' AND "date"='apr. 12, 1998';
```
## Task
Generate a SQL query to answer the following question:
`Which surface has wynne prakusya as the opponent in the final?`

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

CREATE TABLE "singles_18_itf" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which surface has wynne prakusya as the opponent in the final?`:
```sql
                SELECT "surface" FROM "singles_18_itf" WHERE "opponent_in_the_final"='wynne prakusya';
```
## Task
Generate a SQL query to answer the following question:
`What score has wynne prakusya as the opponent in the final?`

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

CREATE TABLE "singles_18_itf" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has wynne prakusya as the opponent in the final?`:
```sql
                SELECT "score" FROM "singles_18_itf" WHERE "opponent_in_the_final"='wynne prakusya';
```
## Task
Generate a SQL query to answer the following question:
`What tournament has nov. 21, 1999 as the date?`

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

CREATE TABLE "singles_18_itf" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament has nov. 21, 1999 as the date?`:
```sql
                SELECT "tournament" FROM "singles_18_itf" WHERE "date"='nov. 21, 1999';
```
## Task
Generate a SQL query to answer the following question:
`Name the authority for coed gender and chanel college`

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

CREATE TABLE "masterton_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the authority for coed gender and chanel college`:
```sql
                SELECT "authority" FROM "masterton_district" WHERE "gender"='coed' AND "name"='chanel college';
```
## Task
Generate a SQL query to answer the following question:
`Name the average decile for state authority and area of fernridge`

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

CREATE TABLE "masterton_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average decile for state authority and area of fernridge`:
```sql
                SELECT AVG("decile") FROM "masterton_district" WHERE "authority"='state' AND "area"='fernridge';
```
## Task
Generate a SQL query to answer the following question:
`What was the week on October 11, 1998?`

### 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,
  "game_site" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the week on October 11, 1998?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "date"='october 11, 1998';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the game with attendance of 63,336?`

### 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,
  "game_site" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the game with attendance of 63,336?`:
```sql
                SELECT "game_site" FROM "schedule" WHERE "attendance"='63,336';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the week 13 game?`

### 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,
  "game_site" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the week 13 game?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=13;
```
## Task
Generate a SQL query to answer the following question:
`What is the Panthers' Division Record?`

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

CREATE TABLE "2007_regular_season_football_standings" (
  "school" text,
  "team" text,
  "division_record" text,
  "overall_record" text,
  "season_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Panthers' Division Record?`:
```sql
                SELECT "division_record" FROM "2007_regular_season_football_standings" WHERE "team"='panthers';
```
## Task
Generate a SQL query to answer the following question:
`What is the Senators' division record?`

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

CREATE TABLE "2007_regular_season_football_standings" (
  "school" text,
  "team" text,
  "division_record" text,
  "overall_record" text,
  "season_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Senators' division record?`:
```sql
                SELECT "division_record" FROM "2007_regular_season_football_standings" WHERE "team"='senators';
```
## Task
Generate a SQL query to answer the following question:
`What was the record after the January 18 game?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record after the January 18 game?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "date"='january 18';
```
## Task
Generate a SQL query to answer the following question:
`What was the record after the January 6 game?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record after the January 6 game?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "date"='january 6';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of ranks for kujalleq with former name of brattahlíð and population less than 47`

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

CREATE TABLE "settlements_with_population_below_100" (
  "rank" real,
  "population" real,
  "name" text,
  "former_name" text,
  "municipality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of ranks for kujalleq with former name of brattahlíð and population less than 47`:
```sql
                SELECT COUNT("rank") FROM "settlements_with_population_below_100" WHERE "municipality"='kujalleq' AND "former_name"='brattahlíð' AND "population"<47;
```
## Task
Generate a SQL query to answer the following question:
`Name the former name for 49 rank`

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

CREATE TABLE "settlements_with_population_below_100" (
  "rank" real,
  "population" real,
  "name" text,
  "former_name" text,
  "municipality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the former name for 49 rank`:
```sql
                SELECT "former_name" FROM "settlements_with_population_below_100" WHERE "rank"=49;
```
## Task
Generate a SQL query to answer the following question:
`Which NHL team has left wing listed as the position?`

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

CREATE TABLE "round_six" (
  "pick_num" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which NHL team has left wing listed as the position?`:
```sql
                SELECT "nhl_team" FROM "round_six" WHERE "position"='left wing';
```
## Task
Generate a SQL query to answer the following question:
`What years does Kakahi school, with a decile of 3, have?`

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

CREATE TABLE "ruapehu_district" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What years does Kakahi school, with a decile of 3, have?`:
```sql
                SELECT "years" FROM "ruapehu_district" WHERE "decile"=3 AND "name"='kakahi school';
```
## Task
Generate a SQL query to answer the following question:
`What is the average decile of Ruapehu college, which has a state authority?`

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

CREATE TABLE "ruapehu_district" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average decile of Ruapehu college, which has a state authority?`:
```sql
                SELECT AVG("decile") FROM "ruapehu_district" WHERE "authority"='state' AND "name"='ruapehu college';
```
## Task
Generate a SQL query to answer the following question:
`What is the roll number of Orautoha school in Raetihi, which has a decile smaller than 8?`

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

CREATE TABLE "ruapehu_district" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the roll number of Orautoha school in Raetihi, which has a decile smaller than 8?`:
```sql
                SELECT SUM("roll") FROM "ruapehu_district" WHERE "area"='raetihi' AND "name"='orautoha school' AND "decile"<8;
```
## Task
Generate a SQL query to answer the following question:
`On what day was Utah Blaze the opponent?`

### 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,
  "home_away_game" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what day was Utah Blaze the opponent?`:
```sql
                SELECT "date" FROM "schedule" WHERE "opponent"='utah blaze';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2006 value with a 1r in 2011?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1999" text,
  "2002" text,
  "2004" text,
  "2006" text,
  "2007" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2006 value with a 1r in 2011?`:
```sql
                SELECT "2006" FROM "doubles_performance_timeline" WHERE "2011"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2010 value with a 2r in 200r and a 3r in 2011?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1999" text,
  "2002" text,
  "2004" text,
  "2006" text,
  "2007" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2010 value with a 2r in 200r and a 3r in 2011?`:
```sql
                SELECT "2010" FROM "doubles_performance_timeline" WHERE "2004"='2r' AND "2011"='3r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2007 value with a 2r in 2012 and 1r in 2002?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1999" text,
  "2002" text,
  "2004" text,
  "2006" text,
  "2007" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007 value with a 2r in 2012 and 1r in 2002?`:
```sql
                SELECT "2007" FROM "doubles_performance_timeline" WHERE "2012"='2r' AND "2002"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2004 value in the 2011 Grand Slam Tournaments?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1999" text,
  "2002" text,
  "2004" text,
  "2006" text,
  "2007" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2004 value in the 2011 Grand Slam Tournaments?`:
```sql
                SELECT "2004" FROM "doubles_performance_timeline" WHERE "2011"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2004 value with a sf in 2010?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1999" text,
  "2002" text,
  "2004" text,
  "2006" text,
  "2007" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2004 value with a sf in 2010?`:
```sql
                SELECT "2004" FROM "doubles_performance_timeline" WHERE "2010"='sf';
```
## Task
Generate a SQL query to answer the following question:
`Who played women's singles in 2002?`

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

CREATE TABLE "canadian_open" (
  "year" text,
  "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 played women's singles in 2002?`:
```sql
                SELECT "women_s_singles" FROM "canadian_open" WHERE "year"='2002';
```
## Task
Generate a SQL query to answer the following question:
`Who played men's doubles in 1963?`

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

CREATE TABLE "canadian_open" (
  "year" text,
  "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 played men's doubles in 1963?`:
```sql
                SELECT "men_s_doubles" FROM "canadian_open" WHERE "year"='1963';
```
## Task
Generate a SQL query to answer the following question:
`Name the score for 30 january 2013`

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

CREATE TABLE "international_goals" (
  "goal_num" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for 30 january 2013`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='30 january 2013';
```
## Task
Generate a SQL query to answer the following question:
`Name the result for goal # more than 4`

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

CREATE TABLE "international_goals" (
  "goal_num" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result for goal # more than 4`:
```sql
                SELECT "result" FROM "international_goals" WHERE "goal_num">4;
```
## Task
Generate a SQL query to answer the following question:
`What is Fred Couples to par?`

### 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 Fred Couples to par?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "player"='fred couples';
```
## Task
Generate a SQL query to answer the following question:
`What place has a score under 68?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place has a score under 68?`:
```sql
                SELECT "place" FROM "first_round" WHERE "score"<68;
```
## Task
Generate a SQL query to answer the following question:
`Which driver won when o.m. was the winning constructor ?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver won when o.m. was the winning constructor ?`:
```sql
                SELECT "winning_driver" FROM "other_grands_prix" WHERE "winning_constructor"='o.m.';
```
## Task
Generate a SQL query to answer the following question:
`Which driver won when the winning constructor was bugatti at the Boulogne Grand Prix ?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver won when the winning constructor was bugatti at the Boulogne Grand Prix ?`:
```sql
                SELECT "winning_driver" FROM "other_grands_prix" WHERE "winning_constructor"='bugatti' AND "name"='boulogne grand prix';
```
## Task
Generate a SQL query to answer the following question:
`What race did Meo Constantini win at the circuit of monza ?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What race did Meo Constantini win at the circuit of monza ?`:
```sql
                SELECT "name" FROM "other_grands_prix" WHERE "winning_driver"='meo constantini' AND "circuit"='monza';
```
## Task
Generate a SQL query to answer the following question:
`On what date did Aymo Maggi win the Rome Grand Prix ?`

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

CREATE TABLE "other_grands_prix" (
  "name" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did Aymo Maggi win the Rome Grand Prix ?`:
```sql
                SELECT "date" FROM "other_grands_prix" WHERE "winning_driver"='aymo maggi' AND "name"='rome grand prix';
```
## Task
Generate a SQL query to answer the following question:
`Name the season outcome for smyrna`

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

CREATE TABLE "2011_regular_season_football_standings" (
  "school" text,
  "team" text,
  "division_record" text,
  "overall_record" text,
  "season_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the season outcome for smyrna`:
```sql
                SELECT "season_outcome" FROM "2011_regular_season_football_standings" WHERE "school"='smyrna';
```
## Task
Generate a SQL query to answer the following question:
`Name the school for eagles`

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

CREATE TABLE "2011_regular_season_football_standings" (
  "school" text,
  "team" text,
  "division_record" text,
  "overall_record" text,
  "season_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the school for eagles`:
```sql
                SELECT "school" FROM "2011_regular_season_football_standings" WHERE "team"='eagles';
```
## Task
Generate a SQL query to answer the following question:
`Name the school for Season Outcome of loss in first round of div. i playoffs`

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

CREATE TABLE "2011_regular_season_football_standings" (
  "school" text,
  "team" text,
  "division_record" text,
  "overall_record" text,
  "season_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the school for Season Outcome of loss in first round of div. i playoffs`:
```sql
                SELECT "school" FROM "2011_regular_season_football_standings" WHERE "season_outcome"='loss in first round of div. i playoffs';
```
## Task
Generate a SQL query to answer the following question:
`Name the division record for riders`

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

CREATE TABLE "2011_regular_season_football_standings" (
  "school" text,
  "team" text,
  "division_record" text,
  "overall_record" text,
  "season_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the division record for riders`:
```sql
                SELECT "division_record" FROM "2011_regular_season_football_standings" WHERE "team"='riders';
```
## Task
Generate a SQL query to answer the following question:
`Name the team for school of milford`

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

CREATE TABLE "2011_regular_season_football_standings" (
  "school" text,
  "team" text,
  "division_record" text,
  "overall_record" text,
  "season_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team for school of milford`:
```sql
                SELECT "team" FROM "2011_regular_season_football_standings" WHERE "school"='milford';
```
## Task
Generate a SQL query to answer the following question:
`Name the average points for chassis of stevens and year less than 1950`

### 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 `Name the average points for chassis of stevens and year less than 1950`:
```sql
                SELECT AVG("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='stevens' AND "year"<1950;
```
## Task
Generate a SQL query to answer the following question:
`Name the least points for chassis of kurtis kraft 500a`

### 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 `Name the least points for chassis of kurtis kraft 500a`:
```sql
                SELECT MIN("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='kurtis kraft 500a';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of year for chassis of kurtis kraft 4000 and points more than 2`

### 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 `Name the total number of year for chassis of kurtis kraft 4000 and points more than 2`:
```sql
                SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='kurtis kraft 4000' AND "points">2;
```
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team on weeks under 12 and at Sports Authority Field at Mile High?`

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

CREATE TABLE "2011_season" (
  "week" real,
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visiting team on weeks under 12 and at Sports Authority Field at Mile High?`:
```sql
                SELECT "visiting_team" FROM "2011_season" WHERE "week"<12 AND "stadium"='sports authority field at mile high';
```
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team at Raymond James Stadium?`

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

CREATE TABLE "2011_season" (
  "week" real,
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visiting team at Raymond James Stadium?`:
```sql
                SELECT "visiting_team" FROM "2011_season" WHERE "stadium"='raymond james stadium';
```
## Task
Generate a SQL query to answer the following question:
`What date had the Houston Texans as visitors?`

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

CREATE TABLE "2011_season" (
  "week" real,
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date had the Houston Texans as visitors?`:
```sql
                SELECT "date" FROM "2011_season" WHERE "visiting_team"='houston texans';
```
## Task
Generate a SQL query to answer the following question:
`Name the year with percentage of 9.66%`

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

CREATE TABLE "results_in_minnesota_state_elections" (
  "year" real,
  "office" text,
  "candidate" text,
  "popular_votes" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year with percentage of 9.66%`:
```sql
                SELECT "year" FROM "results_in_minnesota_state_elections" WHERE "percentage"='9.66%';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of popular votes for mn attorney general in 1994`

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

CREATE TABLE "results_in_minnesota_state_elections" (
  "year" real,
  "office" text,
  "candidate" text,
  "popular_votes" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of popular votes for mn attorney general in 1994`:
```sql
                SELECT COUNT("popular_votes") FROM "results_in_minnesota_state_elections" WHERE "office"='mn attorney general' AND "year"=1994;
```
## Task
Generate a SQL query to answer the following question:
`Name the average popular votes in years after 1990 with percentage of 4.94%`

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

CREATE TABLE "results_in_minnesota_state_elections" (
  "year" real,
  "office" text,
  "candidate" text,
  "popular_votes" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average popular votes in years after 1990 with percentage of 4.94%`:
```sql
                SELECT AVG("popular_votes") FROM "results_in_minnesota_state_elections" WHERE "percentage"='4.94%' AND "year">1990;
```
## Task
Generate a SQL query to answer the following question:
`Name the least popular votes for year less than 1994 and percentage of 0.96%`

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

CREATE TABLE "results_in_minnesota_state_elections" (
  "year" real,
  "office" text,
  "candidate" text,
  "popular_votes" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least popular votes for year less than 1994 and percentage of 0.96%`:
```sql
                SELECT MIN("popular_votes") FROM "results_in_minnesota_state_elections" WHERE "year"<1994 AND "percentage"='0.96%';
```
## Task
Generate a SQL query to answer the following question:
`What United States player holds the place of t8?``

### 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 United States player holds the place of t8?``:
```sql
                SELECT "player" FROM "first_round" WHERE "place"='t8' AND "country"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What country of argentina has the To par of 68?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country of argentina has the To par of 68?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "score"=68 AND "country"='argentina';
```
## Task
Generate a SQL query to answer the following question:
`What is the To par and holds the t8 place of the United States player Tiger Woods?`

### 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 To par and holds the t8 place of the United States player Tiger Woods?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "country"='united states' AND "place"='t8' AND "player"='tiger woods';
```