cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Location Attendance has a Game larger than 5?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location Attendance has a Game larger than 5?`:
```sql
                SELECT "location_attendance" FROM "playoffs" WHERE "game">5;
```
## Task
Generate a SQL query to answer the following question:
`Which Team has a Score of 89-123?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team has a Score of 89-123?`:
```sql
                SELECT "team" FROM "playoffs" WHERE "score"='89-123';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Game with a Date that is june 14?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Game with a Date that is june 14?`:
```sql
                SELECT AVG("game") FROM "playoffs" WHERE "date"='june 14';
```
## Task
Generate a SQL query to answer the following question:
`What is the Record with a Team that is detroit and a Date that is june 10?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record with a Team that is detroit and a Date that is june 10?`:
```sql
                SELECT "record" FROM "playoffs" WHERE "team"='detroit' AND "date"='june 10';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location Attendance with a Record that is 1-4?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location Attendance with a Record that is 1-4?`:
```sql
                SELECT "location_attendance" FROM "playoffs" WHERE "record"='1-4';
```
## Task
Generate a SQL query to answer the following question:
`How much is the GDP for a population density of 254.7?`

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

CREATE TABLE "demographics" (
  "country" text,
  "area_km" text,
  "population_2011_est" text,
  "population_density_per_km" text,
  "gdp_ppp_m_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much is the GDP for a population density of 254.7?`:
```sql
                SELECT "gdp_ppp_m_usd" FROM "demographics" WHERE "population_density_per_km"='254.7';
```
## Task
Generate a SQL query to answer the following question:
`Which country has a population density of 50.3?`

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

CREATE TABLE "demographics" (
  "country" text,
  "area_km" text,
  "population_2011_est" text,
  "population_density_per_km" text,
  "gdp_ppp_m_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has a population density of 50.3?`:
```sql
                SELECT "country" FROM "demographics" WHERE "population_density_per_km"='50.3';
```
## Task
Generate a SQL query to answer the following question:
`How much is the GDP for an area of 61,395?`

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

CREATE TABLE "demographics" (
  "country" text,
  "area_km" text,
  "population_2011_est" text,
  "population_density_per_km" text,
  "gdp_ppp_m_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much is the GDP for an area of 61,395?`:
```sql
                SELECT "gdp_ppp_m_usd" FROM "demographics" WHERE "area_km"='61,395';
```
## Task
Generate a SQL query to answer the following question:
`How much is the population density with a GDP at $188,112?`

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

CREATE TABLE "demographics" (
  "country" text,
  "area_km" text,
  "population_2011_est" text,
  "population_density_per_km" text,
  "gdp_ppp_m_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much is the population density with a GDP at $188,112?`:
```sql
                SELECT "population_density_per_km" FROM "demographics" WHERE "gdp_ppp_m_usd"='$188,112';
```
## Task
Generate a SQL query to answer the following question:
`How much is the GDP for an area of 116?`

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

CREATE TABLE "demographics" (
  "country" text,
  "area_km" text,
  "population_2011_est" text,
  "population_density_per_km" text,
  "gdp_ppp_m_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much is the GDP for an area of 116?`:
```sql
                SELECT "gdp_ppp_m_usd" FROM "demographics" WHERE "area_km"='116';
```
## Task
Generate a SQL query to answer the following question:
`Which country has a population of 3,221,216?`

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

CREATE TABLE "demographics" (
  "country" text,
  "area_km" text,
  "population_2011_est" text,
  "population_density_per_km" text,
  "gdp_ppp_m_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has a population of 3,221,216?`:
```sql
                SELECT "country" FROM "demographics" WHERE "population_2011_est"='3,221,216';
```
## Task
Generate a SQL query to answer the following question:
`What was Miller Barber wins with Top-5 less than 2 and 19 Events?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Miller Barber wins with Top-5 less than 2 and 19 Events?`:
```sql
                SELECT COUNT("wins") FROM "summary" WHERE "top_5"<2 AND "events"=19;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of Wins in a PGA Championship with a Top-5 less than 2?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of Wins in a PGA Championship with a Top-5 less than 2?`:
```sql
                SELECT AVG("wins") FROM "summary" WHERE "tournament"='pga championship' AND "top_5"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Top-5 ranking with Events less than 4?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Top-5 ranking with Events less than 4?`:
```sql
                SELECT MAX("top_5") FROM "summary" WHERE "events"<4;
```
## Task
Generate a SQL query to answer the following question:
`Which week's game was attended by 65,272 people?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week's game was attended by 65,272 people?`:
```sql
                SELECT "week" FROM "schedule" WHERE "attendance"='65,272';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the game in week 13?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game in week 13?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week"=13;
```
## Task
Generate a SQL query to answer the following question:
`During which week was the earliest game with an attendance of 65,904 people?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `During which week was the earliest game with an attendance of 65,904 people?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "attendance"='65,904';
```
## Task
Generate a SQL query to answer the following question:
`What height is the tallest for an outside hitter?`

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

CREATE TABLE "team_roster" (
  "nationality" text,
  "player" text,
  "birth_date" text,
  "height" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What height is the tallest for an outside hitter?`:
```sql
                SELECT MAX("height") FROM "team_roster" WHERE "position"='outside hitter';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest silver rank with a total of 27?`

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

CREATE TABLE "medal_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 highest silver rank with a total of 27?`:
```sql
                SELECT MAX("silver") FROM "medal_table" WHERE "total"=27;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Silver when Bronze was smaller than 1 with a total smaller than 2 in Bulgaria?`

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

CREATE TABLE "medal_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 total number of Silver when Bronze was smaller than 1 with a total smaller than 2 in Bulgaria?`:
```sql
                SELECT COUNT("silver") FROM "medal_table" WHERE "bronze"<1 AND "total"<2 AND "nation"='bulgaria';
```
## Task
Generate a SQL query to answer the following question:
`What is the temperature classification of a purple colored glass bulb?`

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

CREATE TABLE "operation" (
  "maximum_ceiling_temperature" text,
  "temperature_rating" text,
  "temperature_classification" text,
  "color_code_with_fusible_link" text,
  "glass_bulb_color" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the temperature classification of a purple colored glass bulb?`:
```sql
                SELECT "temperature_classification" FROM "operation" WHERE "glass_bulb_color"='purple';
```
## Task
Generate a SQL query to answer the following question:
`What is the color code with a temperature classification of ordinary?`

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

CREATE TABLE "operation" (
  "maximum_ceiling_temperature" text,
  "temperature_rating" text,
  "temperature_classification" text,
  "color_code_with_fusible_link" text,
  "glass_bulb_color" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the color code with a temperature classification of ordinary?`:
```sql
                SELECT "color_code_with_fusible_link" FROM "operation" WHERE "temperature_classification"='ordinary';
```
## Task
Generate a SQL query to answer the following question:
`What is the temperature rating of the intermediate temperature classification?`

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

CREATE TABLE "operation" (
  "maximum_ceiling_temperature" text,
  "temperature_rating" text,
  "temperature_classification" text,
  "color_code_with_fusible_link" text,
  "glass_bulb_color" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the temperature rating of the intermediate temperature classification?`:
```sql
                SELECT "temperature_rating" FROM "operation" WHERE "temperature_classification"='intermediate';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Goals for team Kairat, in the 2002 season with more than 29 apps?`

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

CREATE TABLE "club_career_stats" (
  "season" text,
  "team" text,
  "country" text,
  "league" text,
  "level" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Goals for team Kairat, in the 2002 season with more than 29 apps?`:
```sql
                SELECT AVG("goals") FROM "club_career_stats" WHERE "team"='kairat' AND "season"='2002' AND "apps">29;
```
## Task
Generate a SQL query to answer the following question:
`What is the Country for the 2006-07 season?`

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

CREATE TABLE "club_career_stats" (
  "season" text,
  "team" text,
  "country" text,
  "league" text,
  "level" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Country for the 2006-07 season?`:
```sql
                SELECT "country" FROM "club_career_stats" WHERE "season"='2006-07';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Apps for the team Kairat with level larger than 1?`

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

CREATE TABLE "club_career_stats" (
  "season" text,
  "team" text,
  "country" text,
  "league" text,
  "level" real,
  "apps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Apps for the team Kairat with level larger than 1?`:
```sql
                SELECT AVG("apps") FROM "club_career_stats" WHERE "team"='kairat' AND "level">1;
```
## Task
Generate a SQL query to answer the following question:
`How many laps did the rider with a grid larger than 11, a Honda cbr1000rr bike, and a time of +42.633?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps did the rider with a grid larger than 11, a Honda cbr1000rr bike, and a time of +42.633?`:
```sql
                SELECT "laps" FROM "superbike_race_2_classification" WHERE "grid">11 AND "bike"='honda cbr1000rr' AND "time"='+42.633';
```
## Task
Generate a SQL query to answer the following question:
`Who was teh rider with 18 laps and a grid of 25?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was teh rider with 18 laps and a grid of 25?`:
```sql
                SELECT "rider" FROM "superbike_race_2_classification" WHERE "laps"=18 AND "grid"=25;
```
## Task
Generate a SQL query to answer the following question:
`Who was the rider who had an accident time and a kawasaki zx-10r bike?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the rider who had an accident time and a kawasaki zx-10r bike?`:
```sql
                SELECT "rider" FROM "superbike_race_2_classification" WHERE "time"='accident' AND "bike"='kawasaki zx-10r';
```
## Task
Generate a SQL query to answer the following question:
`What is the time of rider Loic Napoleone, who had less than 18 laps and a grid greater than 8?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time of rider Loic Napoleone, who had less than 18 laps and a grid greater than 8?`:
```sql
                SELECT "time" FROM "superbike_race_2_classification" WHERE "laps"<18 AND "grid">8 AND "rider"='loic napoleone';
```
## Task
Generate a SQL query to answer the following question:
`How many laps did the rider with a grid larger than 14 and a time of +33.150 have?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps did the rider with a grid larger than 14 and a time of +33.150 have?`:
```sql
                SELECT "laps" FROM "superbike_race_2_classification" WHERE "grid">14 AND "time"='+33.150';
```
## Task
Generate a SQL query to answer the following question:
`What is Away, when Home is Guelph Gargoyles?`

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

CREATE TABLE "round_one" (
  "date" text,
  "time" text,
  "home" text,
  "away" text,
  "score" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Away, when Home is Guelph Gargoyles?`:
```sql
                SELECT "away" FROM "round_one" WHERE "home"='guelph gargoyles';
```
## Task
Generate a SQL query to answer the following question:
`What is Home, when Ground is Humber College North, and when Time is 15:00?`

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

CREATE TABLE "round_one" (
  "date" text,
  "time" text,
  "home" text,
  "away" text,
  "score" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Home, when Ground is Humber College North, and when Time is 15:00?`:
```sql
                SELECT "home" FROM "round_one" WHERE "ground"='humber college north' AND "time"='15:00';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Away is High Park Demons?`

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

CREATE TABLE "round_one" (
  "date" text,
  "time" text,
  "home" text,
  "away" text,
  "score" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Away is High Park Demons?`:
```sql
                SELECT "date" FROM "round_one" WHERE "away"='high park demons';
```
## Task
Generate a SQL query to answer the following question:
`What is Time, when Away is Central Blues?`

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

CREATE TABLE "round_one" (
  "date" text,
  "time" text,
  "home" text,
  "away" text,
  "score" text,
  "ground" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Time, when Away is Central Blues?`:
```sql
                SELECT "time" FROM "round_one" WHERE "away"='central blues';
```
## Task
Generate a SQL query to answer the following question:
`What cover has a published date of May 27, 2009 (hc) May 20, 2009 (tpb)?`

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

CREATE TABLE "collections" (
  "volume" text,
  "series" text,
  "title" text,
  "cover" text,
  "published" text,
  "isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What cover has a published date of May 27, 2009 (hc) May 20, 2009 (tpb)?`:
```sql
                SELECT "cover" FROM "collections" WHERE "published"='may 27, 2009 (hc) may 20, 2009 (tpb)';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of the volume that has an ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)?`

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

CREATE TABLE "collections" (
  "volume" text,
  "series" text,
  "title" text,
  "cover" text,
  "published" text,
  "isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of the volume that has an ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)?`:
```sql
                SELECT "volume" FROM "collections" WHERE "isbn"='978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the series with an ISBN of 978-1-59582-523-0 (tpb)?`

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

CREATE TABLE "collections" (
  "volume" text,
  "series" text,
  "title" text,
  "cover" text,
  "published" text,
  "isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the series with an ISBN of 978-1-59582-523-0 (tpb)?`:
```sql
                SELECT "series" FROM "collections" WHERE "isbn"='978-1-59582-523-0 (tpb)';
```
## Task
Generate a SQL query to answer the following question:
`What volume number has the ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)?`

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

CREATE TABLE "collections" (
  "volume" text,
  "series" text,
  "title" text,
  "cover" text,
  "published" text,
  "isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What volume number has the ISBN of 978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)?`:
```sql
                SELECT "volume" FROM "collections" WHERE "isbn"='978-1-59582-712-8 (hc) 978-1-59582-713-5 (tpb)';
```
## Task
Generate a SQL query to answer the following question:
`What is the ISBN of the Conan the Barbarian series that has the title of Queen of the Black Coast?`

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

CREATE TABLE "collections" (
  "volume" text,
  "series" text,
  "title" text,
  "cover" text,
  "published" text,
  "isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ISBN of the Conan the Barbarian series that has the title of Queen of the Black Coast?`:
```sql
                SELECT "isbn" FROM "collections" WHERE "series"='conan the barbarian' AND "title"='queen of the black coast';
```
## Task
Generate a SQL query to answer the following question:
`What cover has Throne of Aquilonia as the title?`

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

CREATE TABLE "collections" (
  "volume" text,
  "series" text,
  "title" text,
  "cover" text,
  "published" text,
  "isbn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What cover has Throne of Aquilonia as the title?`:
```sql
                SELECT "cover" FROM "collections" WHERE "title"='throne of aquilonia';
```
## Task
Generate a SQL query to answer the following question:
`With a Rank of less than 4, what is Pablo Prigioni's total number of Games?`

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

CREATE TABLE "assists" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `With a Rank of less than 4, what is Pablo Prigioni's total number of Games?`:
```sql
                SELECT COUNT("games") FROM "assists" WHERE "name"='pablo prigioni' AND "rank"<4;
```
## Task
Generate a SQL query to answer the following question:
`How many Assists for the Player with more than 25 Games?`

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

CREATE TABLE "assists" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Assists for the Player with more than 25 Games?`:
```sql
                SELECT SUM("assists") FROM "assists" WHERE "games">25;
```
## Task
Generate a SQL query to answer the following question:
`What is the Rank of the Maccabi Tel Aviv Player with 25 Games?`

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

CREATE TABLE "assists" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rank of the Maccabi Tel Aviv Player with 25 Games?`:
```sql
                SELECT COUNT("rank") FROM "assists" WHERE "games"=25 AND "team"='maccabi tel aviv';
```
## Task
Generate a SQL query to answer the following question:
`How many Assists for the Player with a Rank greater than 3 in less than 25 Games?`

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

CREATE TABLE "assists" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Assists for the Player with a Rank greater than 3 in less than 25 Games?`:
```sql
                SELECT AVG("assists") FROM "assists" WHERE "rank">3 AND "games"<25;
```
## Task
Generate a SQL query to answer the following question:
`How many Games for Rank 2 Terrell McIntyre?`

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

CREATE TABLE "assists" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Games for Rank 2 Terrell McIntyre?`:
```sql
                SELECT MIN("games") FROM "assists" WHERE "name"='terrell mcintyre' AND "rank">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the Venue of the Heptathlon after 2006 where Tatyana Chernova comes in Position 7th?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Venue of the Heptathlon after 2006 where Tatyana Chernova comes in Position 7th?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "year">2006 AND "position"='7th' AND "notes"='heptathlon';
```
## Task
Generate a SQL query to answer the following question:
`In what Year did Chernova come in 1st in Götzis, Austria?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Year did Chernova come in 1st in Götzis, Austria?`:
```sql
                SELECT SUM("year") FROM "achievements" WHERE "venue"='götzis, austria' AND "position"='1st';
```
## Task
Generate a SQL query to answer the following question:
`Which Cover Model was featured on 8-03?`

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

CREATE TABLE "2003" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Cover Model was featured on 8-03?`:
```sql
                SELECT "cover_model" FROM "2003" WHERE "date"='8-03';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Centerfold model when O.J. Simpson was the Interview Subject?`

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

CREATE TABLE "2003" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Centerfold model when O.J. Simpson was the Interview Subject?`:
```sql
                SELECT "centerfold_model" FROM "2003" WHERE "interview_subject"='o.j. simpson';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Cover model when the Centerfold Model was Marketa Janska?`

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

CREATE TABLE "2003" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Cover model when the Centerfold Model was Marketa Janska?`:
```sql
                SELECT "cover_model" FROM "2003" WHERE "centerfold_model"='marketa janska';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Cover model on 11-03?`

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

CREATE TABLE "2003" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Cover model on 11-03?`:
```sql
                SELECT "cover_model" FROM "2003" WHERE "date"='11-03';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Centerfold Model on 9-03?`

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

CREATE TABLE "2003" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Centerfold Model on 9-03?`:
```sql
                SELECT "centerfold_model" FROM "2003" WHERE "date"='9-03';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Interview Subject when the 20 Questions was William H. Macy?`

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

CREATE TABLE "2003" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Interview Subject when the 20 Questions was William H. Macy?`:
```sql
                SELECT "interview_subject" FROM "2003" WHERE "20_questions"='william h. macy';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds had a selection of 165?`

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

CREATE TABLE "draft_class" (
  "round" real,
  "selection" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds had a selection of 165?`:
```sql
                SELECT SUM("round") FROM "draft_class" WHERE "selection"=165;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Weight for the position of D, and the 1990–1991 Team was the chicago blackhawks?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "1990_1991_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Weight for the position of D, and the 1990–1991 Team was the chicago blackhawks?`:
```sql
                SELECT MAX("weight_kg") FROM "list_of_united_states_national_ice_hocke" WHERE "position"='d' AND "1990_1991_team"='chicago blackhawks';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Height for the Position of d, with a Birthplace of new hope, minnesota?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "1990_1991_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Height for the Position of d, with a Birthplace of new hope, minnesota?`:
```sql
                SELECT AVG("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "position"='d' AND "birthplace"='new hope, minnesota';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1990–1991 Team when the Birthplace shows as new york?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "1990_1991_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1990–1991 Team when the Birthplace shows as new york?`:
```sql
                SELECT "1990_1991_team" FROM "list_of_united_states_national_ice_hocke" WHERE "birthplace"='new york';
```
## Task
Generate a SQL query to answer the following question:
`What is the Position when the person's birthplace was toledo, ohio?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "1990_1991_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Position when the person's birthplace was toledo, ohio?`:
```sql
                SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "birthplace"='toledo, ohio';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1990–1991 Team that had Joel Otto?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "1990_1991_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1990–1991 Team that had Joel Otto?`:
```sql
                SELECT "1990_1991_team" FROM "list_of_united_states_national_ice_hocke" WHERE "name"='joel otto';
```
## Task
Generate a SQL query to answer the following question:
`Which T.C. has a Year larger than 2007, and a D.C. of 21st?`

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

CREATE TABLE "gp2_series" (
  "year" real,
  "drivers" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_l" real,
  "points" real,
  "d_c" text,
  "t_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which T.C. has a Year larger than 2007, and a D.C. of 21st?`:
```sql
                SELECT "t_c" FROM "gp2_series" WHERE "year">2007 AND "d_c"='21st';
```
## Task
Generate a SQL query to answer the following question:
`What kind of D.C. has Races smaller than 20, and Points larger than 0, and Drivers of christian vietoris, and Wins of 1?`

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

CREATE TABLE "gp2_series" (
  "year" real,
  "drivers" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_l" real,
  "points" real,
  "d_c" text,
  "t_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of D.C. has Races smaller than 20, and Points larger than 0, and Drivers of christian vietoris, and Wins of 1?`:
```sql
                SELECT "d_c" FROM "gp2_series" WHERE "races"<20 AND "points">0 AND "drivers"='christian vietoris' AND "wins"=1;
```
## Task
Generate a SQL query to answer the following question:
`Which Races has a T.C. of 3rd, and a D.C. of 7th?`

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

CREATE TABLE "gp2_series" (
  "year" real,
  "drivers" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_l" real,
  "points" real,
  "d_c" text,
  "t_c" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Races has a T.C. of 3rd, and a D.C. of 7th?`:
```sql
                SELECT MIN("races") FROM "gp2_series" WHERE "t_c"='3rd' AND "d_c"='7th';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2007 of the Grand Slam Tournaments in 2008?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007 of the Grand Slam Tournaments in 2008?`:
```sql
                SELECT "2007" FROM "singles_performance_timeline" WHERE "2008"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tournament with a 3r 2011 and A 2010?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tournament with a 3r 2011 and A 2010?`:
```sql
                SELECT "tournament" FROM "singles_performance_timeline" WHERE "2011"='3r' AND "2010"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2008 of the 2r 2011 and A 2010?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2008 of the 2r 2011 and A 2010?`:
```sql
                SELECT "2008" FROM "singles_performance_timeline" WHERE "2011"='2r' AND "2010"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2010 of the Grand Slam Tournaments in 2011?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2010 of the Grand Slam Tournaments in 2011?`:
```sql
                SELECT "2010" FROM "singles_performance_timeline" WHERE "2011"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of runners-up for a club with winning years of 2010?`

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

CREATE TABLE "performance_by_club" (
  "club" text,
  "winners" real,
  "runners_up" real,
  "winning_years" text,
  "runner_up_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of runners-up for a club with winning years of 2010?`:
```sql
                SELECT COUNT("runners_up") FROM "performance_by_club" WHERE "winning_years"='2010';
```
## Task
Generate a SQL query to answer the following question:
`Who were the runners-up for the FC Viktoria Plzeň club?`

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

CREATE TABLE "performance_by_club" (
  "club" text,
  "winners" real,
  "runners_up" real,
  "winning_years" text,
  "runner_up_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the runners-up for the FC Viktoria Plzeň club?`:
```sql
                SELECT "runners_up" FROM "performance_by_club" WHERE "club"='fc viktoria plzeň';
```
## Task
Generate a SQL query to answer the following question:
`Which congress was held in 2010?`

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

CREATE TABLE "list" (
  "district" text,
  "con_gress" text,
  "date" text,
  "predecessor" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which congress was held in 2010?`:
```sql
                SELECT "con_gress" FROM "list" WHERE "date"='2010';
```
## Task
Generate a SQL query to answer the following question:
`What is the casting temperature for a hardness of 22?`

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

CREATE TABLE "alloys_for_mechanical_composition" (
  "usage" text,
  "sn_sb_pct" text,
  "liquid_at_c" text,
  "casting_at_c" text,
  "remelting_at_c" text,
  "hardness" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the casting temperature for a hardness of 22?`:
```sql
                SELECT "casting_at_c" FROM "alloys_for_mechanical_composition" WHERE "hardness"='22';
```
## Task
Generate a SQL query to answer the following question:
`What is the hardness for the alloy that is liquid at 243 degrees C?`

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

CREATE TABLE "alloys_for_mechanical_composition" (
  "usage" text,
  "sn_sb_pct" text,
  "liquid_at_c" text,
  "casting_at_c" text,
  "remelting_at_c" text,
  "hardness" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hardness for the alloy that is liquid at 243 degrees C?`:
```sql
                SELECT "hardness" FROM "alloys_for_mechanical_composition" WHERE "liquid_at_c"='243';
```
## Task
Generate a SQL query to answer the following question:
`What is the Sn/Sb percentage that is liquid at 258 degrees C?`

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

CREATE TABLE "alloys_for_mechanical_composition" (
  "usage" text,
  "sn_sb_pct" text,
  "liquid_at_c" text,
  "casting_at_c" text,
  "remelting_at_c" text,
  "hardness" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Sn/Sb percentage that is liquid at 258 degrees C?`:
```sql
                SELECT "sn_sb_pct" FROM "alloys_for_mechanical_composition" WHERE "liquid_at_c"='258';
```
## Task
Generate a SQL query to answer the following question:
`What is the remelting temperature for the alloy that has a Sn/Sb ratio of 9.5/15?`

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

CREATE TABLE "alloys_for_mechanical_composition" (
  "usage" text,
  "sn_sb_pct" text,
  "liquid_at_c" text,
  "casting_at_c" text,
  "remelting_at_c" text,
  "hardness" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the remelting temperature for the alloy that has a Sn/Sb ratio of 9.5/15?`:
```sql
                SELECT "remelting_at_c" FROM "alloys_for_mechanical_composition" WHERE "sn_sb_pct"='9.5/15';
```
## Task
Generate a SQL query to answer the following question:
`What is the casting temperature for the alloy with hardness 21?`

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

CREATE TABLE "alloys_for_mechanical_composition" (
  "usage" text,
  "sn_sb_pct" text,
  "liquid_at_c" text,
  "casting_at_c" text,
  "remelting_at_c" text,
  "hardness" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the casting temperature for the alloy with hardness 21?`:
```sql
                SELECT "casting_at_c" FROM "alloys_for_mechanical_composition" WHERE "hardness"='21';
```
## Task
Generate a SQL query to answer the following question:
`What's the most laps when grid is 16?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the most laps when grid is 16?`:
```sql
                SELECT MAX("laps") FROM "race" WHERE "grid"=16;
```
## Task
Generate a SQL query to answer the following question:
`How many laps were there for a grid of 13?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps were there for a grid of 13?`:
```sql
                SELECT COUNT("laps") FROM "race" WHERE "grid"=13;
```
## Task
Generate a SQL query to answer the following question:
`How many points did the Giants get when attendance was 78,673?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "giants_points" text,
  "opponents_points" text,
  "record" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the Giants get when attendance was 78,673?`:
```sql
                SELECT "giants_points" FROM "schedule" WHERE "attendance"='78,673';
```
## Task
Generate a SQL query to answer the following question:
`What was the result when the opponents got 15 points?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "giants_points" text,
  "opponents_points" text,
  "record" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result when the opponents got 15 points?`:
```sql
                SELECT "result" FROM "schedule" WHERE "opponents_points"='15';
```