cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many loses corresponded to giving up 714 points?`

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

CREATE TABLE "2010_2011_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many loses corresponded to giving up 714 points?`:
```sql
                SELECT "lost" FROM "2010_2011_table" WHERE "points_against"='714';
```
## Task
Generate a SQL query to answer the following question:
`How many draws were there when there were 30 tries against?`

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

CREATE TABLE "2010_2011_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many draws were there when there were 30 tries against?`:
```sql
                SELECT "drawn" FROM "2010_2011_table" WHERE "tries_against"='30';
```
## Task
Generate a SQL query to answer the following question:
`How many try bonuses were there when there were 64 tries for?`

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

CREATE TABLE "2010_2011_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many try bonuses were there when there were 64 tries for?`:
```sql
                SELECT "try_bonus" FROM "2010_2011_table" WHERE "tries_for"='64';
```
## Task
Generate a SQL query to answer the following question:
`Which club gave up 714 points?`

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

CREATE TABLE "2010_2011_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club gave up 714 points?`:
```sql
                SELECT "club" FROM "2010_2011_table" WHERE "points_against"='714';
```
## Task
Generate a SQL query to answer the following question:
`What is the third entry in the row with a first entry of "club"?`

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

CREATE TABLE "2010_2011_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the third entry in the row with a first entry of "club"?`:
```sql
                SELECT "won" FROM "2010_2011_table" WHERE "club"='Club';
```
## Task
Generate a SQL query to answer the following question:
`What is the 8th entry in the row with a first entry of "club"?`

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

CREATE TABLE "2010_2011_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 8th entry in the row with a first entry of "club"?`:
```sql
                SELECT "tries_for" FROM "2010_2011_table" WHERE "club"='Club';
```
## Task
Generate a SQL query to answer the following question:
`How many were won with the points against was 450?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were won with the points against was 450?`:
```sql
                SELECT COUNT("won") FROM "2009_2010_table" WHERE "points_against"='450';
```
## Task
Generate a SQL query to answer the following question:
` what was the drawn when the tries for was 46?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what was the drawn when the tries for was 46?`:
```sql
                SELECT "drawn" FROM "2009_2010_table" WHERE "tries_for"='46';
```
## Task
Generate a SQL query to answer the following question:
`What was the won when the points for was 496?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the won when the points for was 496?`:
```sql
                SELECT "won" FROM "2009_2010_table" WHERE "points_for"='496';
```
## Task
Generate a SQL query to answer the following question:
`What was the losing bonus when the points against was 445?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the losing bonus when the points against was 445?`:
```sql
                SELECT "losing_bonus" FROM "2009_2010_table" WHERE "points_against"='445';
```
## Task
Generate a SQL query to answer the following question:
`What was the tries against when the drawn was 2?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tries against when the drawn was 2?`:
```sql
                SELECT "tries_against" FROM "2009_2010_table" WHERE "drawn"='2';
```
## Task
Generate a SQL query to answer the following question:
`What was the drawn when the tries against was 89?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the drawn when the tries against was 89?`:
```sql
                SELECT "drawn" FROM "2009_2010_table" WHERE "tries_against"='89';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of the name for number 4?`

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

CREATE TABLE "list_of_daimy" (
  "num" real,
  "name" text,
  "tenure" text,
  "courtesy_title" text,
  "court_rank" text,
  "revenues" text,
  "lineage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of the name for number 4?`:
```sql
                SELECT COUNT("name") FROM "list_of_daimy" WHERE "num"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the most number?`

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

CREATE TABLE "list_of_daimy" (
  "num" real,
  "name" text,
  "tenure" text,
  "courtesy_title" text,
  "court_rank" text,
  "revenues" text,
  "lineage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most number?`:
```sql
                SELECT MAX("num") FROM "list_of_daimy";
```
## Task
Generate a SQL query to answer the following question:
`what amount played tried for 60? `

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what amount played tried for 60? `:
```sql
                SELECT COUNT("played") FROM "2007_2008_table" WHERE "tries_for"='60';
```
## Task
Generate a SQL query to answer the following question:
`How many played where the points were 80?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many played where the points were 80?`:
```sql
                SELECT "played" FROM "2007_2008_table" WHERE "points"='80';
```
## Task
Generate a SQL query to answer the following question:
`what amount of points were lost by 13?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what amount of points were lost by 13?`:
```sql
                SELECT "points" FROM "2007_2008_table" WHERE "lost"='13';
```
## Task
Generate a SQL query to answer the following question:
`what are the total points agains the score of 63?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are the total points agains the score of 63?`:
```sql
                SELECT "points_against" FROM "2007_2008_table" WHERE "points"='63';
```
## Task
Generate a SQL query to answer the following question:
`What amount of points where points  were 389?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What amount of points where points  were 389?`:
```sql
                SELECT COUNT("points") FROM "2007_2008_table" WHERE "points_against"='389';
```
## Task
Generate a SQL query to answer the following question:
`HOW MANY PLAYERS PLAYED IN THE GAME THAT WON WITH 438 POINTS`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `HOW MANY PLAYERS PLAYED IN THE GAME THAT WON WITH 438 POINTS`:
```sql
                SELECT "played" FROM "2009_2010_table" WHERE "points_for"='438';
```
## Task
Generate a SQL query to answer the following question:
`HOW MANY GAMES HAD A WIN WITH A BONUS OF 11`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `HOW MANY GAMES HAD A WIN WITH A BONUS OF 11`:
```sql
                SELECT "won" FROM "2009_2010_table" WHERE "try_bonus"='11';
```
## Task
Generate a SQL query to answer the following question:
`HOW MANY GAMES WERE TIED AT 3?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `HOW MANY GAMES WERE TIED AT 3?`:
```sql
                SELECT "tries_for" FROM "2009_2010_table" WHERE "drawn"='3';
```
## Task
Generate a SQL query to answer the following question:
`HOW MANY GAMES HAD BONUS POINTS OF 6?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `HOW MANY GAMES HAD BONUS POINTS OF 6?`:
```sql
                SELECT "points_for" FROM "2009_2010_table" WHERE "try_bonus"='6';
```
## Task
Generate a SQL query to answer the following question:
`HOW MANY GAMES WERE TIED AT 76?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `HOW MANY GAMES WERE TIED AT 76?`:
```sql
                SELECT "drawn" FROM "2009_2010_table" WHERE "points"='76';
```
## Task
Generate a SQL query to answer the following question:
`HOW MANY GAMES WERE LOST BY 12 POINTS?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `HOW MANY GAMES WERE LOST BY 12 POINTS?`:
```sql
                SELECT COUNT("points_for") FROM "2009_2010_table" WHERE "lost"='12';
```
## Task
Generate a SQL query to answer the following question:
`What was the number of earnings were cuts made are 19 and money list rank is 3?`

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

CREATE TABLE "european_tour_professional_career_summar" (
  "year" real,
  "starts" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "3rd" real,
  "top_10" real,
  "top_25" real,
  "earnings" real,
  "money_list_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of earnings were cuts made are 19 and money list rank is 3?`:
```sql
                SELECT "earnings" FROM "european_tour_professional_career_summar" WHERE "cuts_made"=19 AND "money_list_rank"=3;
```
## Task
Generate a SQL query to answer the following question:
`How many listings are under money list rank wher 2nd' value is larger than 2.0?`

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

CREATE TABLE "european_tour_professional_career_summar" (
  "year" real,
  "starts" real,
  "cuts_made" real,
  "wins" real,
  "2nd" real,
  "3rd" real,
  "top_10" real,
  "top_25" real,
  "earnings" real,
  "money_list_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many listings are under money list rank wher 2nd' value is larger than 2.0?`:
```sql
                SELECT COUNT("money_list_rank") FROM "european_tour_professional_career_summar" WHERE "2nd">2.0;
```
## Task
Generate a SQL query to answer the following question:
`what are all the barrel lengths whith the name  ar-15a3 competition hbar`

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

CREATE TABLE "r_series_models" (
  "colt_model_no" text,
  "name" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "case_deflector" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all the barrel lengths whith the name  ar-15a3 competition hbar`:
```sql
                SELECT "barrel_length" FROM "r_series_models" WHERE "name"='AR-15A3 Competition HBAR';
```
## Task
Generate a SQL query to answer the following question:
`What is the fire control for the sporter target`

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

CREATE TABLE "r_series_models" (
  "colt_model_no" text,
  "name" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "case_deflector" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fire control for the sporter target`:
```sql
                SELECT "fire_control" FROM "r_series_models" WHERE "name"='Sporter Target';
```
## Task
Generate a SQL query to answer the following question:
`What is the days with rain figure for the city of Santiago de Compostela?`

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

CREATE TABLE "climate" (
  "city_town" text,
  "july_av_t" text,
  "rain" text,
  "days_with_rain_year_summer" text,
  "days_with_frost" real,
  "sunlight_hours" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the days with rain figure for the city of Santiago de Compostela?`:
```sql
                SELECT "days_with_rain_year_summer" FROM "climate" WHERE "city_town"='Santiago de Compostela';
```
## Task
Generate a SQL query to answer the following question:
`How many rain figures are provided for sunlight hours in 1966?`

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

CREATE TABLE "climate" (
  "city_town" text,
  "july_av_t" text,
  "rain" text,
  "days_with_rain_year_summer" text,
  "days_with_frost" real,
  "sunlight_hours" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many rain figures are provided for sunlight hours in 1966?`:
```sql
                SELECT COUNT("rain") FROM "climate" WHERE "sunlight_hours"=1966;
```
## Task
Generate a SQL query to answer the following question:
`What is the value of barrel twist when the barrel profile is SFW?`

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

CREATE TABLE "diemaco_colt_canada_models" (
  "colt_model_no" text,
  "diemaco_model" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value of barrel twist when the barrel profile is SFW?`:
```sql
                SELECT "barrel_twist" FROM "diemaco_colt_canada_models" WHERE "barrel_profile"='SFW';
```
## Task
Generate a SQL query to answer the following question:
`What kind of hand guards are associated with a rear sight of A1 and stock of A2?`

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

CREATE TABLE "diemaco_colt_canada_models" (
  "colt_model_no" text,
  "diemaco_model" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of hand guards are associated with a rear sight of A1 and stock of A2?`:
```sql
                SELECT "hand_guards" FROM "diemaco_colt_canada_models" WHERE "rear_sight"='A1' AND "stock"='A2';
```
## Task
Generate a SQL query to answer the following question:
`How many inches is the barrel length when the rear sight is weaver and the barrel profile is A2?`

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

CREATE TABLE "diemaco_colt_canada_models" (
  "colt_model_no" text,
  "diemaco_model" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many inches is the barrel length when the rear sight is weaver and the barrel profile is A2?`:
```sql
                SELECT "barrel_length" FROM "diemaco_colt_canada_models" WHERE "rear_sight"='Weaver' AND "barrel_profile"='A2';
```
## Task
Generate a SQL query to answer the following question:
`What is the muzzle device on the colt model le1020?`

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

CREATE TABLE "le_series_models" (
  "colt_model_no" text,
  "name" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the muzzle device on the colt model le1020?`:
```sql
                SELECT "muzzle_device" FROM "le_series_models" WHERE "colt_model_no"='LE1020';
```
## Task
Generate a SQL query to answer the following question:
`What is the barrell profile that goes with the gas piston carbine?`

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

CREATE TABLE "le_series_models" (
  "colt_model_no" text,
  "name" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the barrell profile that goes with the gas piston carbine?`:
```sql
                SELECT "barrel_profile" FROM "le_series_models" WHERE "name"='Gas Piston Carbine';
```
## Task
Generate a SQL query to answer the following question:
`What models have an a2 barrel profile?`

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

CREATE TABLE "le_series_models" (
  "colt_model_no" text,
  "name" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `What models have an a2 barrel profile?`:
```sql
                SELECT "name" FROM "le_series_models" WHERE "barrel_profile"='A2';
```
## Task
Generate a SQL query to answer the following question:
`What hand guard system is used with a gas piston commando?`

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

CREATE TABLE "le_series_models" (
  "colt_model_no" text,
  "name" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `What hand guard system is used with a gas piston commando?`:
```sql
                SELECT "hand_guards" FROM "le_series_models" WHERE "name"='Gas Piston Commando';
```
## Task
Generate a SQL query to answer the following question:
`What is the bayonet lug status for a m4 hbar and m4le carbine equipped?`

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

CREATE TABLE "le_series_models" (
  "colt_model_no" text,
  "name" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bayonet lug status for a m4 hbar and m4le carbine equipped?`:
```sql
                SELECT "bayonet_lug" FROM "le_series_models" WHERE "barrel_profile"='M4 HBAR' AND "name"='M4LE Carbine';
```
## Task
Generate a SQL query to answer the following question:
`What is the barrel length for a cold model le6921sp?`

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

CREATE TABLE "le_series_models" (
  "colt_model_no" text,
  "name" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the barrel length for a cold model le6921sp?`:
```sql
                SELECT "barrel_length" FROM "le_series_models" WHERE "colt_model_no"='LE6921SP';
```
## Task
Generate a SQL query to answer the following question:
`Name the barrel length for rear sight a2 for factory compensator`

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

CREATE TABLE "mt_and_cr_series_models" (
  "colt_model_no" text,
  "name" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "case_deflector" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the barrel length for rear sight a2 for factory compensator`:
```sql
                SELECT "barrel_length" FROM "mt_and_cr_series_models" WHERE "rear_sight"='A2' AND "muzzle_device"='Factory compensator';
```
## Task
Generate a SQL query to answer the following question:
`Name the barrel twist for colt model mt6400`

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

CREATE TABLE "mt_and_cr_series_models" (
  "colt_model_no" text,
  "name" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "case_deflector" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the barrel twist for colt model mt6400`:
```sql
                SELECT "barrel_twist" FROM "mt_and_cr_series_models" WHERE "colt_model_no"='MT6400';
```
## Task
Generate a SQL query to answer the following question:
`Name the forward assist for a2 barrel profile`

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

CREATE TABLE "mt_and_cr_series_models" (
  "colt_model_no" text,
  "name" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "case_deflector" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the forward assist for a2 barrel profile`:
```sql
                SELECT "forward_assist" FROM "mt_and_cr_series_models" WHERE "barrel_profile"='A2';
```
## Task
Generate a SQL query to answer the following question:
`Name the stock for colt model mt6601`

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

CREATE TABLE "mt_and_cr_series_models" (
  "colt_model_no" text,
  "name" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "case_deflector" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the stock for colt model mt6601`:
```sql
                SELECT "stock" FROM "mt_and_cr_series_models" WHERE "colt_model_no"='MT6601';
```
## Task
Generate a SQL query to answer the following question:
`How many races is different distances does Rosehill Guineas compete in? `

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

CREATE TABLE "1995_96_season_as_a_three_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many races is different distances does Rosehill Guineas compete in? `:
```sql
                SELECT COUNT("distance") FROM "1995_96_season_as_a_three_year_old" WHERE "race"='Rosehill Guineas';
```
## Task
Generate a SQL query to answer the following question:
`How many games ended up with 16 points?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games ended up with 16 points?`:
```sql
                SELECT "played" FROM "2008_2009_table" WHERE "points"='16';
```
## Task
Generate a SQL query to answer the following question:
`What was the tries against count for the club whose tries for count was 29?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tries against count for the club whose tries for count was 29?`:
```sql
                SELECT "tries_against" FROM "2008_2009_table" WHERE "tries_for"='29';
```
## Task
Generate a SQL query to answer the following question:
`How many points does Croesyceiliog RFC have?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points does Croesyceiliog RFC have?`:
```sql
                SELECT "points" FROM "2008_2009_table" WHERE "club"='Croesyceiliog RFC';
```
## Task
Generate a SQL query to answer the following question:
`What's the points for count for the club with 41 points and 8 won games?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the points for count for the club with 41 points and 8 won games?`:
```sql
                SELECT "points_for" FROM "2008_2009_table" WHERE "points"='41' AND "won"='8';
```
## Task
Generate a SQL query to answer the following question:
`What's the points for count for the club with tries for count of 29?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the points for count for the club with tries for count of 29?`:
```sql
                SELECT "points_for" FROM "2008_2009_table" WHERE "tries_for"='29';
```
## Task
Generate a SQL query to answer the following question:
`What's the try bonus count for the club whose tries against count is 83?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the try bonus count for the club whose tries against count is 83?`:
```sql
                SELECT "try_bonus" FROM "2008_2009_table" WHERE "tries_against"='83';
```
## Task
Generate a SQL query to answer the following question:
`Where is the real estate agent from?`

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

CREATE TABLE "candidates" (
  "candidate" text,
  "background" text,
  "original_team" text,
  "age" real,
  "hometown" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the real estate agent from?`:
```sql
                SELECT "hometown" FROM "candidates" WHERE "background"='Real Estate Agent';
```
## Task
Generate a SQL query to answer the following question:
`What background does the person from New york, New york, have?`

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

CREATE TABLE "candidates" (
  "candidate" text,
  "background" text,
  "original_team" text,
  "age" real,
  "hometown" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What background does the person from New york, New york, have?`:
```sql
                SELECT "background" FROM "candidates" WHERE "hometown"='New York, New York';
```
## Task
Generate a SQL query to answer the following question:
`How many backgrounds are there represented from Memphis, Tennessee?`

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

CREATE TABLE "candidates" (
  "candidate" text,
  "background" text,
  "original_team" text,
  "age" real,
  "hometown" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many backgrounds are there represented from Memphis, Tennessee?`:
```sql
                SELECT COUNT("background") FROM "candidates" WHERE "hometown"='Memphis, Tennessee';
```
## Task
Generate a SQL query to answer the following question:
`How many people had a prosecutor background?`

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

CREATE TABLE "candidates" (
  "candidate" text,
  "background" text,
  "original_team" text,
  "age" real,
  "hometown" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people had a prosecutor background?`:
```sql
                SELECT COUNT("result") FROM "candidates" WHERE "background"='Prosecutor';
```
## Task
Generate a SQL query to answer the following question:
`Where was Kristen Kirchner from?`

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

CREATE TABLE "candidates" (
  "candidate" text,
  "background" text,
  "original_team" text,
  "age" real,
  "hometown" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was Kristen Kirchner from?`:
```sql
                SELECT "hometown" FROM "candidates" WHERE "candidate"='Kristen Kirchner';
```
## Task
Generate a SQL query to answer the following question:
`How many clubs have a tries against count of 41?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many clubs have a tries against count of 41?`:
```sql
                SELECT COUNT("try_bonus") FROM "2007_2008_table" WHERE "tries_against"='41';
```
## Task
Generate a SQL query to answer the following question:
`How many clubs have won 6 games?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many clubs have won 6 games?`:
```sql
                SELECT COUNT("club") FROM "2007_2008_table" WHERE "won"='6';
```
## Task
Generate a SQL query to answer the following question:
`How many clubs have a tries against count of 45 and a losing bonus of 4?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many clubs have a tries against count of 45 and a losing bonus of 4?`:
```sql
                SELECT COUNT("tries_for") FROM "2007_2008_table" WHERE "tries_against"='45' AND "losing_bonus"='4';
```
## Task
Generate a SQL query to answer the following question:
`What club has a tries for count of 19?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club has a tries for count of 19?`:
```sql
                SELECT "club" FROM "2007_2008_table" WHERE "tries_for"='19';
```
## Task
Generate a SQL query to answer the following question:
`How many clubs have tries for count of 50?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many clubs have tries for count of 50?`:
```sql
                SELECT COUNT("played") FROM "2007_2008_table" WHERE "tries_for"='50';
```
## Task
Generate a SQL query to answer the following question:
`What's the number of drawn games for the club with a tries for count of 76?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of drawn games for the club with a tries for count of 76?`:
```sql
                SELECT "drawn" FROM "2007_2008_table" WHERE "tries_for"='76';
```
## Task
Generate a SQL query to answer the following question:
`What is the against percentage in the Vest-Agder constituency?`

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

CREATE TABLE "by_constituency" (
  "constituency" text,
  "electorate" real,
  "s_spoilt_vote" real,
  "total_poll_pct" text,
  "for_pct" text,
  "against_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the against percentage in the Vest-Agder constituency?`:
```sql
                SELECT "against_pct" FROM "by_constituency" WHERE "constituency"='Vest-Agder';
```
## Task
Generate a SQL query to answer the following question:
`How many electorates are there with Hedmark as a constituency?`

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

CREATE TABLE "by_constituency" (
  "constituency" text,
  "electorate" real,
  "s_spoilt_vote" real,
  "total_poll_pct" text,
  "for_pct" text,
  "against_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many electorates are there with Hedmark as a constituency?`:
```sql
                SELECT COUNT("electorate") FROM "by_constituency" WHERE "constituency"='Hedmark';
```
## Task
Generate a SQL query to answer the following question:
`How many for percentages are there when the against percentage is 35,782 (69)?`

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

CREATE TABLE "by_constituency" (
  "constituency" text,
  "electorate" real,
  "s_spoilt_vote" real,
  "total_poll_pct" text,
  "for_pct" text,
  "against_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many for percentages are there when the against percentage is 35,782 (69)?`:
```sql
                SELECT "for_pct" FROM "by_constituency" WHERE "against_pct"='35,782 (69)';
```
## Task
Generate a SQL query to answer the following question:
`List the smallest possible spoilt vote with the sør-trøndelag constituency.`

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

CREATE TABLE "by_constituency" (
  "constituency" text,
  "electorate" real,
  "s_spoilt_vote" real,
  "total_poll_pct" text,
  "for_pct" text,
  "against_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the smallest possible spoilt vote with the sør-trøndelag constituency.`:
```sql
                SELECT MIN("s_spoilt_vote") FROM "by_constituency" WHERE "constituency"='Sør-Trøndelag';
```
## Task
Generate a SQL query to answer the following question:
`List all total poll percentages when the for percentage is 59,532 (54).`

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

CREATE TABLE "by_constituency" (
  "constituency" text,
  "electorate" real,
  "s_spoilt_vote" real,
  "total_poll_pct" text,
  "for_pct" text,
  "against_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all total poll percentages when the for percentage is 59,532 (54).`:
```sql
                SELECT "total_poll_pct" FROM "by_constituency" WHERE "for_pct"='59,532 (54)';
```
## Task
Generate a SQL query to answer the following question:
`What's the writer of Episode 1?`

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

CREATE TABLE "table1_12919003_3" (
  "num" real,
  "episode" text,
  "writer" text,
  "director" text,
  "viewers_millions" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the writer of Episode 1?`:
```sql
                SELECT "writer" FROM "table1_12919003_3" WHERE "episode"='Episode 1';
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of episodes both directed by Tom Hooper and viewed by 8.08 million viewers?`

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

CREATE TABLE "table1_12919003_3" (
  "num" real,
  "episode" text,
  "writer" text,
  "director" text,
  "viewers_millions" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of episodes both directed by Tom Hooper and viewed by 8.08 million viewers?`:
```sql
                SELECT COUNT("num") FROM "table1_12919003_3" WHERE "director"='Tom Hooper' AND "viewers_millions"='8.08';
```
## Task
Generate a SQL query to answer the following question:
`What's the original airdate of the episode directed by Pete Travis?`

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

CREATE TABLE "table1_12919003_3" (
  "num" real,
  "episode" text,
  "writer" text,
  "director" text,
  "viewers_millions" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the original airdate of the episode directed by Pete Travis?`:
```sql
                SELECT "original_airdate" FROM "table1_12919003_3" WHERE "director"='Pete Travis';
```