cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many sesason were there when  for is deccan chargers and bowler is amit mishra?`

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

CREATE TABLE "list_of_hat_tricks" (
  "no" real,
  "season" real,
  "bowler" text,
  "batsmen" text,
  "for" text,
  "against" text,
  "ground" text,
  "scorecard" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many sesason were there when  for is deccan chargers and bowler is amit mishra?`:
```sql
                SELECT COUNT("season") FROM "list_of_hat_tricks" WHERE "for"='Deccan Chargers' AND "bowler"='Amit Mishra';
```
## Task
Generate a SQL query to answer the following question:
`What is the number when against is rajasthan royals?`

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

CREATE TABLE "list_of_hat_tricks" (
  "no" real,
  "season" real,
  "bowler" text,
  "batsmen" text,
  "for" text,
  "against" text,
  "ground" text,
  "scorecard" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number when against is rajasthan royals?`:
```sql
                SELECT MAX("no") FROM "list_of_hat_tricks" WHERE "against"='Rajasthan Royals';
```
## Task
Generate a SQL query to answer the following question:
`Name number of stellar classification for 3 neptune planets < 1 au`

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

CREATE TABLE "sun_like_stars_with_hot_dust_disks" (
  "star" text,
  "stellar_classification" text,
  "distance_from_earth_ly" text,
  "constellation" text,
  "dust_or_debris_temperature_k" text,
  "system" text,
  "dust_or_debris_location_au" text,
  "cool_dust_10_au" text,
  "stellar_age_myr" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name number of stellar classification for 3 neptune planets < 1 au`:
```sql
                SELECT COUNT("stellar_classification") FROM "sun_like_stars_with_hot_dust_disks" WHERE "system"='3 Neptune planets < 1 AU';
```
## Task
Generate a SQL query to answer the following question:
`Name the system for aries`

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

CREATE TABLE "sun_like_stars_with_hot_dust_disks" (
  "star" text,
  "stellar_classification" text,
  "distance_from_earth_ly" text,
  "constellation" text,
  "dust_or_debris_temperature_k" text,
  "system" text,
  "dust_or_debris_location_au" text,
  "cool_dust_10_au" text,
  "stellar_age_myr" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the system for aries`:
```sql
                SELECT "system" FROM "sun_like_stars_with_hot_dust_disks" WHERE "constellation"='Aries';
```
## Task
Generate a SQL query to answer the following question:
`Name the stellar age for f3v`

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

CREATE TABLE "sun_like_stars_with_hot_dust_disks" (
  "star" text,
  "stellar_classification" text,
  "distance_from_earth_ly" text,
  "constellation" text,
  "dust_or_debris_temperature_k" text,
  "system" text,
  "dust_or_debris_location_au" text,
  "cool_dust_10_au" text,
  "stellar_age_myr" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the stellar age for f3v`:
```sql
                SELECT "stellar_age_myr" FROM "sun_like_stars_with_hot_dust_disks" WHERE "stellar_classification"='F3V';
```
## Task
Generate a SQL query to answer the following question:
`Name the dust for star being hd 69830`

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

CREATE TABLE "sun_like_stars_with_hot_dust_disks" (
  "star" text,
  "stellar_classification" text,
  "distance_from_earth_ly" text,
  "constellation" text,
  "dust_or_debris_temperature_k" text,
  "system" text,
  "dust_or_debris_location_au" text,
  "cool_dust_10_au" text,
  "stellar_age_myr" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the dust for star being hd 69830`:
```sql
                SELECT "dust_or_debris_location_au" FROM "sun_like_stars_with_hot_dust_disks" WHERE "star"='HD 69830';
```
## Task
Generate a SQL query to answer the following question:
`Name the dust for star being η corvi`

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

CREATE TABLE "sun_like_stars_with_hot_dust_disks" (
  "star" text,
  "stellar_classification" text,
  "distance_from_earth_ly" text,
  "constellation" text,
  "dust_or_debris_temperature_k" text,
  "system" text,
  "dust_or_debris_location_au" text,
  "cool_dust_10_au" text,
  "stellar_age_myr" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the dust for star being η corvi`:
```sql
                SELECT "dust_or_debris_temperature_k" FROM "sun_like_stars_with_hot_dust_disks" WHERE "star"='η Corvi';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of names for exeter chiefs`

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

CREATE TABLE "table1_22977424_8" (
  "season" text,
  "name" text,
  "teams" real,
  "relegated_to_league" text,
  "promoted_to_league" text,
  "promoted_from_league" text,
  "relegated_from_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of names for exeter chiefs`:
```sql
                SELECT COUNT("name") FROM "table1_22977424_8" WHERE "promoted_from_league"='Exeter Chiefs';
```
## Task
Generate a SQL query to answer the following question:
`Name the name for henley manchester`

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

CREATE TABLE "table1_22977424_8" (
  "season" text,
  "name" text,
  "teams" real,
  "relegated_to_league" text,
  "promoted_to_league" text,
  "promoted_from_league" text,
  "relegated_from_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name for henley manchester`:
```sql
                SELECT "name" FROM "table1_22977424_8" WHERE "promoted_to_league"='Henley Manchester';
```
## Task
Generate a SQL query to answer the following question:
`Name the name for doncaster newbury`

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

CREATE TABLE "table1_22977424_8" (
  "season" text,
  "name" text,
  "teams" real,
  "relegated_to_league" text,
  "promoted_to_league" text,
  "promoted_from_league" text,
  "relegated_from_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name for doncaster newbury`:
```sql
                SELECT "name" FROM "table1_22977424_8" WHERE "promoted_to_league"='Doncaster Newbury';
```
## Task
Generate a SQL query to answer the following question:
`Name the season for rotherham titans`

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

CREATE TABLE "table1_22977424_8" (
  "season" text,
  "name" text,
  "teams" real,
  "relegated_to_league" text,
  "promoted_to_league" text,
  "promoted_from_league" text,
  "relegated_from_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the season for rotherham titans`:
```sql
                SELECT "season" FROM "table1_22977424_8" WHERE "promoted_from_league"='Rotherham Titans';
```
## Task
Generate a SQL query to answer the following question:
`Name the name for  plymouth albion orrell`

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

CREATE TABLE "table1_22977424_8" (
  "season" text,
  "name" text,
  "teams" real,
  "relegated_to_league" text,
  "promoted_to_league" text,
  "promoted_from_league" text,
  "relegated_from_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name for  plymouth albion orrell`:
```sql
                SELECT "name" FROM "table1_22977424_8" WHERE "promoted_to_league"='Plymouth Albion Orrell';
```
## Task
Generate a SQL query to answer the following question:
`What's the tail number of the airplane involved in the accident described as crashed?`

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

CREATE TABLE "table1_229917_2" (
  "date_dd_mm_yyyy" text,
  "tail_number" text,
  "location" text,
  "fatalities" text,
  "brief_description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the tail number of the airplane involved in the accident described as crashed?`:
```sql
                SELECT "tail_number" FROM "table1_229917_2" WHERE "brief_description"='Crashed';
```
## Task
Generate a SQL query to answer the following question:
`How many different brief descriptions are there for crashes with 0/161 fatalities?`

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

CREATE TABLE "table1_229917_2" (
  "date_dd_mm_yyyy" text,
  "tail_number" text,
  "location" text,
  "fatalities" text,
  "brief_description" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different brief descriptions are there for crashes with 0/161 fatalities?`:
```sql
                SELECT COUNT("brief_description") FROM "table1_229917_2" WHERE "fatalities"='0/161';
```
## Task
Generate a SQL query to answer the following question:
`When did the airplane with tail number RA-85282 crash?`

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

CREATE TABLE "table1_229917_2" (
  "date_dd_mm_yyyy" text,
  "tail_number" text,
  "location" text,
  "fatalities" text,
  "brief_description" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the airplane with tail number RA-85282 crash?`:
```sql
                SELECT "date_dd_mm_yyyy" FROM "table1_229917_2" WHERE "tail_number"='RA-85282';
```
## Task
Generate a SQL query to answer the following question:
`How many fatalities were there in the crash described as ditched 300 m short of runway?`

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

CREATE TABLE "table1_229917_2" (
  "date_dd_mm_yyyy" text,
  "tail_number" text,
  "location" text,
  "fatalities" text,
  "brief_description" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many fatalities were there in the crash described as ditched 300 m short of runway?`:
```sql
                SELECT "fatalities" FROM "table1_229917_2" WHERE "brief_description"='Ditched 300 m short of runway';
```
## Task
Generate a SQL query to answer the following question:
`How many fatalities were there in the crash described as crashed at take-off due to engine failure?`

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

CREATE TABLE "table1_229917_2" (
  "date_dd_mm_yyyy" text,
  "tail_number" text,
  "location" text,
  "fatalities" text,
  "brief_description" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many fatalities were there in the crash described as crashed at take-off due to engine failure?`:
```sql
                SELECT "fatalities" FROM "table1_229917_2" WHERE "brief_description"='Crashed at take-off due to engine failure';
```
## Task
Generate a SQL query to answer the following question:
`What class year was Vencie Glenn from? `

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

CREATE TABLE "sycamores_in_professional_leagues_50" (
  "player" text,
  "class_year" real,
  "position" text,
  "teams" text,
  "career" text,
  "highlight_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class year was Vencie Glenn from? `:
```sql
                SELECT MIN("class_year") FROM "sycamores_in_professional_leagues_50" WHERE "player"='Vencie Glenn';
```
## Task
Generate a SQL query to answer the following question:
`What position did the player whose highlights were 5 career INTs play?`

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

CREATE TABLE "sycamores_in_professional_leagues_50" (
  "player" text,
  "class_year" real,
  "position" text,
  "teams" text,
  "career" text,
  "highlight_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the player whose highlights were 5 career INTs play?`:
```sql
                SELECT "position" FROM "sycamores_in_professional_leagues_50" WHERE "highlight_s"='5 Career INTs';
```
## Task
Generate a SQL query to answer the following question:
`What class year was the player whose highlights were 35 career INTs from?`

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

CREATE TABLE "sycamores_in_professional_leagues_50" (
  "player" text,
  "class_year" real,
  "position" text,
  "teams" text,
  "career" text,
  "highlight_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class year was the player whose highlights were 35 career INTs from?`:
```sql
                SELECT MIN("class_year") FROM "sycamores_in_professional_leagues_50" WHERE "highlight_s"='35 Career INTs';
```
## Task
Generate a SQL query to answer the following question:
`What class year was the player who played for Buffalo from? `

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

CREATE TABLE "sycamores_in_professional_leagues_50" (
  "player" text,
  "class_year" real,
  "position" text,
  "teams" text,
  "career" text,
  "highlight_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class year was the player who played for Buffalo from? `:
```sql
                SELECT MIN("class_year") FROM "sycamores_in_professional_leagues_50" WHERE "teams"='Buffalo';
```
## Task
Generate a SQL query to answer the following question:
`Name the gore number for others # 6.6%`

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

CREATE TABLE "by_county" (
  "county" text,
  "gore_pct" text,
  "gore_num" real,
  "bush_pct" text,
  "bush_num" real,
  "others_pct" text,
  "others_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gore number for others # 6.6%`:
```sql
                SELECT MIN("gore_num") FROM "by_county" WHERE "others_num"='6.6%';
```
## Task
Generate a SQL query to answer the following question:
`Name the others % for bush number 1372`

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

CREATE TABLE "by_county" (
  "county" text,
  "gore_pct" text,
  "gore_num" real,
  "bush_pct" text,
  "bush_num" real,
  "others_pct" text,
  "others_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the others % for bush number 1372`:
```sql
                SELECT "others_pct" FROM "by_county" WHERE "bush_num"=1372;
```
## Task
Generate a SQL query to answer the following question:
`Name the gore number for others % being 5.3%`

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

CREATE TABLE "by_county" (
  "county" text,
  "gore_pct" text,
  "gore_num" real,
  "bush_pct" text,
  "bush_num" real,
  "others_pct" text,
  "others_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gore number for others % being 5.3%`:
```sql
                SELECT "gore_num" FROM "by_county" WHERE "others_pct"='5.3%';
```
## Task
Generate a SQL query to answer the following question:
`Name the couty for others% 5.8`

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

CREATE TABLE "by_county" (
  "county" text,
  "gore_pct" text,
  "gore_num" real,
  "bush_pct" text,
  "bush_num" real,
  "others_pct" text,
  "others_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the couty for others% 5.8`:
```sql
                SELECT "county" FROM "by_county" WHERE "others_pct"='5.8';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of bush % for elko`

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

CREATE TABLE "by_county" (
  "county" text,
  "gore_pct" text,
  "gore_num" real,
  "bush_pct" text,
  "bush_num" real,
  "others_pct" text,
  "others_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of bush % for elko`:
```sql
                SELECT COUNT("bush_pct") FROM "by_county" WHERE "county"='Elko';
```
## Task
Generate a SQL query to answer the following question:
`If the series is ADAC GT Masters and poles is 1, what is the name of the team?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the series is ADAC GT Masters and poles is 1, what is the name of the team?`:
```sql
                SELECT "team" FROM "career_summary" WHERE "poles"=1 AND "series"='ADAC GT Masters';
```
## Task
Generate a SQL query to answer the following question:
`If the position of 26th what is the season total number?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the position of 26th what is the season total number?`:
```sql
                SELECT COUNT("season") FROM "career_summary" WHERE "position"='26th';
```
## Task
Generate a SQL query to answer the following question:
`If the points is 41, what is the season?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the points is 41, what is the season?`:
```sql
                SELECT "season" FROM "career_summary" WHERE "points"='41';
```
## Task
Generate a SQL query to answer the following question:
`If the primary (South) winners is Inter The Bloomfield, what is the season total number?`

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

CREATE TABLE "list_of_recent_lower_tier_county_cup_sou" (
  "season" text,
  "junior_south_winners" text,
  "intermediate_south_winners" text,
  "minor_south_winners" text,
  "primary_south_winners" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the primary (South) winners is Inter The Bloomfield, what is the season total number?`:
```sql
                SELECT COUNT("season") FROM "list_of_recent_lower_tier_county_cup_sou" WHERE "primary_south_winners"='Inter The Bloomfield';
```
## Task
Generate a SQL query to answer the following question:
`What is the season total number if the primary (South) winners is Ridings High 'A'?`

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

CREATE TABLE "list_of_recent_lower_tier_county_cup_sou" (
  "season" text,
  "junior_south_winners" text,
  "intermediate_south_winners" text,
  "minor_south_winners" text,
  "primary_south_winners" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the season total number if the primary (South) winners is Ridings High 'A'?`:
```sql
                SELECT COUNT("season") FROM "list_of_recent_lower_tier_county_cup_sou" WHERE "primary_south_winners"='Ridings High ''A''';
```
## Task
Generate a SQL query to answer the following question:
`What is the year of the season if the intermediate (South) winners is Southmead Athletic?`

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

CREATE TABLE "list_of_recent_lower_tier_county_cup_sou" (
  "season" text,
  "junior_south_winners" text,
  "intermediate_south_winners" text,
  "minor_south_winners" text,
  "primary_south_winners" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year of the season if the intermediate (South) winners is Southmead Athletic?`:
```sql
                SELECT "season" FROM "list_of_recent_lower_tier_county_cup_sou" WHERE "intermediate_south_winners"='Southmead Athletic';
```
## Task
Generate a SQL query to answer the following question:
`What is the season date if the minor (South) winners is Bristol Sanctuary XI?`

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

CREATE TABLE "list_of_recent_lower_tier_county_cup_sou" (
  "season" text,
  "junior_south_winners" text,
  "intermediate_south_winners" text,
  "minor_south_winners" text,
  "primary_south_winners" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the season date if the minor (South) winners is Bristol Sanctuary XI?`:
```sql
                SELECT "season" FROM "list_of_recent_lower_tier_county_cup_sou" WHERE "minor_south_winners"='Bristol Sanctuary XI';
```
## Task
Generate a SQL query to answer the following question:
`What isthe minor (South) winners total number is the primary (South) winners is Mendip Gate?`

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

CREATE TABLE "list_of_recent_lower_tier_county_cup_sou" (
  "season" text,
  "junior_south_winners" text,
  "intermediate_south_winners" text,
  "minor_south_winners" text,
  "primary_south_winners" text
);
### SQL
Given the database schema, here is the SQL query that answers `What isthe minor (South) winners total number is the primary (South) winners is Mendip Gate?`:
```sql
                SELECT COUNT("minor_south_winners") FROM "list_of_recent_lower_tier_county_cup_sou" WHERE "primary_south_winners"='Mendip Gate';
```
## Task
Generate a SQL query to answer the following question:
`What area was damaged when King Khalid Military City was targeted?`

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

CREATE TABLE "table1_23014685_1" (
  "no" real,
  "place_date" text,
  "target" text,
  "area_damaged" text,
  "cause_of_damage" text,
  "intercepted_by_patriot" text
);
### SQL
Given the database schema, here is the SQL query that answers `What area was damaged when King Khalid Military City was targeted?`:
```sql
                SELECT "area_damaged" FROM "table1_23014685_1" WHERE "target"='King Khalid Military City';
```
## Task
Generate a SQL query to answer the following question:
`What was the place and date that the Apartments area was damaged?`

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

CREATE TABLE "table1_23014685_1" (
  "no" real,
  "place_date" text,
  "target" text,
  "area_damaged" text,
  "cause_of_damage" text,
  "intercepted_by_patriot" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the place and date that the Apartments area was damaged?`:
```sql
                SELECT "place_date" FROM "table1_23014685_1" WHERE "area_damaged"='Apartments area';
```
## Task
Generate a SQL query to answer the following question:
`Was the missile intercepted by patriot when the parking lot was damaged?`

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

CREATE TABLE "table1_23014685_1" (
  "no" real,
  "place_date" text,
  "target" text,
  "area_damaged" text,
  "cause_of_damage" text,
  "intercepted_by_patriot" text
);
### SQL
Given the database schema, here is the SQL query that answers `Was the missile intercepted by patriot when the parking lot was damaged?`:
```sql
                SELECT "intercepted_by_patriot" FROM "table1_23014685_1" WHERE "area_damaged"='Parking lot';
```
## Task
Generate a SQL query to answer the following question:
`What number missile led to damage to the Islamic University campus?`

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

CREATE TABLE "table1_23014685_1" (
  "no" real,
  "place_date" text,
  "target" text,
  "area_damaged" text,
  "cause_of_damage" text,
  "intercepted_by_patriot" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number missile led to damage to the Islamic University campus?`:
```sql
                SELECT MIN("no") FROM "table1_23014685_1" WHERE "area_damaged"='Islamic University campus';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of year for mark martin`

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

CREATE TABLE "table1_23015396_1" (
  "year" real,
  "date" text,
  "driver" text,
  "manufacturer" text,
  "laps" real,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of year for mark martin`:
```sql
                SELECT COUNT("year") FROM "table1_23015396_1" WHERE "driver"='Mark Martin';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of year for june 30`

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

CREATE TABLE "table1_23015396_1" (
  "year" real,
  "date" text,
  "driver" text,
  "manufacturer" text,
  "laps" real,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of year for june 30`:
```sql
                SELECT COUNT("year") FROM "table1_23015396_1" WHERE "date"='June 30';
```
## Task
Generate a SQL query to answer the following question:
`What is the model number for part numbers of  cm80616003177acbx80616i5660?`

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

CREATE TABLE "32_nm_dual_core" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "turbo" text,
  "gpu_frequency" text,
  "cores" real,
  "l2_cache" text,
  "l3_cache" text,
  "i_o_bus" text,
  "mult" text,
  "memory" text,
  "voltage" text,
  "tdp" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the model number for part numbers of  cm80616003177acbx80616i5660?`:
```sql
                SELECT "model_number" FROM "32_nm_dual_core" WHERE "part_number_s"='CM80616003177ACBX80616I5660';
```
## Task
Generate a SQL query to answer the following question:
`What is every release price(USD) for model number core i5-650?`

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

CREATE TABLE "32_nm_dual_core" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "turbo" text,
  "gpu_frequency" text,
  "cores" real,
  "l2_cache" text,
  "l3_cache" text,
  "i_o_bus" text,
  "mult" text,
  "memory" text,
  "voltage" text,
  "tdp" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every release price(USD) for model number core i5-650?`:
```sql
                SELECT "release_price_usd" FROM "32_nm_dual_core" WHERE "model_number"='Core i5-650';
```
## Task
Generate a SQL query to answer the following question:
`How many frequencies have a model number of core i5-655k?`

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

CREATE TABLE "32_nm_dual_core" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "turbo" text,
  "gpu_frequency" text,
  "cores" real,
  "l2_cache" text,
  "l3_cache" text,
  "i_o_bus" text,
  "mult" text,
  "memory" text,
  "voltage" text,
  "tdp" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many frequencies have a model number of core i5-655k?`:
```sql
                SELECT COUNT("frequency") FROM "32_nm_dual_core" WHERE "model_number"='Core i5-655K';
```
## Task
Generate a SQL query to answer the following question:
`What is every part number with model number core i5-670?`

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

CREATE TABLE "32_nm_dual_core" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "turbo" text,
  "gpu_frequency" text,
  "cores" real,
  "l2_cache" text,
  "l3_cache" text,
  "i_o_bus" text,
  "mult" text,
  "memory" text,
  "voltage" text,
  "tdp" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every part number with model number core i5-670?`:
```sql
                SELECT "part_number_s" FROM "32_nm_dual_core" WHERE "model_number"='Core i5-670';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for Big Ten Team #4 Purdue?`

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

CREATE TABLE "2009_10_big_ten_conference_men_s_basketb" (
  "acc_team" text,
  "big_ten_team" text,
  "location" text,
  "attendance" real,
  "winner" text,
  "challenge_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for Big Ten Team #4 Purdue?`:
```sql
                SELECT "winner" FROM "2009_10_big_ten_conference_men_s_basketb" WHERE "big_ten_team"='#4 Purdue';
```
## Task
Generate a SQL query to answer the following question:
`Name the avg start for avg finish being 24.2`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the avg start for avg finish being 24.2`:
```sql
                SELECT "avg_start" FROM "nascar_sprint_cup_series" WHERE "avg_finish"='24.2';
```
## Task
Generate a SQL query to answer the following question:
`Name the year for avg start being 22.4`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year for avg start being 22.4`:
```sql
                SELECT "year" FROM "nascar_sprint_cup_series" WHERE "avg_start"='22.4';
```
## Task
Generate a SQL query to answer the following question:
`How many KEI catagories are listed when the economic incentive regime is 2.56? `

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

CREATE TABLE "kei_and_ki_indexes_by_country" (
  "country" text,
  "kei" text,
  "ki" text,
  "economic_incentive_regime" text,
  "innovation" text,
  "education" text,
  "ict" text,
  "2008_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many KEI catagories are listed when the economic incentive regime is 2.56? `:
```sql
                SELECT COUNT("kei") FROM "kei_and_ki_indexes_by_country" WHERE "economic_incentive_regime"='2.56';
```
## Task
Generate a SQL query to answer the following question:
`What is the innovation when the economic incentive grime is 7.14? `

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

CREATE TABLE "kei_and_ki_indexes_by_country" (
  "country" text,
  "kei" text,
  "ki" text,
  "economic_incentive_regime" text,
  "innovation" text,
  "education" text,
  "ict" text,
  "2008_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the innovation when the economic incentive grime is 7.14? `:
```sql
                SELECT "innovation" FROM "kei_and_ki_indexes_by_country" WHERE "economic_incentive_regime"='7.14';
```
## Task
Generate a SQL query to answer the following question:
`What is the education in Nepal? `

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

CREATE TABLE "kei_and_ki_indexes_by_country" (
  "country" text,
  "kei" text,
  "ki" text,
  "economic_incentive_regime" text,
  "innovation" text,
  "education" text,
  "ict" text,
  "2008_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the education in Nepal? `:
```sql
                SELECT "education" FROM "kei_and_ki_indexes_by_country" WHERE "country"='Nepal';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2008 rank of Djibouti? `

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

CREATE TABLE "kei_and_ki_indexes_by_country" (
  "country" text,
  "kei" text,
  "ki" text,
  "economic_incentive_regime" text,
  "innovation" text,
  "education" text,
  "ict" text,
  "2008_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2008 rank of Djibouti? `:
```sql
                SELECT "2008_rank" FROM "kei_and_ki_indexes_by_country" WHERE "country"='Djibouti';
```
## Task
Generate a SQL query to answer the following question:
`What is the ICT when education is 1.73 and KI is ag 1.99? `

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

CREATE TABLE "kei_and_ki_indexes_by_country" (
  "country" text,
  "kei" text,
  "ki" text,
  "economic_incentive_regime" text,
  "innovation" text,
  "education" text,
  "ict" text,
  "2008_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICT when education is 1.73 and KI is ag 1.99? `:
```sql
                SELECT "ict" FROM "kei_and_ki_indexes_by_country" WHERE "education"='1.73' AND "ki"='1.99';
```
## Task
Generate a SQL query to answer the following question:
`What is the education when the economic incentive regime is 1.58?`

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

CREATE TABLE "kei_and_ki_indexes_by_country" (
  "country" text,
  "kei" text,
  "ki" text,
  "economic_incentive_regime" text,
  "innovation" text,
  "education" text,
  "ict" text,
  "2008_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the education when the economic incentive regime is 1.58?`:
```sql
                SELECT "education" FROM "kei_and_ki_indexes_by_country" WHERE "economic_incentive_regime"='1.58';
```
## Task
Generate a SQL query to answer the following question:
`How many thousands of viewers tuned in for "Make Mad the Guilty and Appal the Free"?`

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

CREATE TABLE "table1_23114705_7" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "n_z_viewers_thousand" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many thousands of viewers tuned in for "Make Mad the Guilty and Appal the Free"?`:
```sql
                SELECT "n_z_viewers_thousand" FROM "table1_23114705_7" WHERE "title"='\"Make Mad the Guilty and Appal the Free\"';
```
## Task
Generate a SQL query to answer the following question:
`When did "Follow Her Close" air?`

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

CREATE TABLE "table1_23114705_7" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "n_z_viewers_thousand" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did "Follow Her Close" air?`:
```sql
                SELECT "original_air_date" FROM "table1_23114705_7" WHERE "title"='\"Follow Her Close\"';
```
## Task
Generate a SQL query to answer the following question:
`What was the air date of the episod that had 456.58 thousand viewers?`

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

CREATE TABLE "table1_23114705_7" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "n_z_viewers_thousand" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the air date of the episod that had 456.58 thousand viewers?`:
```sql
                SELECT "original_air_date" FROM "table1_23114705_7" WHERE "n_z_viewers_thousand"='456.58';
```
## Task
Generate a SQL query to answer the following question:
`What season had a winning profit of $15,000?`

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

CREATE TABLE "table1_2311410_1" (
  "season" text,
  "episodes" real,
  "series_premiere" text,
  "series_finale" text,
  "winning_couple" text,
  "winning_profit_aud" text,
  "host_s" text,
  "judges" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season had a winning profit of $15,000?`:
```sql
                SELECT "season" FROM "table1_2311410_1" WHERE "winning_profit_aud"='$15,000';
```
## Task
Generate a SQL query to answer the following question:
`How many series premieres did the season "All-stars" have?`

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

CREATE TABLE "table1_2311410_1" (
  "season" text,
  "episodes" real,
  "series_premiere" text,
  "series_finale" text,
  "winning_couple" text,
  "winning_profit_aud" text,
  "host_s" text,
  "judges" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many series premieres did the season "All-stars" have?`:
```sql
                SELECT COUNT("series_premiere") FROM "table1_2311410_1" WHERE "season"='All-Stars';
```
## Task
Generate a SQL query to answer the following question:
`Name the erin and jake for week 4`

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

CREATE TABLE "table1_2311410_5" (
  "week" real,
  "room_s" text,
  "john_and_neisha" text,
  "mark_and_duncan" text,
  "erin_and_jake" text,
  "chez_and_brenton" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the erin and jake for week 4`:
```sql
                SELECT "erin_and_jake" FROM "table1_2311410_5" WHERE "week"=4;
```
## Task
Generate a SQL query to answer the following question:
`when the number of spectator are 5.28 millions, which is the smallest number of the episode in series? `

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

CREATE TABLE "table1_23117208_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `when the number of spectator are 5.28 millions, which is the smallest number of the episode in series? `:
```sql
                SELECT MIN("no_in_series") FROM "table1_23117208_3" WHERE "viewers_millions"='5.28';
```
## Task
Generate a SQL query to answer the following question:
`which is the biggest number of episode in the season, where the number of the episode in series is 20?`

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

CREATE TABLE "table1_23117208_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `which is the biggest number of episode in the season, where the number of the episode in series is 20?`:
```sql
                SELECT MAX("no_in_season") FROM "table1_23117208_3" WHERE "no_in_series"=20;
```
## Task
Generate a SQL query to answer the following question:
`what is the name of the episode when the number of spectators was 5.60 millions?`

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

CREATE TABLE "table1_23117208_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the episode when the number of spectators was 5.60 millions?`:
```sql
                SELECT "title" FROM "table1_23117208_3" WHERE "viewers_millions"='5.60';
```
## Task
Generate a SQL query to answer the following question:
`how many millions of spectator did has the episode whose prod.code was rp#213?`

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

CREATE TABLE "table1_23117208_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many millions of spectator did has the episode whose prod.code was rp#213?`:
```sql
                SELECT "viewers_millions" FROM "table1_23117208_3" WHERE "prod_code"='RP#213';
```
## Task
Generate a SQL query to answer the following question:
`which is the biggest number of episode in the season, when the director of the episode was Constantine Makris?`

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

CREATE TABLE "table1_23117208_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `which is the biggest number of episode in the season, when the director of the episode was Constantine Makris?`:
```sql
                SELECT MAX("no_in_season") FROM "table1_23117208_3" WHERE "directed_by"='Constantine Makris';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the episode that was written by Michael Rauch?`

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

CREATE TABLE "table1_23117208_5" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the episode that was written by Michael Rauch?`:
```sql
                SELECT "title" FROM "table1_23117208_5" WHERE "written_by"='Michael Rauch';
```
## Task
Generate a SQL query to answer the following question:
`For the episode directed by Matthew Penn, what is the total number in the series?`

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

CREATE TABLE "table1_23117208_5" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the episode directed by Matthew Penn, what is the total number in the series?`:
```sql
                SELECT "no_in_series" FROM "table1_23117208_5" WHERE "directed_by"='Matthew Penn';
```
## Task
Generate a SQL query to answer the following question:
`Name the production code for 4.92 million viewers`

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

CREATE TABLE "table1_23117208_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the production code for 4.92 million viewers`:
```sql
                SELECT "prod_code" FROM "table1_23117208_4" WHERE "viewers_millions"='4.92';
```
## Task
Generate a SQL query to answer the following question:
`Name the least number in season for jessica ball`

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

CREATE TABLE "table1_23117208_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least number in season for jessica ball`:
```sql
                SELECT MIN("no_in_season") FROM "table1_23117208_4" WHERE "written_by"='Jessica Ball';
```
## Task
Generate a SQL query to answer the following question:
`How many flaps did he have when he had 109 points?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" real,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many flaps did he have when he had 109 points?`:
```sql
                SELECT MAX("f_laps") FROM "career_summary" WHERE "points"=109;
```
## Task
Generate a SQL query to answer the following question:
`How many wins did he have with carlin motorsport?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" real,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins did he have with carlin motorsport?`:
```sql
                SELECT COUNT("wins") FROM "career_summary" WHERE "team_name"='Carlin Motorsport';
```
## Task
Generate a SQL query to answer the following question:
`What was the most races he had in a season?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" real,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the most races he had in a season?`:
```sql
                SELECT MAX("races") FROM "career_summary";
```