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

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

CREATE TABLE "see_also" (
  "no" real,
  "english_name" text,
  "bulgarian_name" text,
  "bulgarian_name_transliteration" text,
  "old_bulgarian_names" text,
  "old_bulgarian_name_transliteration" text,
  "old_bulgarian_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the bulgarian name for mart`:
```sql
                SELECT "bulgarian_name" FROM "see_also" WHERE "bulgarian_name_transliteration"='Mart';
```
## Task
Generate a SQL query to answer the following question:
`Name the old bulgarian name for ruen, ruy`

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

CREATE TABLE "see_also" (
  "no" real,
  "english_name" text,
  "bulgarian_name" text,
  "bulgarian_name_transliteration" text,
  "old_bulgarian_names" text,
  "old_bulgarian_name_transliteration" text,
  "old_bulgarian_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the old bulgarian name for ruen, ruy`:
```sql
                SELECT "old_bulgarian_name_meaning" FROM "see_also" WHERE "old_bulgarian_name_transliteration"='Ruen, Ruy';
```
## Task
Generate a SQL query to answer the following question:
`Name the old bulgarian name for number 4`

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

CREATE TABLE "see_also" (
  "no" real,
  "english_name" text,
  "bulgarian_name" text,
  "bulgarian_name_transliteration" text,
  "old_bulgarian_names" text,
  "old_bulgarian_name_transliteration" text,
  "old_bulgarian_name_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the old bulgarian name for number 4`:
```sql
                SELECT "old_bulgarian_name_meaning" FROM "see_also" WHERE "no"=4;
```
## Task
Generate a SQL query to answer the following question:
`Who owned the team Jeremy Mayfield raced for?`

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

CREATE TABLE "teams_and_drivers" (
  "team" text,
  "car_s" text,
  "num" real,
  "driver_s" text,
  "primary_sponsor_s" text,
  "listed_owner_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who owned the team Jeremy Mayfield raced for?`:
```sql
                SELECT "listed_owner_s" FROM "teams_and_drivers" WHERE "driver_s"='Jeremy Mayfield';
```
## Task
Generate a SQL query to answer the following question:
`Who is Jason Leffler's primary sponsor?`

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

CREATE TABLE "teams_and_drivers" (
  "team" text,
  "car_s" text,
  "num" real,
  "driver_s" text,
  "primary_sponsor_s" text,
  "listed_owner_s" text,
  "crew_chief" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is Jason Leffler's primary sponsor?`:
```sql
                SELECT "primary_sponsor_s" FROM "teams_and_drivers" WHERE "driver_s"='Jason Leffler';
```
## Task
Generate a SQL query to answer the following question:
`How many stages were there where the winner and the points classification were Alberto Contador?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "combination_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many stages were there where the winner and the points classification were Alberto Contador?`:
```sql
                SELECT COUNT("stage") FROM "classification_leadership_by_stage" WHERE "winner"='Alberto Contador' AND "points_classification"='Alberto Contador';
```
## Task
Generate a SQL query to answer the following question:
`When the winner was Alessandro Ballan, how many total team classifications were there?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "combination_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the winner was Alessandro Ballan, how many total team classifications were there?`:
```sql
                SELECT COUNT("team_classification") FROM "classification_leadership_by_stage" WHERE "winner"='Alessandro Ballan';
```
## Task
Generate a SQL query to answer the following question:
`When the team classification was quick step, what was the total number of general classifications?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "combination_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the team classification was quick step, what was the total number of general classifications?`:
```sql
                SELECT COUNT("general_classification") FROM "classification_leadership_by_stage" WHERE "team_classification"='Quick Step';
```
## Task
Generate a SQL query to answer the following question:
`Who won the spanish grand prix?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the spanish grand prix?`:
```sql
                SELECT "250cc_winner" FROM "grands_prix" WHERE "grand_prix"='Spanish Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the Indianapolis circuit?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the Indianapolis circuit?`:
```sql
                SELECT "date" FROM "grands_prix" WHERE "circuit"='Indianapolis';
```
## Task
Generate a SQL query to answer the following question:
`in round 9 who was the 250cc winner?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "125cc_winner" text,
  "250cc_winner" text,
  "moto_gp_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `in round 9 who was the 250cc winner?`:
```sql
                SELECT "250cc_winner" FROM "grands_prix" WHERE "round"=9;
```
## Task
Generate a SQL query to answer the following question:
`If the velocity angle is ln[(1 + √5)/2] ≅ 0.481, what is the condition/parameter?`

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

CREATE TABLE "table1_15314901_1" (
  "condition_parameter" text,
  "coordinate_velocity_v_dx_dt_in_units_of_c" text,
  "velocity_angle_in_i_radians" text,
  "proper_velocity_w_dx_d_in_units_of_c" text,
  "lorentz_factor_dt_d_e_mc_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the velocity angle is ln[(1 + √5)/2] ≅ 0.481, what is the condition/parameter?`:
```sql
                SELECT "condition_parameter" FROM "table1_15314901_1" WHERE "velocity_angle_in_i_radians"='ln[(1 + √5)/2] ≅ 0.481';
```
## Task
Generate a SQL query to answer the following question:
`If the the condition/parameter is rapidity of 2 hyperbolic radians, what is the coordinate velocity v dx/dt in units of c?`

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

CREATE TABLE "table1_15314901_1" (
  "condition_parameter" text,
  "coordinate_velocity_v_dx_dt_in_units_of_c" text,
  "velocity_angle_in_i_radians" text,
  "proper_velocity_w_dx_d_in_units_of_c" text,
  "lorentz_factor_dt_d_e_mc_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the the condition/parameter is rapidity of 2 hyperbolic radians, what is the coordinate velocity v dx/dt in units of c?`:
```sql
                SELECT "coordinate_velocity_v_dx_dt_in_units_of_c" FROM "table1_15314901_1" WHERE "condition_parameter"='Rapidity of 2 hyperbolic radians';
```
## Task
Generate a SQL query to answer the following question:
`If the coordinate velocity v dx/dt in units of c is (e 2 − 1)/(e 2 + 1) ≅ 0.761, what is the velocity angle η in i-radians?`

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

CREATE TABLE "table1_15314901_1" (
  "condition_parameter" text,
  "coordinate_velocity_v_dx_dt_in_units_of_c" text,
  "velocity_angle_in_i_radians" text,
  "proper_velocity_w_dx_d_in_units_of_c" text,
  "lorentz_factor_dt_d_e_mc_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the coordinate velocity v dx/dt in units of c is (e 2 − 1)/(e 2 + 1) ≅ 0.761, what is the velocity angle η in i-radians?`:
```sql
                SELECT "velocity_angle_in_i_radians" FROM "table1_15314901_1" WHERE "coordinate_velocity_v_dx_dt_in_units_of_c"='(e 2 − 1)/(e 2 + 1) ≅ 0.761';
```
## Task
Generate a SQL query to answer the following question:
`What is the coordinate velocity v dx/dt in units of c total number if the velocity angle η in i-radians is ln[2 + √5] ≅ 1.444?`

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

CREATE TABLE "table1_15314901_1" (
  "condition_parameter" text,
  "coordinate_velocity_v_dx_dt_in_units_of_c" text,
  "velocity_angle_in_i_radians" text,
  "proper_velocity_w_dx_d_in_units_of_c" text,
  "lorentz_factor_dt_d_e_mc_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the coordinate velocity v dx/dt in units of c total number if the velocity angle η in i-radians is ln[2 + √5] ≅ 1.444?`:
```sql
                SELECT COUNT("coordinate_velocity_v_dx_dt_in_units_of_c") FROM "table1_15314901_1" WHERE "velocity_angle_in_i_radians"='ln[2 + √5] ≅ 1.444';
```
## Task
Generate a SQL query to answer the following question:
`If the condition/parameter is rapidity of 1 hyperbolic radian, what is the proper velocity w dx/dτ in units of c?`

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

CREATE TABLE "table1_15314901_1" (
  "condition_parameter" text,
  "coordinate_velocity_v_dx_dt_in_units_of_c" text,
  "velocity_angle_in_i_radians" text,
  "proper_velocity_w_dx_d_in_units_of_c" text,
  "lorentz_factor_dt_d_e_mc_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the condition/parameter is rapidity of 1 hyperbolic radian, what is the proper velocity w dx/dτ in units of c?`:
```sql
                SELECT "proper_velocity_w_dx_d_in_units_of_c" FROM "table1_15314901_1" WHERE "condition_parameter"='Rapidity of 1 hyperbolic radian';
```
## Task
Generate a SQL query to answer the following question:
`If the lorentz factor γ dt/dτ = e/mc 2 is √5 ≅ 2.236, what is the proper velocity w dx/dτ in units of c?`

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

CREATE TABLE "table1_15314901_1" (
  "condition_parameter" text,
  "coordinate_velocity_v_dx_dt_in_units_of_c" text,
  "velocity_angle_in_i_radians" text,
  "proper_velocity_w_dx_d_in_units_of_c" text,
  "lorentz_factor_dt_d_e_mc_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the lorentz factor γ dt/dτ = e/mc 2 is √5 ≅ 2.236, what is the proper velocity w dx/dτ in units of c?`:
```sql
                SELECT "proper_velocity_w_dx_d_in_units_of_c" FROM "table1_15314901_1" WHERE "lorentz_factor_dt_d_e_mc_2"='√5 ≅ 2.236';
```
## Task
Generate a SQL query to answer the following question:
`What year is dayton in class AAAA?`

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

CREATE TABLE "individual" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year is dayton in class AAAA?`:
```sql
                SELECT "school_year" FROM "individual" WHERE "class_aaaa"='Dayton';
```
## Task
Generate a SQL query to answer the following question:
`Who is in class during 1995-96?`

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

CREATE TABLE "individual" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in class during 1995-96?`:
```sql
                SELECT "class_aaaaa" FROM "individual" WHERE "school_year"='1995-96';
```
## Task
Generate a SQL query to answer the following question:
`When are all years that tournament location is Western Turnpike Golf Course?`

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

CREATE TABLE "winners" (
  "year" text,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "tournament_location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `When are all years that tournament location is Western Turnpike Golf Course?`:
```sql
                SELECT "year" FROM "winners" WHERE "tournament_location"='Western Turnpike Golf Course';
```
## Task
Generate a SQL query to answer the following question:
`When are all years that the champion is Ji Min Jeong?`

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

CREATE TABLE "winners" (
  "year" text,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "tournament_location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `When are all years that the champion is Ji Min Jeong?`:
```sql
                SELECT "year" FROM "winners" WHERE "champion"='Ji Min Jeong';
```
## Task
Generate a SQL query to answer the following question:
`How much are all winners share ($) in the year 2004?`

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

CREATE TABLE "winners" (
  "year" text,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "tournament_location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much are all winners share ($) in the year 2004?`:
```sql
                SELECT "winners_share" FROM "winners" WHERE "year"='2004';
```
## Task
Generate a SQL query to answer the following question:
`When are all dates in the year 2006?`

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

CREATE TABLE "winners" (
  "year" text,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "tournament_location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `When are all dates in the year 2006?`:
```sql
                SELECT COUNT("dates") FROM "winners" WHERE "year"='2006';
```
## Task
Generate a SQL query to answer the following question:
`When are all dates with a score of 205 (–8)  in Australia?`

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

CREATE TABLE "winners" (
  "year" text,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "tournament_location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `When are all dates with a score of 205 (–8)  in Australia?`:
```sql
                SELECT "dates" FROM "winners" WHERE "score"='205 (–8)' AND "country"='Australia';
```
## Task
Generate a SQL query to answer the following question:
`What are all of the dates in the country of Canada?`

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

CREATE TABLE "winners" (
  "year" text,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "tournament_location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are all of the dates in the country of Canada?`:
```sql
                SELECT "dates" FROM "winners" WHERE "country"='Canada';
```
## Task
Generate a SQL query to answer the following question:
`When was Jenny Gleason the champion of the Northeast Delta Dental International?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "tournament_location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was Jenny Gleason the champion of the Northeast Delta Dental International?`:
```sql
                SELECT "dates" FROM "winners" WHERE "champion"='Jenny Gleason';
```
## Task
Generate a SQL query to answer the following question:
`Where was the tournament located when Misun Cho won the championship?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "tournament_location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the tournament located when Misun Cho won the championship?`:
```sql
                SELECT "tournament_location" FROM "winners" WHERE "champion"='Misun Cho';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum purse prize of the Northeast Delta Dental International Championship?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "tournament_location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum purse prize of the Northeast Delta Dental International Championship?`:
```sql
                SELECT MAX("purse") FROM "winners";
```
## Task
Generate a SQL query to answer the following question:
`How many prizes were available when Jenny Shin became the champion?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "tournament_location" text,
  "purse" real,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many prizes were available when Jenny Shin became the champion?`:
```sql
                SELECT COUNT("purse") FROM "winners" WHERE "champion"='Jenny Shin';
```
## Task
Generate a SQL query to answer the following question:
`Which team had 21 points?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had 21 points?`:
```sql
                SELECT "team" FROM "campeonato_paulista" WHERE "points"=21;
```
## Task
Generate a SQL query to answer the following question:
`How many games did the team with 29 for win?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did the team with 29 for win?`:
```sql
                SELECT COUNT("won") FROM "campeonato_paulista" WHERE "for"=29;
```
## Task
Generate a SQL query to answer the following question:
`How many games did Palmeiras win?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did Palmeiras win?`:
```sql
                SELECT MAX("won") FROM "campeonato_paulista" WHERE "team"='Palmeiras';
```
## Task
Generate a SQL query to answer the following question:
`Name the drawn when for is 41`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the drawn when for is 41`:
```sql
                SELECT "drawn" FROM "campeonato_paulista" WHERE "for"=41;
```
## Task
Generate a SQL query to answer the following question:
`Name the number of lost for against being 46`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of lost for against being 46`:
```sql
                SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "against"=46;
```
## Task
Generate a SQL query to answer the following question:
`Name the number of against for portuguesa santista`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of against for portuguesa santista`:
```sql
                SELECT COUNT("against") FROM "campeonato_paulista" WHERE "team"='Portuguesa Santista';
```
## Task
Generate a SQL query to answer the following question:
`Name the won for difference being 33`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the won for difference being 33`:
```sql
                SELECT "won" FROM "campeonato_paulista" WHERE "difference"='33';
```
## Task
Generate a SQL query to answer the following question:
`Name the most losst for corinthians`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most losst for corinthians`:
```sql
                SELECT MIN("lost") FROM "campeonato_paulista" WHERE "team"='Corinthians';
```
## Task
Generate a SQL query to answer the following question:
`How many values of r z (arcsecond) correspond with a r y (arcsecond) value of −0.247?`

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

CREATE TABLE "standard_parameters" (
  "region" text,
  "start_datum" text,
  "target_datum" text,
  "c_x_metre" text,
  "c_y_metre" text,
  "c_z_metre" text,
  "s_ppm" text,
  "r_x_arcsecond" text,
  "r_y_arcsecond" text,
  "r_z_arcsecond" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values of r z (arcsecond) correspond with a r y (arcsecond) value of −0.247?`:
```sql
                SELECT "r_z_arcsecond" FROM "standard_parameters" WHERE "r_y_arcsecond"='−0.247';
```
## Task
Generate a SQL query to answer the following question:
`How many values of r z(arcsecond) are associated with a target datum of Ireland 1965?`

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

CREATE TABLE "standard_parameters" (
  "region" text,
  "start_datum" text,
  "target_datum" text,
  "c_x_metre" text,
  "c_y_metre" text,
  "c_z_metre" text,
  "s_ppm" text,
  "r_x_arcsecond" text,
  "r_y_arcsecond" text,
  "r_z_arcsecond" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values of r z(arcsecond) are associated with a target datum of Ireland 1965?`:
```sql
                SELECT "r_z_arcsecond" FROM "standard_parameters" WHERE "target_datum"='Ireland 1965';
```
## Task
Generate a SQL query to answer the following question:
`What is the muslim percentage of the 49634 population of england and wales 000?`

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

CREATE TABLE "demography_and_ethnic_background" (
  "census_year" real,
  "number_of_muslims_000" real,
  "population_of_england_and_wales_000" real,
  "muslim_pct_of_total_population" text,
  "registered_mosques" real,
  "muslims_per_mosque" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the muslim percentage of the 49634 population of england and wales 000?`:
```sql
                SELECT "muslim_pct_of_total_population" FROM "demography_and_ethnic_background" WHERE "population_of_england_and_wales_000"=49634;
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent census year?`

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

CREATE TABLE "demography_and_ethnic_background" (
  "census_year" real,
  "number_of_muslims_000" real,
  "population_of_england_and_wales_000" real,
  "muslim_pct_of_total_population" text,
  "registered_mosques" real,
  "muslims_per_mosque" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent census year?`:
```sql
                SELECT MAX("census_year") FROM "demography_and_ethnic_background";
```
## Task
Generate a SQL query to answer the following question:
`What was the percentage of muslims during a time where there were 614 registered mosques?`

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

CREATE TABLE "demography_and_ethnic_background" (
  "census_year" real,
  "number_of_muslims_000" real,
  "population_of_england_and_wales_000" real,
  "muslim_pct_of_total_population" text,
  "registered_mosques" real,
  "muslims_per_mosque" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the percentage of muslims during a time where there were 614 registered mosques?`:
```sql
                SELECT "muslim_pct_of_total_population" FROM "demography_and_ethnic_background" WHERE "registered_mosques"=614;
```
## Task
Generate a SQL query to answer the following question:
`Name the most pa for ontario `

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

CREATE TABLE "standings" (
  "locale" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most pa for ontario `:
```sql
                SELECT MAX("pa") FROM "standings" WHERE "locale"='Ontario';
```
## Task
Generate a SQL query to answer the following question:
`Name the ends lost for 67 pa`

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

CREATE TABLE "standings" (
  "locale" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ends lost for 67 pa`:
```sql
                SELECT "ends_lost" FROM "standings" WHERE "pa"=67;
```
## Task
Generate a SQL query to answer the following question:
`Name the most w when ends lost is 49`

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

CREATE TABLE "standings" (
  "locale" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most w when ends lost is 49`:
```sql
                SELECT MAX("w") FROM "standings" WHERE "ends_lost"=49;
```
## Task
Generate a SQL query to answer the following question:
`Name the number ends won when L is 4 and stolen ends is 17`

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

CREATE TABLE "standings" (
  "locale" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number ends won when L is 4 and stolen ends is 17`:
```sql
                SELECT COUNT("ends_won") FROM "standings" WHERE "l"=4 AND "stolen_ends"=17;
```
## Task
Generate a SQL query to answer the following question:
`What day was Jeld-Wen Tradition held?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was Jeld-Wen Tradition held?`:
```sql
                SELECT "date" FROM "tournament_results" WHERE "tournament"='JELD-WEN Tradition';
```
## Task
Generate a SQL query to answer the following question:
`What day did Bernhard Langer (2) win?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day did Bernhard Langer (2) win?`:
```sql
                SELECT "date" FROM "tournament_results" WHERE "winner"='Bernhard Langer (2)';
```
## Task
Generate a SQL query to answer the following question:
`On what day was the tournament in Alabama?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what day was the tournament in Alabama?`:
```sql
                SELECT "date" FROM "tournament_results" WHERE "location"='Alabama';
```
## Task
Generate a SQL query to answer the following question:
`What was the value of 1st prize when the score was 271 (-9)?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the value of 1st prize when the score was 271 (-9)?`:
```sql
                SELECT "1st_prize" FROM "tournament_results" WHERE "score"='271 (-9)';
```
## Task
Generate a SQL query to answer the following question:
`What day was the score 200 (-16)?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was the score 200 (-16)?`:
```sql
                SELECT "date" FROM "tournament_results" WHERE "score"='200 (-16)';
```
## Task
Generate a SQL query to answer the following question:
`Where was Outback Steakhouse Pro-AM held?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was Outback Steakhouse Pro-AM held?`:
```sql
                SELECT "location" FROM "tournament_results" WHERE "tournament"='Outback Steakhouse Pro-Am';
```
## Task
Generate a SQL query to answer the following question:
`Which dates of polls occur in the Mizoram state?`

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

CREATE TABLE "chhattisgarh_result" (
  "state" text,
  "date_of_polls" text,
  "seats_a_cs" real,
  "date_of_counting" text,
  "incumbent" text,
  "election_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which dates of polls occur in the Mizoram state?`:
```sql
                SELECT "date_of_polls" FROM "chhattisgarh_result" WHERE "state"='Mizoram';
```
## Task
Generate a SQL query to answer the following question:
`How many dates of polls occur in the Madhya Pradesh state?`

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

CREATE TABLE "chhattisgarh_result" (
  "state" text,
  "date_of_polls" text,
  "seats_a_cs" real,
  "date_of_counting" text,
  "incumbent" text,
  "election_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates of polls occur in the Madhya Pradesh state?`:
```sql
                SELECT COUNT("date_of_polls") FROM "chhattisgarh_result" WHERE "state"='Madhya Pradesh';
```
## Task
Generate a SQL query to answer the following question:
`How many under the category of Against have a Difference of 11`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many under the category of Against have a Difference of 11`:
```sql
                SELECT COUNT("against") FROM "campeonato_paulista" WHERE "difference"=11;
```
## Task
Generate a SQL query to answer the following question:
`if Against is 20 how much is Won?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `if Against is 20 how much is Won?`:
```sql
                SELECT "won" FROM "campeonato_paulista" WHERE "against"=20;
```
## Task
Generate a SQL query to answer the following question:
`How many Drawn does the team Portuguesa Santista have?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Drawn does the team Portuguesa Santista have?`:
```sql
                SELECT "drawn" FROM "campeonato_paulista" WHERE "team"='Portuguesa Santista';
```
## Task
Generate a SQL query to answer the following question:
`If the difference is 11 how much is for?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the difference is 11 how much is for?`:
```sql
                SELECT MAX("for") FROM "campeonato_paulista" WHERE "difference"=11;
```
## Task
Generate a SQL query to answer the following question:
`How many drawn does the team Corinthians have?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many drawn does the team Corinthians have?`:
```sql
                SELECT "drawn" FROM "campeonato_paulista" WHERE "team"='Corinthians';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number won with a difference of 1?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number won with a difference of 1?`:
```sql
                SELECT MAX("won") FROM "campeonato_paulista" WHERE "difference"='1';
```
## Task
Generate a SQL query to answer the following question:
`What the highest position when there is 28 against?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What the highest position when there is 28 against?`:
```sql
                SELECT MAX("position") FROM "campeonato_paulista" WHERE "against"=28;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number won when the number of points is 31?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number won when the number of points is 31?`:
```sql
                SELECT MAX("won") FROM "campeonato_paulista" WHERE "points"=31;
```
## Task
Generate a SQL query to answer the following question:
`What is the smalledt position when the difference was 6?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smalledt position when the difference was 6?`:
```sql
                SELECT MIN("position") FROM "campeonato_paulista" WHERE "difference"='6';
```
## Task
Generate a SQL query to answer the following question:
`How many were the show's average weekly ranking when it reached No. 2 in average nightly ranking?`

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

CREATE TABLE "series_ratings" (
  "season" real,
  "num_of_episodes" real,
  "timeslot" text,
  "season_premiere" text,
  "season_final" text,
  "peak_audience" real,
  "average_audience" real,
  "average_nightly_rank" text,
  "average_weekly_rank" text,
  "average_yearly_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were the show's average weekly ranking when it reached No. 2 in average nightly ranking?`:
```sql
                SELECT COUNT("average_weekly_rank") FROM "series_ratings" WHERE "average_nightly_rank"='No. 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the show's time slot during season 3?`

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

CREATE TABLE "series_ratings" (
  "season" real,
  "num_of_episodes" real,
  "timeslot" text,
  "season_premiere" text,
  "season_final" text,
  "peak_audience" real,
  "average_audience" real,
  "average_nightly_rank" text,
  "average_weekly_rank" text,
  "average_yearly_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the show's time slot during season 3?`:
```sql
                SELECT "timeslot" FROM "series_ratings" WHERE "season"=3;
```
## Task
Generate a SQL query to answer the following question:
`What are all the round 3's after 1982?`

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

CREATE TABLE "scoring_format" (
  "from" real,
  "to" real,
  "goal" real,
  "round_1" text,
  "round_2" text,
  "round_3" text,
  "round_4" text,
  "round_5" text,
  "round_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the round 3's after 1982?`:
```sql
                SELECT "round_3" FROM "scoring_format" WHERE "from"=1982;
```
## Task
Generate a SQL query to answer the following question:
`What are all the round 5's where round 6 and up is double?`

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

CREATE TABLE "scoring_format" (
  "from" real,
  "to" real,
  "goal" real,
  "round_1" text,
  "round_2" text,
  "round_3" text,
  "round_4" text,
  "round_5" text,
  "round_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the round 5's where round 6 and up is double?`:
```sql
                SELECT "round_5" FROM "scoring_format" WHERE "round_6"='Double';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum goal after 1979?`

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

CREATE TABLE "scoring_format" (
  "from" real,
  "to" real,
  "goal" real,
  "round_1" text,
  "round_2" text,
  "round_3" text,
  "round_4" text,
  "round_5" text,
  "round_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum goal after 1979?`:
```sql
                SELECT MAX("goal") FROM "scoring_format" WHERE "from"=1979;
```
## Task
Generate a SQL query to answer the following question:
`Name all of the february`

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

CREATE TABLE "2000s" (
  "2000" text,
  "january" text,
  "february" text,
  "march" text,
  "april" text,
  "may" text,
  "june" text,
  "july" text,
  "august" text,
  "september" text,
  "october" text,
  "november" text,
  "december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name all of the february`:
```sql
                SELECT "february" FROM "2000s";
```
## Task
Generate a SQL query to answer the following question:
`Name the junes`

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

CREATE TABLE "2000s" (
  "2000" text,
  "january" text,
  "february" text,
  "march" text,
  "april" text,
  "may" text,
  "june" text,
  "july" text,
  "august" text,
  "september" text,
  "october" text,
  "november" text,
  "december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the junes`:
```sql
                SELECT "june" FROM "2000s";
```
## Task
Generate a SQL query to answer the following question:
`Name the julys`

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

CREATE TABLE "2000s" (
  "2000" text,
  "january" text,
  "february" text,
  "march" text,
  "april" text,
  "may" text,
  "june" text,
  "july" text,
  "august" text,
  "september" text,
  "october" text,
  "november" text,
  "december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the julys`:
```sql
                SELECT "july" FROM "2000s";
```
## Task
Generate a SQL query to answer the following question:
`Name the number of februaries`

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

CREATE TABLE "2000s" (
  "2000" text,
  "january" text,
  "february" text,
  "march" text,
  "april" text,
  "may" text,
  "june" text,
  "july" text,
  "august" text,
  "september" text,
  "october" text,
  "november" text,
  "december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of februaries`:
```sql
                SELECT COUNT("february") FROM "2000s";
```
## Task
Generate a SQL query to answer the following question:
`Name the february`

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

CREATE TABLE "2000s" (
  "2000" text,
  "january" text,
  "february" text,
  "march" text,
  "april" text,
  "may" text,
  "june" text,
  "july" text,
  "august" text,
  "september" text,
  "october" text,
  "november" text,
  "december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the february`:
```sql
                SELECT "february" FROM "2000s";
```
## Task
Generate a SQL query to answer the following question:
`How many points are listed when the position is 2?`

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

CREATE TABLE "apea_s_campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "for" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points are listed when the position is 2?`:
```sql
                SELECT MAX("points") FROM "apea_s_campeonato_paulista" WHERE "position"=2;
```