cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who was the visitor on march 21?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visitor on march 21?`:
```sql
                SELECT "visitor" FROM "march" WHERE "date"='march 21';
```
## Task
Generate a SQL query to answer the following question:
`Who was the cyclist from Belgium?`

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

CREATE TABLE "general_standings" (
  "cyclist" text,
  "nation" text,
  "team" text,
  "time" text,
  "uci_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the cyclist from Belgium?`:
```sql
                SELECT "cyclist" FROM "general_standings" WHERE "nation"='belgium';
```
## Task
Generate a SQL query to answer the following question:
`What is the nation of the person who was from the CSC team?`

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

CREATE TABLE "general_standings" (
  "cyclist" text,
  "nation" text,
  "team" text,
  "time" text,
  "uci_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nation of the person who was from the CSC team?`:
```sql
                SELECT "nation" FROM "general_standings" WHERE "team"='csc';
```
## Task
Generate a SQL query to answer the following question:
`Who is the cyclist from the GCE team and had UCI points under 20?`

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

CREATE TABLE "general_standings" (
  "cyclist" text,
  "nation" text,
  "team" text,
  "time" text,
  "uci_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the cyclist from the GCE team and had UCI points under 20?`:
```sql
                SELECT "cyclist" FROM "general_standings" WHERE "team"='gce' AND "uci_points"<20;
```
## Task
Generate a SQL query to answer the following question:
`Which nation is Danilo di Luca from?`

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

CREATE TABLE "general_standings" (
  "cyclist" text,
  "nation" text,
  "team" text,
  "time" text,
  "uci_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which nation is Danilo di Luca from?`:
```sql
                SELECT "nation" FROM "general_standings" WHERE "cyclist"='danilo di luca';
```
## Task
Generate a SQL query to answer the following question:
`Which nation is Robert Gesink from?`

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

CREATE TABLE "general_standings" (
  "cyclist" text,
  "nation" text,
  "team" text,
  "time" text,
  "uci_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which nation is Robert Gesink from?`:
```sql
                SELECT "nation" FROM "general_standings" WHERE "cyclist"='robert gesink';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of UCI points for Kim Kirchen?`

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

CREATE TABLE "general_standings" (
  "cyclist" text,
  "nation" text,
  "team" text,
  "time" text,
  "uci_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of UCI points for Kim Kirchen?`:
```sql
                SELECT SUM("uci_points") FROM "general_standings" WHERE "cyclist"='kim kirchen';
```
## Task
Generate a SQL query to answer the following question:
`How many games for the player that has an over 2.7 assist average and over 598 total assists?`

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

CREATE TABLE "assists" (
  "rank" real,
  "player" text,
  "years" text,
  "games" real,
  "ast_avg" real,
  "total_assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games for the player that has an over 2.7 assist average and over 598 total assists?`:
```sql
                SELECT COUNT("games") FROM "assists" WHERE "ast_avg">2.7 AND "total_assists">598;
```
## Task
Generate a SQL query to answer the following question:
`How many assists does cam long average in under 132 games?`

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

CREATE TABLE "assists" (
  "rank" real,
  "player" text,
  "years" text,
  "games" real,
  "ast_avg" real,
  "total_assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many assists does cam long average in under 132 games?`:
```sql
                SELECT MAX("ast_avg") FROM "assists" WHERE "player"='cam long' AND "games"<132;
```
## Task
Generate a SQL query to answer the following question:
`Where is the Stadium of Gortakeegan located?`

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

CREATE TABLE "stadiums" (
  "rank" real,
  "stadium" text,
  "total_capacity" text,
  "seating_capacity" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the Stadium of Gortakeegan located?`:
```sql
                SELECT "location" FROM "stadiums" WHERE "stadium"='gortakeegan';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest ranking seating capacity smaller than 7,485, and a stadium at St. Colman's Park?`

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

CREATE TABLE "stadiums" (
  "rank" real,
  "stadium" text,
  "total_capacity" text,
  "seating_capacity" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest ranking seating capacity smaller than 7,485, and a stadium at St. Colman's Park?`:
```sql
                SELECT MIN("rank") FROM "stadiums" WHERE "seating_capacity"<'7,485' AND "stadium"='st. colman''s park';
```
## Task
Generate a SQL query to answer the following question:
`In 1972, how many points did the entrant with the March 721G Chassis have?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `In 1972, how many points did the entrant with the March 721G Chassis have?`:
```sql
                SELECT "points" FROM "complete_formula_one_results" WHERE "year">1972 AND "chassis"='march 721g';
```
## Task
Generate a SQL query to answer the following question:
`In 1971, how many total points did the entrant stp march have?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `In 1971, how many total points did the entrant stp march have?`:
```sql
                SELECT COUNT("points") FROM "complete_formula_one_results" WHERE "entrant"='stp march' AND "year">1971;
```
## Task
Generate a SQL query to answer the following question:
`Which Chassis was featured in the year 1971?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Chassis was featured in the year 1971?`:
```sql
                SELECT "chassis" FROM "complete_formula_one_results" WHERE "year"=1971;
```
## Task
Generate a SQL query to answer the following question:
`Which Chassis did the Entrant clarke-mordaunt-guthrie-durlacher carry?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Chassis did the Entrant clarke-mordaunt-guthrie-durlacher carry?`:
```sql
                SELECT "chassis" FROM "complete_formula_one_results" WHERE "entrant"='clarke-mordaunt-guthrie-durlacher';
```
## Task
Generate a SQL query to answer the following question:
`What is Bartolo's Total G when his L Apps is 29 and his C Apps are larger than 5?`

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

CREATE TABLE "squad_stats" (
  "player" text,
  "l_apps" real,
  "c_apps" real,
  "total_apps" real,
  "total_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Bartolo's Total G when his L Apps is 29 and his C Apps are larger than 5?`:
```sql
                SELECT AVG("total_g") FROM "squad_stats" WHERE "l_apps"=29 AND "player"='bartolo' AND "c_apps">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest round for Southern College?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest round for Southern College?`:
```sql
                SELECT MIN("round") FROM "indianapolis_colts_draft_history" WHERE "college"='southern';
```
## Task
Generate a SQL query to answer the following question:
`Who had the placekicker position with a round above 10?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the placekicker position with a round above 10?`:
```sql
                SELECT "name" FROM "indianapolis_colts_draft_history" WHERE "round">10 AND "position"='placekicker';
```
## Task
Generate a SQL query to answer the following question:
`What was the partner of the team that faced the guillermo garcía-lópez albert portas on clay?`

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

CREATE TABLE "doubles_10_5_5" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the partner of the team that faced the guillermo garcía-lópez albert portas on clay?`:
```sql
                SELECT "partner" FROM "doubles_10_5_5" WHERE "surface"='clay' AND "opponents"='guillermo garcía-lópez albert portas';
```
## Task
Generate a SQL query to answer the following question:
`What are the dates where the opponent was guillermo garcía-lópez albert portas?`

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

CREATE TABLE "doubles_10_5_5" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the dates where the opponent was guillermo garcía-lópez albert portas?`:
```sql
                SELECT "date" FROM "doubles_10_5_5" WHERE "opponents"='guillermo garcía-lópez albert portas';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year in the 125cc class with more than 102 points and a rank of 2nd?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year in the 125cc class with more than 102 points and a rank of 2nd?`:
```sql
                SELECT MIN("year") FROM "grand_prix_career_statistics" WHERE "class"='125cc' AND "points">102 AND "rank"='2nd';
```
## Task
Generate a SQL query to answer the following question:
`Which team had fewer than 167 points in the 250cc class?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had fewer than 167 points in the 250cc class?`:
```sql
                SELECT "team" FROM "grand_prix_career_statistics" WHERE "points"<167 AND "class"='250cc';
```
## Task
Generate a SQL query to answer the following question:
`For years before 1996, having a rank of 3rd in the 125cc class, what is the sum of the points?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `For years before 1996, having a rank of 3rd in the 125cc class, what is the sum of the points?`:
```sql
                SELECT SUM("points") FROM "grand_prix_career_statistics" WHERE "class"='125cc' AND "rank"='3rd' AND "year"<1996;
```
## Task
Generate a SQL query to answer the following question:
`Who did the Raiders play in week 12?`

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

CREATE TABLE "schedule" (
  "week" real,
  "opponent" text,
  "result" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the Raiders play in week 12?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"=12;
```
## Task
Generate a SQL query to answer the following question:
`How many people were at the game that took place at the Kingdome?`

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

CREATE TABLE "schedule" (
  "week" real,
  "opponent" text,
  "result" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were at the game that took place at the Kingdome?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "game_site"='the kingdome';
```
## Task
Generate a SQL query to answer the following question:
`Which is the LMS SPR when the car number was 15?`

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

CREATE TABLE "teams_championship" (
  "team" text,
  "car_no" text,
  "mnz_spr" text,
  "mnz_fea" text,
  "spa_spr" text,
  "spa_fea" text,
  "mon_fea" text,
  "sil_spr" text,
  "sil_fea" text,
  "hun_spr" text,
  "hun_fea" text,
  "lms_spr" text,
  "lms_fea" text,
  "cat_spr" text,
  "cat_fea" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the LMS SPR when the car number was 15?`:
```sql
                SELECT "lms_spr" FROM "teams_championship" WHERE "car_no"='15';
```
## Task
Generate a SQL query to answer the following question:
`When the CAT FEA is 3 how many points were scored?`

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

CREATE TABLE "teams_championship" (
  "team" text,
  "car_no" text,
  "mnz_spr" text,
  "mnz_fea" text,
  "spa_spr" text,
  "spa_fea" text,
  "mon_fea" text,
  "sil_spr" text,
  "sil_fea" text,
  "hun_spr" text,
  "hun_fea" text,
  "lms_spr" text,
  "lms_fea" text,
  "cat_spr" text,
  "cat_fea" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the CAT FEA is 3 how many points were scored?`:
```sql
                SELECT "points" FROM "teams_championship" WHERE "cat_fea"='3';
```
## Task
Generate a SQL query to answer the following question:
`What was the SPA FEA when the LMS FEA was 5?`

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

CREATE TABLE "teams_championship" (
  "team" text,
  "car_no" text,
  "mnz_spr" text,
  "mnz_fea" text,
  "spa_spr" text,
  "spa_fea" text,
  "mon_fea" text,
  "sil_spr" text,
  "sil_fea" text,
  "hun_spr" text,
  "hun_fea" text,
  "lms_spr" text,
  "lms_fea" text,
  "cat_spr" text,
  "cat_fea" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the SPA FEA when the LMS FEA was 5?`:
```sql
                SELECT "spa_fea" FROM "teams_championship" WHERE "lms_fea"='5';
```
## Task
Generate a SQL query to answer the following question:
`What was the MNZ FEA when the SIL SPR was 18?`

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

CREATE TABLE "teams_championship" (
  "team" text,
  "car_no" text,
  "mnz_spr" text,
  "mnz_fea" text,
  "spa_spr" text,
  "spa_fea" text,
  "mon_fea" text,
  "sil_spr" text,
  "sil_fea" text,
  "hun_spr" text,
  "hun_fea" text,
  "lms_spr" text,
  "lms_fea" text,
  "cat_spr" text,
  "cat_fea" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the MNZ FEA when the SIL SPR was 18?`:
```sql
                SELECT "mnz_fea" FROM "teams_championship" WHERE "sil_spr"='18';
```
## Task
Generate a SQL query to answer the following question:
`Which years did the Tampa Bay Storm win the Championships?`

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

CREATE TABLE "major_sports_teams" (
  "club" text,
  "sport" text,
  "league" text,
  "venue" text,
  "championships_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which years did the Tampa Bay Storm win the Championships?`:
```sql
                SELECT "championships_years" FROM "major_sports_teams" WHERE "club"='tampa bay storm';
```
## Task
Generate a SQL query to answer the following question:
`What is the height of the person born before 1975?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "player" text,
  "height" real,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the person born before 1975?`:
```sql
                SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "year_born"<1975;
```
## Task
Generate a SQL query to answer the following question:
`How many times did Ken Wright expired in North Western?`

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

CREATE TABLE "sources" (
  "name" text,
  "party" text,
  "province" text,
  "term_expires" real,
  "term_of_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did Ken Wright expired in North Western?`:
```sql
                SELECT COUNT("term_expires") FROM "sources" WHERE "province"='north western' AND "name"='ken wright';
```
## Task
Generate a SQL query to answer the following question:
`Which species on Réunion island is part of the procellariiformes order and is part of the hydrobatidae family and has less than 21 species worldwide?`

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

CREATE TABLE "birds" (
  "species" text,
  "order" text,
  "family" text,
  "species_worldwide" real,
  "species_on_r_union" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which species on Réunion island is part of the procellariiformes order and is part of the hydrobatidae family and has less than 21 species worldwide?`:
```sql
                SELECT SUM("species_on_r_union") FROM "birds" WHERE "order"='procellariiformes' AND "family"='hydrobatidae' AND "species_worldwide"<21;
```
## Task
Generate a SQL query to answer the following question:
`How many species does the sternidae family have worldwide with less than 9 species on Réunion?`

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

CREATE TABLE "birds" (
  "species" text,
  "order" text,
  "family" text,
  "species_worldwide" real,
  "species_on_r_union" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many species does the sternidae family have worldwide with less than 9 species on Réunion?`:
```sql
                SELECT COUNT("species_worldwide") FROM "birds" WHERE "family"='sternidae' AND "species_on_r_union"<9;
```
## Task
Generate a SQL query to answer the following question:
`How many species on Réunion do the dromadidae family have with a worldwide speices larger than 1?`

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

CREATE TABLE "birds" (
  "species" text,
  "order" text,
  "family" text,
  "species_worldwide" real,
  "species_on_r_union" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many species on Réunion do the dromadidae family have with a worldwide speices larger than 1?`:
```sql
                SELECT SUM("species_on_r_union") FROM "birds" WHERE "family"='dromadidae' AND "species_worldwide">1;
```
## Task
Generate a SQL query to answer the following question:
`Name the 2010 with tournament of 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,
  "2008" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2010 with tournament of grand slam tournaments`:
```sql
                SELECT "2010" FROM "doubles_performance_timeline" WHERE "tournament"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2008 with 2010 of 2r and wimbledon tournament`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2008" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2008 with 2010 of 2r and wimbledon tournament`:
```sql
                SELECT "2008" FROM "doubles_performance_timeline" WHERE "2010"='2r' AND "tournament"='wimbledon';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2013 for 2010 of 1r`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2008" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2013 for 2010 of 1r`:
```sql
                SELECT "2013" FROM "doubles_performance_timeline" WHERE "2010"='1r';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2010 for 2008 of 1r and tournament of us open`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2008" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2010 for 2008 of 1r and tournament of us open`:
```sql
                SELECT "2010" FROM "doubles_performance_timeline" WHERE "2008"='1r' AND "2011"='1r' AND "tournament"='us open';
```
## Task
Generate a SQL query to answer the following question:
`Which years have a Decile of 4, an Authority of state, and a Name of mapiu school?`

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

CREATE TABLE "waitomo_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which years have a Decile of 4, an Authority of state, and a Name of mapiu school?`:
```sql
                SELECT "years" FROM "waitomo_district" WHERE "decile"=4 AND "authority"='state' AND "name"='mapiu school';
```
## Task
Generate a SQL query to answer the following question:
`Which years have a Decile smaller than 6, an Area of te kuiti, and an Authority of state integrated?`

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

CREATE TABLE "waitomo_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which years have a Decile smaller than 6, an Area of te kuiti, and an Authority of state integrated?`:
```sql
                SELECT "years" FROM "waitomo_district" WHERE "decile"<6 AND "area"='te kuiti' AND "authority"='state integrated';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Decile with a state authority and a Name of mapiu school?`

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

CREATE TABLE "waitomo_district" (
  "name" text,
  "years" text,
  "gender" 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 with a state authority and a Name of mapiu school?`:
```sql
                SELECT AVG("decile") FROM "waitomo_district" WHERE "authority"='state' AND "name"='mapiu school';
```
## Task
Generate a SQL query to answer the following question:
`Which years have an Area of rangitoto?`

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

CREATE TABLE "waitomo_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which years have an Area of rangitoto?`:
```sql
                SELECT "years" FROM "waitomo_district" WHERE "area"='rangitoto';
```
## Task
Generate a SQL query to answer the following question:
`Which gender has a Name of rangitoto school?`

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

CREATE TABLE "waitomo_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which gender has a Name of rangitoto school?`:
```sql
                SELECT "gender" FROM "waitomo_district" WHERE "name"='rangitoto school';
```
## Task
Generate a SQL query to answer the following question:
`What is the t o par for Ralph Guldahl?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the t o par for Ralph Guldahl?`:
```sql
                SELECT "to_par" FROM "final_leaderboard" WHERE "player"='ralph guldahl';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for Ky Laffoon?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for Ky Laffoon?`:
```sql
                SELECT "score" FROM "final_leaderboard" WHERE "player"='ky laffoon';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of Ralph Guldahl, who has more than $100?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of Ralph Guldahl, who has more than $100?`:
```sql
                SELECT "score" FROM "final_leaderboard" WHERE "money">100 AND "player"='ralph guldahl';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest amount of money a play from Scotland United States has?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest amount of money a play from Scotland United States has?`:
```sql
                SELECT MAX("money") FROM "final_leaderboard" WHERE "country"='scotland united states';
```
## Task
Generate a SQL query to answer the following question:
`How many Goals have a Pct % larger than 0.557, a points value smaller than 90, and a games value larger than 68?`

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

CREATE TABLE "yearly_results" (
  "season" text,
  "games" real,
  "lost" real,
  "points" real,
  "pct_pct" real,
  "goals_for" real,
  "goals_against" real,
  "standing" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Goals have a Pct % larger than 0.557, a points value smaller than 90, and a games value larger than 68?`:
```sql
                SELECT COUNT("goals_for") FROM "yearly_results" WHERE "pct_pct">0.557 AND "points"<90 AND "games">68;
```
## Task
Generate a SQL query to answer the following question:
`What is the draw record (%) total for clubs with more than 3 wins with 10 matches and more than 1 draw?`

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

CREATE TABLE "tally" (
  "club" text,
  "matches" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "record_pct_draw_0_5_wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the draw record (%) total for clubs with more than 3 wins with 10 matches and more than 1 draw?`:
```sql
                SELECT COUNT("record_pct_draw_0_5_wins") FROM "tally" WHERE "wins">3 AND "matches"=10 AND "draws">1;
```
## Task
Generate a SQL query to answer the following question:
`How many draws, more than 6, does Newcastle Knights have with a record (%) larger than 25?`

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

CREATE TABLE "tally" (
  "club" text,
  "matches" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "record_pct_draw_0_5_wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many draws, more than 6, does Newcastle Knights have with a record (%) larger than 25?`:
```sql
                SELECT MAX("draws") FROM "tally" WHERE "matches">6 AND "club"='newcastle knights' AND "record_pct_draw_0_5_wins">25;
```
## Task
Generate a SQL query to answer the following question:
`Which club has the most losses with 10 matches played and more than 1 draw?`

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

CREATE TABLE "tally" (
  "club" text,
  "matches" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "record_pct_draw_0_5_wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which club has the most losses with 10 matches played and more than 1 draw?`:
```sql
                SELECT MAX("losses") FROM "tally" WHERE "matches"=10 AND "draws">1;
```
## Task
Generate a SQL query to answer the following question:
`The year of 1985 which has a BB +HBP of 39 has what Number listed?`

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

CREATE TABLE "career_statistics" (
  "year" text,
  "team" text,
  "number" text,
  "bb_hbp" real,
  "ba_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `The year of 1985 which has a BB +HBP of 39 has what Number listed?`:
```sql
                SELECT "number" FROM "career_statistics" WHERE "bb_hbp"=39 AND "year"='1985';
```
## Task
Generate a SQL query to answer the following question:
`The year that has a BB + HBP of 51 is listed as?`

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

CREATE TABLE "career_statistics" (
  "year" text,
  "team" text,
  "number" text,
  "bb_hbp" real,
  "ba_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `The year that has a BB + HBP of 51 is listed as?`:
```sql
                SELECT "year" FROM "career_statistics" WHERE "bb_hbp"=51;
```
## Task
Generate a SQL query to answer the following question:
`In the year 1992 for the Seibu Lions, the BB + HBP which is larger than 49 was this as a BA (Place)?`

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

CREATE TABLE "career_statistics" (
  "year" text,
  "team" text,
  "number" text,
  "bb_hbp" real,
  "ba_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the year 1992 for the Seibu Lions, the BB + HBP which is larger than 49 was this as a BA (Place)?`:
```sql
                SELECT "ba_place" FROM "career_statistics" WHERE "bb_hbp">49 AND "team"='seibu lions' AND "year"='1992';
```
## Task
Generate a SQL query to answer the following question:
`What team lost on May 1?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team lost on May 1?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "date"='may 1';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score for the game on May 1?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score for the game on May 1?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='may 1';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score for the game on May 4?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score for the game on May 4?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='may 4';
```
## Task
Generate a SQL query to answer the following question:
`In 1994 what tournament held a ATP masters series`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "career_sr" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 1994 what tournament held a ATP masters series`:
```sql
                SELECT "1994" FROM "doubles_performance_timeline" WHERE "tournament"='atp masters series';
```
## Task
Generate a SQL query to answer the following question:
`What is the Career SR of the year that held the masters series Sr tournament`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "career_sr" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Career SR of the year that held the masters series Sr tournament`:
```sql
                SELECT "career_sr" FROM "doubles_performance_timeline" WHERE "tournament"='masters series sr';
```
## Task
Generate a SQL query to answer the following question:
`WHich competition was held on Alvor with a score 1-0?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "location" text,
  "lineup" text,
  "assist_pass" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich competition was held on Alvor with a score 1-0?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "score"='1-0' AND "location"='alvor';
```
## Task
Generate a SQL query to answer the following question:
`Which name has a Lane of 7?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which name has a Lane of 7?`:
```sql
                SELECT "name" FROM "semifinal_1" WHERE "lane"=7;
```
## Task
Generate a SQL query to answer the following question:
`How many lanes have a Nationality of iceland?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many lanes have a Nationality of iceland?`:
```sql
                SELECT SUM("lane") FROM "semifinal_1" WHERE "nationality"='iceland';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest rank with a Lane of 1?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest rank with a Lane of 1?`:
```sql
                SELECT MIN("rank") FROM "semifinal_1" WHERE "lane"=1;
```
## Task
Generate a SQL query to answer the following question:
`What was the final score of Game 1?`

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

CREATE TABLE "summary" (
  "game" real,
  "date" text,
  "score" text,
  "location" text,
  "time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score of Game 1?`:
```sql
                SELECT "score" FROM "summary" WHERE "game"=1;
```
## Task
Generate a SQL query to answer the following question:
`What date has 2:48 as the time?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "time" text,
  "att" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has 2:48 as the time?`:
```sql
                SELECT "date" FROM "game_log" WHERE "time"='2:48';
```
## Task
Generate a SQL query to answer the following question:
`Which record has 2:57 as the time?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "time" text,
  "att" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which record has 2:57 as the time?`:
```sql
                SELECT "record" FROM "game_log" WHERE "time"='2:57';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Losing BP that has Played of 22, and the Lost of 5?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "try_bp" text,
  "losing_bp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Losing BP that has Played of 22, and the Lost of 5?`:
```sql
                SELECT "losing_bp" FROM "2009_2010_table" WHERE "played"='22' AND "lost"='5';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell the Lost that has the Try BP of 10, and the Club of uwic rfc?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "try_bp" text,
  "losing_bp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell the Lost that has the Try BP of 10, and the Club of uwic rfc?`:
```sql
                SELECT "lost" FROM "2009_2010_table" WHERE "try_bp"='10' AND "club"='uwic rfc';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Club that has the Lost of 19?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "try_bp" text,
  "losing_bp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Club that has the Lost of 19?`:
```sql
                SELECT "club" FROM "2009_2010_table" WHERE "lost"='19';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Lost that has Losing BP of 5, and the Try BP of 0?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "try_bp" text,
  "losing_bp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Lost that has Losing BP of 5, and the Try BP of 0?`:
```sql
                SELECT "lost" FROM "2009_2010_table" WHERE "losing_bp"='5' AND "try_bp"='0';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Played that has the Club of club?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "try_bp" text,
  "losing_bp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Played that has the Club of club?`:
```sql
                SELECT "played" FROM "2009_2010_table" WHERE "club"='club';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Club thay has the Try BP of 0?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "try_bp" text,
  "losing_bp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Club thay has the Try BP of 0?`:
```sql
                SELECT "club" FROM "2009_2010_table" WHERE "try_bp"='0';
```
## Task
Generate a SQL query to answer the following question:
`What date did the Mountaineers score 27 points and their opponent scored more that 7?`

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

CREATE TABLE "bowl_games" (
  "date" text,
  "bowl" text,
  "result" text,
  "points_for" real,
  "points_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the Mountaineers score 27 points and their opponent scored more that 7?`:
```sql
                SELECT "date" FROM "bowl_games" WHERE "points_against">7 AND "points_for"=27;
```
## Task
Generate a SQL query to answer the following question:
`What was the final result when the Mountaineers scored less than 13 and their opponents scored 26?`

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

CREATE TABLE "bowl_games" (
  "date" text,
  "bowl" text,
  "result" text,
  "points_for" real,
  "points_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final result when the Mountaineers scored less than 13 and their opponents scored 26?`:
```sql
                SELECT "result" FROM "bowl_games" WHERE "points_for"<13 AND "points_against"=26;
```
## Task
Generate a SQL query to answer the following question:
`With a Tally of 0-14, what is the Rank in Kilkenny County?`

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

CREATE TABLE "single_game" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "opposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a Tally of 0-14, what is the Rank in Kilkenny County?`:
```sql
                SELECT COUNT("rank") FROM "single_game" WHERE "county"='kilkenny' AND "tally"='0-14';
```
## Task
Generate a SQL query to answer the following question:
`What County has Dublin as the Opposition?`

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

CREATE TABLE "single_game" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "opposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What County has Dublin as the Opposition?`:
```sql
                SELECT "county" FROM "single_game" WHERE "opposition"='dublin';
```
## Task
Generate a SQL query to answer the following question:
`In Limerick County, what is the Rank with a Total larger than 12 and Tipperary as the Opposition?`

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

CREATE TABLE "single_game" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "opposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `In Limerick County, what is the Rank with a Total larger than 12 and Tipperary as the Opposition?`:
```sql
                SELECT AVG("rank") FROM "single_game" WHERE "opposition"='tipperary' AND "county"='limerick' AND "total">12;
```
## Task
Generate a SQL query to answer the following question:
`What Player in Opposition of Kilkenny has a Total of 10?`

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

CREATE TABLE "single_game" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "opposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Player in Opposition of Kilkenny has a Total of 10?`:
```sql
                SELECT "player" FROM "single_game" WHERE "total"=10 AND "opposition"='kilkenny';
```