cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the cancelable for onmouseover`

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

CREATE TABLE "common_w3_c_events" (
  "category" text,
  "type" text,
  "attribute" text,
  "bubbles" text,
  "cancelable" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the cancelable for onmouseover`:
```sql
                SELECT "cancelable" FROM "common_w3_c_events" WHERE "attribute"='onmouseover';
```
## Task
Generate a SQL query to answer the following question:
`Name the bubbles for onscroll`

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

CREATE TABLE "common_w3_c_events" (
  "category" text,
  "type" text,
  "attribute" text,
  "bubbles" text,
  "cancelable" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the bubbles for onscroll`:
```sql
                SELECT "bubbles" FROM "common_w3_c_events" WHERE "attribute"='onscroll';
```
## Task
Generate a SQL query to answer the following question:
`Name the attribute for mutation and domcharacterdatamodified`

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

CREATE TABLE "common_w3_c_events" (
  "category" text,
  "type" text,
  "attribute" text,
  "bubbles" text,
  "cancelable" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the attribute for mutation and domcharacterdatamodified`:
```sql
                SELECT "attribute" FROM "common_w3_c_events" WHERE "category"='mutation' AND "type"='domcharacterdatamodified';
```
## Task
Generate a SQL query to answer the following question:
`Who had high rebounds on May 1?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had high rebounds on May 1?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "date"='may 1';
```
## Task
Generate a SQL query to answer the following question:
`What location attendance had a score of l 92–116?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location attendance had a score of l 92–116?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "score"='l 92–116';
```
## Task
Generate a SQL query to answer the following question:
`Which name has a distance for 1st as 117.5?`

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

CREATE TABLE "oslo" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_nt_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which name has a distance for 1st as 117.5?`:
```sql
                SELECT "name" FROM "oslo" WHERE "1st_m"=117.5;
```
## Task
Generate a SQL query to answer the following question:
`What is the distance for Tom Hilde for 2nd when the 1st distance is more than 117.5?`

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

CREATE TABLE "oslo" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_nt_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distance for Tom Hilde for 2nd when the 1st distance is more than 117.5?`:
```sql
                SELECT "2nd_m" FROM "oslo" WHERE "1st_m">117.5 AND "name"='tom hilde';
```
## Task
Generate a SQL query to answer the following question:
`What are the most points for Thomas Morgenstern with a distance less than 123.5 in 2nd and rank over 4?`

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

CREATE TABLE "oslo" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_nt_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the most points for Thomas Morgenstern with a distance less than 123.5 in 2nd and rank over 4?`:
```sql
                SELECT MAX("points") FROM "oslo" WHERE "2nd_m"<123.5 AND "name"='thomas morgenstern' AND "rank">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the distances in 2nd for ranks higher than 4 and distance for 1st less than 111.5?`

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

CREATE TABLE "oslo" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_nt_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the distances in 2nd for ranks higher than 4 and distance for 1st less than 111.5?`:
```sql
                SELECT SUM("2nd_m") FROM "oslo" WHERE "rank">4 AND "1st_m"<111.5;
```
## Task
Generate a SQL query to answer the following question:
`Who had more than 247.1 points and less than 125 meter distance for 1st?`

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

CREATE TABLE "oslo" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_nt_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had more than 247.1 points and less than 125 meter distance for 1st?`:
```sql
                SELECT "name" FROM "oslo" WHERE "points">247.1 AND "1st_m"<125;
```
## Task
Generate a SQL query to answer the following question:
`What is the gold medal count that has a silver medal count less than 0?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gold medal count that has a silver medal count less than 0?`:
```sql
                SELECT MAX("gold") FROM "medals_table" WHERE "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of students for schools with a pupil to teacher ratio of 25.1?`

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

CREATE TABLE "schools" (
  "school_name" text,
  "city" text,
  "students" real,
  "fte_teachers" real,
  "pupil_teacher_ratio" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of students for schools with a pupil to teacher ratio of 25.1?`:
```sql
                SELECT AVG("students") FROM "schools" WHERE "pupil_teacher_ratio"=25.1;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest pupil to teacher ratio for Saratoga schools with smaller than 1213 students?`

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

CREATE TABLE "schools" (
  "school_name" text,
  "city" text,
  "students" real,
  "fte_teachers" real,
  "pupil_teacher_ratio" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest pupil to teacher ratio for Saratoga schools with smaller than 1213 students?`:
```sql
                SELECT MIN("pupil_teacher_ratio") FROM "schools" WHERE "city"='saratoga' AND "students"<1213;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of students for schools in Campbell with pupil to teacher ratios over 25?`

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

CREATE TABLE "schools" (
  "school_name" text,
  "city" text,
  "students" real,
  "fte_teachers" real,
  "pupil_teacher_ratio" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of students for schools in Campbell with pupil to teacher ratios over 25?`:
```sql
                SELECT MAX("students") FROM "schools" WHERE "city"='campbell' AND "pupil_teacher_ratio">25;
```
## Task
Generate a SQL query to answer the following question:
`Name the most rank for wins outdoor larger than 1 and wins indoor less than 0`

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

CREATE TABLE "wins_per_country" (
  "rank" real,
  "country" text,
  "wins_outdoor" real,
  "wins_indoor" real,
  "wins_total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most rank for wins outdoor larger than 1 and wins indoor less than 0`:
```sql
                SELECT MAX("rank") FROM "wins_per_country" WHERE "wins_outdoor">1 AND "wins_indoor"<0;
```
## Task
Generate a SQL query to answer the following question:
`Name the most rank for uk and wins more than 5`

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

CREATE TABLE "wins_per_country" (
  "rank" real,
  "country" text,
  "wins_outdoor" real,
  "wins_indoor" real,
  "wins_total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most rank for uk and wins more than 5`:
```sql
                SELECT MAX("rank") FROM "wins_per_country" WHERE "country"='uk' AND "wins_indoor">5;
```
## Task
Generate a SQL query to answer the following question:
`Name the average wins outdoor with rank more than 4 and wins less than 3 with outdoor wins more than 0`

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

CREATE TABLE "wins_per_country" (
  "rank" real,
  "country" text,
  "wins_outdoor" real,
  "wins_indoor" real,
  "wins_total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average wins outdoor with rank more than 4 and wins less than 3 with outdoor wins more than 0`:
```sql
                SELECT AVG("wins_outdoor") FROM "wins_per_country" WHERE "rank">4 AND "wins_total"<3 AND "wins_indoor">0;
```
## Task
Generate a SQL query to answer the following question:
`Name the most wins total with wins indoor of 0 and wins outdoor of 1 with rank less than 7`

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

CREATE TABLE "wins_per_country" (
  "rank" real,
  "country" text,
  "wins_outdoor" real,
  "wins_indoor" real,
  "wins_total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most wins total with wins indoor of 0 and wins outdoor of 1 with rank less than 7`:
```sql
                SELECT MAX("wins_total") FROM "wins_per_country" WHERE "wins_indoor"=0 AND "wins_outdoor"=1 AND "rank"<7;
```
## Task
Generate a SQL query to answer the following question:
`What was the frame size in 08/87?`

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

CREATE TABLE "portfolio" (
  "print_name" text,
  "nickname" text,
  "number_of_colors" text,
  "framed_size" text,
  "date_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the frame size in 08/87?`:
```sql
                SELECT "framed_size" FROM "portfolio" WHERE "date_completed"='08/87';
```
## Task
Generate a SQL query to answer the following question:
`What was the print name in 07/87?`

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

CREATE TABLE "portfolio" (
  "print_name" text,
  "nickname" text,
  "number_of_colors" text,
  "framed_size" text,
  "date_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the print name in 07/87?`:
```sql
                SELECT "print_name" FROM "portfolio" WHERE "date_completed"='07/87';
```
## Task
Generate a SQL query to answer the following question:
`What is the frame size that was nicknamed Grand Central?`

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

CREATE TABLE "portfolio" (
  "print_name" text,
  "nickname" text,
  "number_of_colors" text,
  "framed_size" text,
  "date_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frame size that was nicknamed Grand Central?`:
```sql
                SELECT "framed_size" FROM "portfolio" WHERE "nickname"='grand central';
```
## Task
Generate a SQL query to answer the following question:
`When was the Little Tavern completed?`

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

CREATE TABLE "portfolio" (
  "print_name" text,
  "nickname" text,
  "number_of_colors" text,
  "framed_size" text,
  "date_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the Little Tavern completed?`:
```sql
                SELECT "date_completed" FROM "portfolio" WHERE "nickname"='little tavern';
```
## Task
Generate a SQL query to answer the following question:
`How much Average has a Team of san lorenzo, and a 1990-1991 smaller than 45?`

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

CREATE TABLE "relegation" (
  "team" text,
  "average" real,
  "points" real,
  "played" real,
  "1988_89" text,
  "1989_90" text,
  "1990_1991" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Average has a Team of san lorenzo, and a 1990-1991 smaller than 45?`:
```sql
                SELECT COUNT("average") FROM "relegation" WHERE "team"='san lorenzo' AND "1990_1991"<45;
```
## Task
Generate a SQL query to answer the following question:
`Which Played is the lowest one that has a 1989-90 of 39, and a Team of gimnasia de la plata, and Points larger than 108?`

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

CREATE TABLE "relegation" (
  "team" text,
  "average" real,
  "points" real,
  "played" real,
  "1988_89" text,
  "1989_90" text,
  "1990_1991" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Played is the lowest one that has a 1989-90 of 39, and a Team of gimnasia de la plata, and Points larger than 108?`:
```sql
                SELECT MIN("played") FROM "relegation" WHERE "1989_90"='39' AND "team"='gimnasia de la plata' AND "points">108;
```
## Task
Generate a SQL query to answer the following question:
`Which 1990-1991 is the average one that has Played of 38, and Points of 40?`

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

CREATE TABLE "relegation" (
  "team" text,
  "average" real,
  "points" real,
  "played" real,
  "1988_89" text,
  "1989_90" text,
  "1990_1991" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1990-1991 is the average one that has Played of 38, and Points of 40?`:
```sql
                SELECT AVG("1990_1991") FROM "relegation" WHERE "played"=38 AND "points"=40;
```
## Task
Generate a SQL query to answer the following question:
`Which College/Junior/Club Team  has a Nationality of Canada and Jeff brown?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which College/Junior/Club Team  has a Nationality of Canada and Jeff brown?`:
```sql
                SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "nationality"='canada' AND "player"='jeff brown';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a Hc Cska Moscow (Russia)?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Hc Cska Moscow (Russia)?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "college_junior_club_team_league"='hc cska moscow (russia)';
```
## Task
Generate a SQL query to answer the following question:
`What is Nationality of daniel goneau?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Nationality of daniel goneau?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "player"='daniel goneau';
```
## Task
Generate a SQL query to answer the following question:
`What points have 500cc as a class, and nsr500 as a machine?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "machine" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What points have 500cc as a class, and nsr500 as a machine?`:
```sql
                SELECT "points" FROM "motorcycle_grand_prix_results" WHERE "class"='500cc' AND "machine"='nsr500';
```
## Task
Generate a SQL query to answer the following question:
`How many years have 78 for points?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "machine" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many years have 78 for points?`:
```sql
                SELECT COUNT("year") FROM "motorcycle_grand_prix_results" WHERE "points"=78;
```
## Task
Generate a SQL query to answer the following question:
`What class has nsr250 as the machine, with points greater than 97?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "machine" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What class has nsr250 as the machine, with points greater than 97?`:
```sql
                SELECT "class" FROM "motorcycle_grand_prix_results" WHERE "machine"='nsr250' AND "points">97;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest year that have wins greater than 0?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "machine" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest year that have wins greater than 0?`:
```sql
                SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`What are the highest points that have a year less than 1992, with wins less than 0?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "machine" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the highest points that have a year less than 1992, with wins less than 0?`:
```sql
                SELECT MAX("points") FROM "motorcycle_grand_prix_results" WHERE "year"<1992 AND "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest attendance at a game against the St. Louis Cardinals?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest attendance at a game against the St. Louis Cardinals?`:
```sql
                SELECT MIN("attendance") FROM "schedule" WHERE "opponent"='st. louis cardinals';
```
## Task
Generate a SQL query to answer the following question:
`What district is the parish Milburn in?`

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

CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
  "name" text,
  "status" text,
  "population" real,
  "district" text,
  "former_local_authority" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district is the parish Milburn in?`:
```sql
                SELECT "district" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "name"='milburn';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the parish that has a population larger than 2,156, a former local authority of Dalton in furness urban district, and a status of a civil parish?`

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

CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
  "name" text,
  "status" text,
  "population" real,
  "district" text,
  "former_local_authority" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the parish that has a population larger than 2,156, a former local authority of Dalton in furness urban district, and a status of a civil parish?`:
```sql
                SELECT "name" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "status"='civil parish' AND "population">'2,156' AND "former_local_authority"='dalton in furness urban district';
```
## Task
Generate a SQL query to answer the following question:
`What is the population of the Parish, Plumbland, that had a former local authority of Cockermouth Rural District?`

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

CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
  "name" text,
  "status" text,
  "population" real,
  "district" text,
  "former_local_authority" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population of the Parish, Plumbland, that had a former local authority of Cockermouth Rural District?`:
```sql
                SELECT COUNT("population") FROM "list_of_civil_parishes_and_unparished_ar" WHERE "former_local_authority"='cockermouth rural district' AND "name"='plumbland';
```
## Task
Generate a SQL query to answer the following question:
`What is the district for the parish, Brough?`

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

CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
  "name" text,
  "status" text,
  "population" real,
  "district" text,
  "former_local_authority" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the district for the parish, Brough?`:
```sql
                SELECT "district" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "name"='brough';
```
## Task
Generate a SQL query to answer the following question:
`Who were the former local authority for the civil parish, Ennerdale and Kinniside in the copeland district, with less than 1,280 in population?`

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

CREATE TABLE "list_of_civil_parishes_and_unparished_ar" (
  "name" text,
  "status" text,
  "population" real,
  "district" text,
  "former_local_authority" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the former local authority for the civil parish, Ennerdale and Kinniside in the copeland district, with less than 1,280 in population?`:
```sql
                SELECT "former_local_authority" FROM "list_of_civil_parishes_and_unparished_ar" WHERE "status"='civil parish' AND "district"='copeland' AND "population"<'1,280' AND "name"='ennerdale and kinniside';
```
## Task
Generate a SQL query to answer the following question:
`What year featured lola motorsport as an entrant with over 0 points?`

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

CREATE TABLE "complete_international_formula_3000_resu" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year featured lola motorsport as an entrant with over 0 points?`:
```sql
                SELECT AVG("year") FROM "complete_international_formula_3000_resu" WHERE "entrant"='lola motorsport' AND "points">0;
```
## Task
Generate a SQL query to answer the following question:
`When is the earliest year that there's a judd engine?`

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

CREATE TABLE "complete_international_formula_3000_resu" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `When is the earliest year that there's a judd engine?`:
```sql
                SELECT MIN("year") FROM "complete_international_formula_3000_resu" WHERE "engine"='judd';
```
## Task
Generate a SQL query to answer the following question:
`What chassis is used in 1989 with a cosworth engine?`

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

CREATE TABLE "complete_international_formula_3000_resu" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What chassis is used in 1989 with a cosworth engine?`:
```sql
                SELECT "chassis" FROM "complete_international_formula_3000_resu" WHERE "year"=1989 AND "engine"='cosworth';
```
## Task
Generate a SQL query to answer the following question:
`Where was something built earlier than 1858?`

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

CREATE TABLE "table_4_early_o_s_n_monopoly_boats" (
  "name" text,
  "type" text,
  "year_built" real,
  "where_built" text,
  "initial_owners" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was something built earlier than 1858?`:
```sql
                SELECT "where_built" FROM "table_4_early_o_s_n_monopoly_boats" WHERE "year_built"<1858;
```
## Task
Generate a SQL query to answer the following question:
`What was built in 1857?`

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

CREATE TABLE "table_4_early_o_s_n_monopoly_boats" (
  "name" text,
  "type" text,
  "year_built" real,
  "where_built" text,
  "initial_owners" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was built in 1857?`:
```sql
                SELECT "name" FROM "table_4_early_o_s_n_monopoly_boats" WHERE "year_built"=1857;
```
## Task
Generate a SQL query to answer the following question:
`Who were the initial owners of Wasco in 1858?`

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

CREATE TABLE "table_4_early_o_s_n_monopoly_boats" (
  "name" text,
  "type" text,
  "year_built" real,
  "where_built" text,
  "initial_owners" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the initial owners of Wasco in 1858?`:
```sql
                SELECT "initial_owners" FROM "table_4_early_o_s_n_monopoly_boats" WHERE "year_built"=1858 AND "name"='wasco';
```
## Task
Generate a SQL query to answer the following question:
`What was the type of boat built in Port Blakeley`

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

CREATE TABLE "table_4_early_o_s_n_monopoly_boats" (
  "name" text,
  "type" text,
  "year_built" real,
  "where_built" text,
  "initial_owners" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the type of boat built in Port Blakeley`:
```sql
                SELECT "type" FROM "table_4_early_o_s_n_monopoly_boats" WHERE "where_built"='port blakeley';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game at Arrowhead Stadium?`

### 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,
  "location" text,
  "time_et" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game at Arrowhead Stadium?`:
```sql
                SELECT "date" FROM "schedule" WHERE "location"='arrowhead stadium';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent of the game after week 4 on Sun. Nov. 17?`

### 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,
  "location" text,
  "time_et" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent of the game after week 4 on Sun. Nov. 17?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week">4 AND "date"='sun. nov. 17';
```
## Task
Generate a SQL query to answer the following question:
`What's the median family income with a household income of $25,583?`

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

CREATE TABLE "new_mexico_counties_ranked_by_per_capita" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the median family income with a household income of $25,583?`:
```sql
                SELECT "median_family_income" FROM "new_mexico_counties_ranked_by_per_capita" WHERE "median_household_income"='$25,583';
```
## Task
Generate a SQL query to answer the following question:
`What's the $51,914 median household income per capita?`

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

CREATE TABLE "new_mexico_counties_ranked_by_per_capita" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the $51,914 median household income per capita?`:
```sql
                SELECT "per_capita_income" FROM "new_mexico_counties_ranked_by_per_capita" WHERE "median_household_income"='$51,914';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning score when Steve Stricker was runner-up?`

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

CREATE TABLE "pga_tour_wins_5" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score when Steve Stricker was runner-up?`:
```sql
                SELECT "winning_score" FROM "pga_tour_wins_5" WHERE "runner_s_up"='steve stricker';
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory when the winning score was −14 (63-67-73-67=270)?`

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

CREATE TABLE "pga_tour_wins_5" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory when the winning score was −14 (63-67-73-67=270)?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_5" WHERE "winning_score"='−14 (63-67-73-67=270)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the runnerup when the margin of victory was 1 stroke on jan 30, 2000?`

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

CREATE TABLE "pga_tour_wins_5" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runnerup when the margin of victory was 1 stroke on jan 30, 2000?`:
```sql
                SELECT "runner_s_up" FROM "pga_tour_wins_5" WHERE "margin_of_victory"='1 stroke' AND "date"='jan 30, 2000';
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory when the winning score was −12 (66-67-64-71=268)?`

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

CREATE TABLE "pga_tour_wins_5" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory when the winning score was −12 (66-67-64-71=268)?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_5" WHERE "winning_score"='−12 (66-67-64-71=268)';
```
## Task
Generate a SQL query to answer the following question:
`What day was the margin of victory 1 stroke when the tournament was colonial national invitation?`

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

CREATE TABLE "pga_tour_wins_5" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was the margin of victory 1 stroke when the tournament was colonial national invitation?`:
```sql
                SELECT "date" FROM "pga_tour_wins_5" WHERE "margin_of_victory"='1 stroke' AND "tournament"='colonial national invitation';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning score for runnerup Greg Norman`

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

CREATE TABLE "pga_tour_wins_5" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score for runnerup Greg Norman`:
```sql
                SELECT "winning_score" FROM "pga_tour_wins_5" WHERE "runner_s_up"='greg norman';
```
## Task
Generate a SQL query to answer the following question:
`Which Builder has a Pennant number of Q149?`

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

CREATE TABLE "first_series" (
  "name" text,
  "pennant_number" text,
  "ordered" real,
  "builder" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Builder has a Pennant number of Q149?`:
```sql
                SELECT "builder" FROM "first_series" WHERE "pennant_number"='q149';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the ship with a Pennant number of Q144 commissioned?`

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

CREATE TABLE "first_series" (
  "name" text,
  "pennant_number" text,
  "ordered" real,
  "builder" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the ship with a Pennant number of Q144 commissioned?`:
```sql
                SELECT "commissioned" FROM "first_series" WHERE "pennant_number"='q144';
```
## Task
Generate a SQL query to answer the following question:
`How many ships are named Monge?`

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

CREATE TABLE "first_series" (
  "name" text,
  "pennant_number" text,
  "ordered" real,
  "builder" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many ships are named Monge?`:
```sql
                SELECT COUNT("ordered") FROM "first_series" WHERE "name"='monge';
```
## Task
Generate a SQL query to answer the following question:
`What launched has mariner 4 as the spacecraft?`

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

CREATE TABLE "1960s" (
  "spacecraft" text,
  "destination" text,
  "launched" text,
  "closest_approach" text,
  "time_elapsed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What launched has mariner 4 as the spacecraft?`:
```sql
                SELECT "launched" FROM "1960s" WHERE "spacecraft"='mariner 4';
```
## Task
Generate a SQL query to answer the following question:
`What launched has 158 days (5 months, 8 days) as the time elapsed?`

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

CREATE TABLE "1960s" (
  "spacecraft" text,
  "destination" text,
  "launched" text,
  "closest_approach" text,
  "time_elapsed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What launched has 158 days (5 months, 8 days) as the time elapsed?`:
```sql
                SELECT "launched" FROM "1960s" WHERE "time_elapsed"='158 days (5 months, 8 days)';
```
## Task
Generate a SQL query to answer the following question:
`When was the song by Andy Gibb issued?`

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

CREATE TABLE "see_also" (
  "volume_issue" text,
  "issue_date_s" text,
  "weeks_on_top" real,
  "song" text,
  "artist" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the song by Andy Gibb issued?`:
```sql
                SELECT "issue_date_s" FROM "see_also" WHERE "artist"='andy gibb';
```
## Task
Generate a SQL query to answer the following question:
`Which Round has a College of stanford, and an Overall smaller than 8?`

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

CREATE TABLE "atlanta_falcons_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 `Which Round has a College of stanford, and an Overall smaller than 8?`:
```sql
                SELECT AVG("round") FROM "atlanta_falcons_draft_history" WHERE "college"='stanford' AND "overall"<8;
```
## Task
Generate a SQL query to answer the following question:
`How many Picks have a College of tennessee, and an Overall smaller than 270?`

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

CREATE TABLE "atlanta_falcons_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 `How many Picks have a College of tennessee, and an Overall smaller than 270?`:
```sql
                SELECT SUM("pick_num") FROM "atlanta_falcons_draft_history" WHERE "college"='tennessee' AND "overall"<270;
```
## Task
Generate a SQL query to answer the following question:
`Which Pick # is the lowest one that has a College of troy state, and a Name of reggie dwight, and an Overall smaller than 217?`

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

CREATE TABLE "atlanta_falcons_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 `Which Pick # is the lowest one that has a College of troy state, and a Name of reggie dwight, and an Overall smaller than 217?`:
```sql
                SELECT MIN("pick_num") FROM "atlanta_falcons_draft_history" WHERE "college"='troy state' AND "name"='reggie dwight' AND "overall"<217;
```
## Task
Generate a SQL query to answer the following question:
`What's the smallest amount of earnings when the wins are less than 72 and the rank is more than 3?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest amount of earnings when the wins are less than 72 and the rank is more than 3?`:
```sql
                SELECT MIN("earnings") FROM "leaders" WHERE "wins"<72 AND "rank">3;
```
## Task
Generate a SQL query to answer the following question:
`What's the least amount of wins with earnings that are more than $2,556,043, and where Lee Trevino is a player?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the least amount of wins with earnings that are more than $2,556,043, and where Lee Trevino is a player?`:
```sql
                SELECT MIN("wins") FROM "leaders" WHERE "earnings">'2,556,043' AND "player"='lee trevino';
```
## Task
Generate a SQL query to answer the following question:
`What's the smallest amount of earnings when there are more than 18 wins and the rank is 2?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest amount of earnings when there are more than 18 wins and the rank is 2?`:
```sql
                SELECT MIN("earnings") FROM "leaders" WHERE "wins">18 AND "rank"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of losses for a team with more than 0 wins?`

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

CREATE TABLE "great_britain" (
  "season" text,
  "team" text,
  "wins" real,
  "losses" real,
  "draws" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of losses for a team with more than 0 wins?`:
```sql
                SELECT MIN("losses") FROM "great_britain" WHERE "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of losses for teams with fewer than 0 wins?`

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

CREATE TABLE "great_britain" (
  "season" text,
  "team" text,
  "wins" real,
  "losses" real,
  "draws" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of losses for teams with fewer than 0 wins?`:
```sql
                SELECT AVG("losses") FROM "great_britain" WHERE "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of wins for Runcorn Highfield with more than 0 draws?`

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

CREATE TABLE "great_britain" (
  "season" text,
  "team" text,
  "wins" real,
  "losses" real,
  "draws" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of wins for Runcorn Highfield with more than 0 draws?`:
```sql
                SELECT AVG("wins") FROM "great_britain" WHERE "team"='runcorn highfield' AND "draws">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of losses for Nottingham City with fewer than 0 wins?`

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

CREATE TABLE "great_britain" (
  "season" text,
  "team" text,
  "wins" real,
  "losses" real,
  "draws" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of losses for Nottingham City with fewer than 0 wins?`:
```sql
                SELECT MIN("losses") FROM "great_britain" WHERE "team"='nottingham city' AND "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the weight of the player from the Philadelphia 76ers?`

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

CREATE TABLE "contestants" (
  "pos" text,
  "player" text,
  "team" text,
  "height" text,
  "weight" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weight of the player from the Philadelphia 76ers?`:
```sql
                SELECT COUNT("weight") FROM "contestants" WHERE "team"='philadelphia 76ers';
```
## Task
Generate a SQL query to answer the following question:
`What is the height of the player, Larry Hughes?`

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

CREATE TABLE "contestants" (
  "pos" text,
  "player" text,
  "team" text,
  "height" text,
  "weight" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the player, Larry Hughes?`:
```sql
                SELECT "height" FROM "contestants" WHERE "player"='larry hughes';
```
## Task
Generate a SQL query to answer the following question:
`What player was moved to Blackpool?`

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

CREATE TABLE "first_team" (
  "start_date" text,
  "end_date" text,
  "pos" text,
  "player" text,
  "to_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player was moved to Blackpool?`:
```sql
                SELECT "player" FROM "first_team" WHERE "to_club"='blackpool';
```
## Task
Generate a SQL query to answer the following question:
`A player was moved to celtic had an end of what date?`

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

CREATE TABLE "first_team" (
  "start_date" text,
  "end_date" text,
  "pos" text,
  "player" text,
  "to_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `A player was moved to celtic had an end of what date?`:
```sql
                SELECT "end_date" FROM "first_team" WHERE "to_club"='celtic';
```