cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the Height that has a year born before 1977`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "player" text,
  "height" real,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height that has a year born before 1977`:
```sql
                SELECT COUNT("height") FROM "fiba_euro_basket_2007_squads" WHERE "year_born"<1977;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Total Region that has a Year after 2001, and a Broadsound greater than 6,843?`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "belyando" real,
  "broadsound" real,
  "nebo" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Total Region that has a Year after 2001, and a Broadsound greater than 6,843?`:
```sql
                SELECT MIN("total_region") FROM "population" WHERE "year">2001 AND "broadsound">'6,843';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Total Region that has a Broadsound greater than 1,590, a Year after 1966, a Belyando greater than 11,362, and a Nebo of 914?`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "belyando" real,
  "broadsound" real,
  "nebo" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Total Region that has a Broadsound greater than 1,590, a Year after 1966, a Belyando greater than 11,362, and a Nebo of 914?`:
```sql
                SELECT MAX("total_region") FROM "population" WHERE "broadsound">'1,590' AND "year">1966 AND "belyando">'11,362' AND "nebo"=914;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Total Regions that have the Year 1954, and a Nebo greater than 447?`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "belyando" real,
  "broadsound" real,
  "nebo" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Total Regions that have the Year 1954, and a Nebo greater than 447?`:
```sql
                SELECT SUM("total_region") FROM "population" WHERE "year"=1954 AND "nebo">447;
```
## Task
Generate a SQL query to answer the following question:
`Before the Year 1947, what is the sum of Broadsound that have a Belyando greater than 11,362, and a Total Region equal to 5,016?`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "belyando" real,
  "broadsound" real,
  "nebo" real
);
### SQL
Given the database schema, here is the SQL query that answers `Before the Year 1947, what is the sum of Broadsound that have a Belyando greater than 11,362, and a Total Region equal to 5,016?`:
```sql
                SELECT SUM("broadsound") FROM "population" WHERE "belyando">'11,362' AND "total_region"='5,016' AND "year"<1947;
```
## Task
Generate a SQL query to answer the following question:
`After 2001, what is the sum of Belyando that have a Nebo greater than 2,522?`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "belyando" real,
  "broadsound" real,
  "nebo" real
);
### SQL
Given the database schema, here is the SQL query that answers `After 2001, what is the sum of Belyando that have a Nebo greater than 2,522?`:
```sql
                SELECT SUM("belyando") FROM "population" WHERE "nebo">'2,522' AND "year">2001;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of Bronze for the Nation of Uganda with less than 2 Gold and Total medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of Bronze for the Nation of Uganda with less than 2 Gold and Total medals?`:
```sql
                SELECT COUNT("bronze") FROM "medal_table" WHERE "gold"<2 AND "nation"='uganda' AND "total">2;
```
## Task
Generate a SQL query to answer the following question:
`With less than 7 Silver medals, how many Gold medals did Canada receive?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `With less than 7 Silver medals, how many Gold medals did Canada receive?`:
```sql
                SELECT MAX("gold") FROM "medal_table" WHERE "nation"='canada' AND "silver"<7;
```
## Task
Generate a SQL query to answer the following question:
`What is the outcome of a score that is 6–1, 6–4?`

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

CREATE TABLE "singles_2_3" (
  "outcome" text,
  "date" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the outcome of a score that is 6–1, 6–4?`:
```sql
                SELECT "outcome" FROM "singles_2_3" WHERE "score"='6–1, 6–4';
```
## Task
Generate a SQL query to answer the following question:
`What is the surface of the score, 7–6 (7–3) , 6–3?`

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

CREATE TABLE "singles_2_3" (
  "outcome" text,
  "date" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the surface of the score, 7–6 (7–3) , 6–3?`:
```sql
                SELECT "surface" FROM "singles_2_3" WHERE "score"='7–6 (7–3) , 6–3';
```
## Task
Generate a SQL query to answer the following question:
`What venue did he play in before 2008 and finished 14th (q)?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue did he play in before 2008 and finished 14th (q)?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "year"<2008 AND "position"='14th (q)';
```
## Task
Generate a SQL query to answer the following question:
`What competition did he compete in before 2007 in gothenburg, sweden?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What competition did he compete in before 2007 in gothenburg, sweden?`:
```sql
                SELECT "competition" FROM "achievements" WHERE "year"<2007 AND "venue"='gothenburg, sweden';
```
## Task
Generate a SQL query to answer the following question:
`What venue did he finish 7th?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue did he finish 7th?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "position"='7th';
```
## Task
Generate a SQL query to answer the following question:
`Name the most performances for geoffrey fitton`

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

CREATE TABLE "theatre" (
  "opening_date" text,
  "closing_date" text,
  "performances" real,
  "role" text,
  "theatre" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most performances for geoffrey fitton`:
```sql
                SELECT MAX("performances") FROM "theatre" WHERE "role"='geoffrey fitton';
```
## Task
Generate a SQL query to answer the following question:
`Name the role for Feb 4, 1961 closing date`

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

CREATE TABLE "theatre" (
  "opening_date" text,
  "closing_date" text,
  "performances" real,
  "role" text,
  "theatre" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the role for Feb 4, 1961 closing date`:
```sql
                SELECT "role" FROM "theatre" WHERE "closing_date"='feb 4, 1961';
```
## Task
Generate a SQL query to answer the following question:
`Name the theatre for aaron jablonski schuyler grogan with performances more than 49`

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

CREATE TABLE "theatre" (
  "opening_date" text,
  "closing_date" text,
  "performances" real,
  "role" text,
  "theatre" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the theatre for aaron jablonski schuyler grogan with performances more than 49`:
```sql
                SELECT "theatre" FROM "theatre" WHERE "performances">49 AND "role"='aaron jablonski schuyler grogan';
```
## Task
Generate a SQL query to answer the following question:
`What are the titles for episodes prior to episode 4?`

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

CREATE TABLE "list_of_gossip_girl_episodes" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the titles for episodes prior to episode 4?`:
```sql
                SELECT "title" FROM "list_of_gossip_girl_episodes" WHERE "no_in_series"<4;
```
## Task
Generate a SQL query to answer the following question:
`What the air dates for the episodes are episode 3 in the series?`

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

CREATE TABLE "list_of_gossip_girl_episodes" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What the air dates for the episodes are episode 3 in the series?`:
```sql
                SELECT "original_air_date" FROM "list_of_gossip_girl_episodes" WHERE "no_in_series">3;
```
## Task
Generate a SQL query to answer the following question:
`How many laps resulted from a Qual of 165.229?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps resulted from a Qual of 165.229?`:
```sql
                SELECT MAX("laps") FROM "indy_500_results" WHERE "qual"='165.229';
```
## Task
Generate a SQL query to answer the following question:
`Whent he start was 15, what was the Qual?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Whent he start was 15, what was the Qual?`:
```sql
                SELECT "qual" FROM "indy_500_results" WHERE "start"='15';
```
## Task
Generate a SQL query to answer the following question:
`What was the start result with a Rank of 7 and more than 100 laps?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the start result with a Rank of 7 and more than 100 laps?`:
```sql
                SELECT "start" FROM "indy_500_results" WHERE "rank"='7' AND "laps">100;
```
## Task
Generate a SQL query to answer the following question:
`Who was the shirt sponsor for the Blackburn Rovers?`

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

CREATE TABLE "personnel_and_kits" (
  "team" text,
  "manager_1" text,
  "captain" text,
  "kit_manufacturer" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the shirt sponsor for the Blackburn Rovers?`:
```sql
                SELECT "shirt_sponsor" FROM "personnel_and_kits" WHERE "team"='blackburn rovers';
```
## Task
Generate a SQL query to answer the following question:
`Who was the team captain of the Bolton Wanderers?`

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

CREATE TABLE "personnel_and_kits" (
  "team" text,
  "manager_1" text,
  "captain" text,
  "kit_manufacturer" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the team captain of the Bolton Wanderers?`:
```sql
                SELECT "captain" FROM "personnel_and_kits" WHERE "team"='bolton wanderers';
```
## Task
Generate a SQL query to answer the following question:
`For which team did Adidas manufacture kits and TDK sponsor shirts?`

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

CREATE TABLE "personnel_and_kits" (
  "team" text,
  "manager_1" text,
  "captain" text,
  "kit_manufacturer" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `For which team did Adidas manufacture kits and TDK sponsor shirts?`:
```sql
                SELECT "team" FROM "personnel_and_kits" WHERE "kit_manufacturer"='adidas' AND "shirt_sponsor"='tdk';
```
## Task
Generate a SQL query to answer the following question:
`On which team was Robbie Earle the captain?`

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

CREATE TABLE "personnel_and_kits" (
  "team" text,
  "manager_1" text,
  "captain" text,
  "kit_manufacturer" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which team was Robbie Earle the captain?`:
```sql
                SELECT "team" FROM "personnel_and_kits" WHERE "captain"='robbie earle';
```
## Task
Generate a SQL query to answer the following question:
`Who was the manager for the team with captain Neil Redfearn?`

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

CREATE TABLE "personnel_and_kits" (
  "team" text,
  "manager_1" text,
  "captain" text,
  "kit_manufacturer" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the manager for the team with captain Neil Redfearn?`:
```sql
                SELECT "manager_1" FROM "personnel_and_kits" WHERE "captain"='neil redfearn';
```
## Task
Generate a SQL query to answer the following question:
`Who was the team captain for Crystal Palace?`

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

CREATE TABLE "personnel_and_kits" (
  "team" text,
  "manager_1" text,
  "captain" text,
  "kit_manufacturer" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the team captain for Crystal Palace?`:
```sql
                SELECT "captain" FROM "personnel_and_kits" WHERE "team"='crystal palace';
```
## Task
Generate a SQL query to answer the following question:
`drop goals larger than 0, and a Penalties of 52, and a Number larger than 5 had what lowest score?`

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

CREATE TABLE "top_five_scoring_international_players_t" (
  "number" real,
  "player" text,
  "years_active" text,
  "caps" real,
  "tries" real,
  "conversions" real,
  "penalties" real,
  "drop_goals" real,
  "average_score" real,
  "score" real
);
### SQL
Given the database schema, here is the SQL query that answers `drop goals larger than 0, and a Penalties of 52, and a Number larger than 5 had what lowest score?`:
```sql
                SELECT MIN("score") FROM "top_five_scoring_international_players_t" WHERE "drop_goals">0 AND "penalties"=52 AND "number">5;
```
## Task
Generate a SQL query to answer the following question:
`Player of jaco coetzee, and a Tries larger than 6 had what total number of score?`

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

CREATE TABLE "top_five_scoring_international_players_t" (
  "number" real,
  "player" text,
  "years_active" text,
  "caps" real,
  "tries" real,
  "conversions" real,
  "penalties" real,
  "drop_goals" real,
  "average_score" real,
  "score" real
);
### SQL
Given the database schema, here is the SQL query that answers `Player of jaco coetzee, and a Tries larger than 6 had what total number of score?`:
```sql
                SELECT COUNT("score") FROM "top_five_scoring_international_players_t" WHERE "player"='jaco coetzee' AND "tries">6;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest round that has a draftee from Washington State University?`

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

CREATE TABLE "june_secondary_phase" (
  "round" real,
  "name" text,
  "position" text,
  "school" text,
  "signed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round that has a draftee from Washington State University?`:
```sql
                SELECT MAX("round") FROM "june_secondary_phase" WHERE "school"='washington state university';
```
## Task
Generate a SQL query to answer the following question:
`What round was Bob Randall selected in?`

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

CREATE TABLE "june_secondary_phase" (
  "round" real,
  "name" text,
  "position" text,
  "school" text,
  "signed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was Bob Randall selected in?`:
```sql
                SELECT MAX("round") FROM "june_secondary_phase" WHERE "name"='bob randall';
```
## Task
Generate a SQL query to answer the following question:
`Name the Ont of N.B. of 10 and normal total of 77`

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

CREATE TABLE "change_in_number_of_senators_over_time" (
  "date_enacted" text,
  "normal_total" text,
  "26_total" text,
  "ont" text,
  "que" text,
  "n_s" text,
  "n_b" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Ont of N.B. of 10 and normal total of 77`:
```sql
                SELECT "ont" FROM "change_in_number_of_senators_over_time" WHERE "n_b"='10' AND "normal_total"='77';
```
## Task
Generate a SQL query to answer the following question:
`Name the date enacted for N.S. of 10 and normal total of 104`

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

CREATE TABLE "change_in_number_of_senators_over_time" (
  "date_enacted" text,
  "normal_total" text,
  "26_total" text,
  "ont" text,
  "que" text,
  "n_s" text,
  "n_b" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date enacted for N.S. of 10 and normal total of 104`:
```sql
                SELECT "date_enacted" FROM "change_in_number_of_senators_over_time" WHERE "n_s"='10' AND "normal_total"='104';
```
## Task
Generate a SQL query to answer the following question:
`Name the NS with normal total of 102`

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

CREATE TABLE "change_in_number_of_senators_over_time" (
  "date_enacted" text,
  "normal_total" text,
  "26_total" text,
  "ont" text,
  "que" text,
  "n_s" text,
  "n_b" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the NS with normal total of 102`:
```sql
                SELECT "n_s" FROM "change_in_number_of_senators_over_time" WHERE "normal_total"='102';
```
## Task
Generate a SQL query to answer the following question:
`Name the normal with que of 24`

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

CREATE TABLE "change_in_number_of_senators_over_time" (
  "date_enacted" text,
  "normal_total" text,
  "26_total" text,
  "ont" text,
  "que" text,
  "n_s" text,
  "n_b" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the normal with que of 24`:
```sql
                SELECT "normal_total" FROM "change_in_number_of_senators_over_time" WHERE "que"='24';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of all the points won by Peter Whitehead in an alta f2 Chassis?`

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

CREATE TABLE "complete_world_championship_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of all the points won by Peter Whitehead in an alta f2 Chassis?`:
```sql
                SELECT SUM("points") FROM "complete_world_championship_results" WHERE "entrant"='peter whitehead' AND "chassis"='alta f2';
```
## Task
Generate a SQL query to answer the following question:
`How many points does g a vandervell have?`

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

CREATE TABLE "complete_world_championship_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points does g a vandervell have?`:
```sql
                SELECT "points" FROM "complete_world_championship_results" WHERE "entrant"='g a vandervell';
```
## Task
Generate a SQL query to answer the following question:
`How many total points were earned with ferrari 125 Chassis after 1952?`

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

CREATE TABLE "complete_world_championship_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total points were earned with ferrari 125 Chassis after 1952?`:
```sql
                SELECT SUM("points") FROM "complete_world_championship_results" WHERE "chassis"='ferrari 125' AND "year">1952;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Points that Peter Whitehead earned in a Ferrari 125?`

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

CREATE TABLE "complete_world_championship_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Points that Peter Whitehead earned in a Ferrari 125?`:
```sql
                SELECT SUM("points") FROM "complete_world_championship_results" WHERE "entrant"='peter whitehead' AND "chassis"='ferrari 125';
```
## Task
Generate a SQL query to answer the following question:
`Name the D 44 when it has a D 40√ of r 16`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43_o" text,
  "d_42_o" text,
  "d_41" text,
  "d_40" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 44 when it has a D 40√ of r 16`:
```sql
                SELECT "d_44" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_40"='r 16';
```
## Task
Generate a SQL query to answer the following question:
`Name the D 41 √ for having D 43 of r 13`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43_o" text,
  "d_42_o" text,
  "d_41" text,
  "d_40" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 41 √ for having D 43 of r 13`:
```sql
                SELECT "d_41" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_43_o"='r 13';
```
## Task
Generate a SQL query to answer the following question:
`Name the D 45+ which has D 42 of r 14`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43_o" text,
  "d_42_o" text,
  "d_41" text,
  "d_40" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 45+ which has D 42 of r 14`:
```sql
                SELECT "d_45" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_42_o"='r 14';
```
## Task
Generate a SQL query to answer the following question:
`Name the D 44 which has D 42 O of d 33`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43_o" text,
  "d_42_o" text,
  "d_41" text,
  "d_40" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 44 which has D 42 O of d 33`:
```sql
                SELECT "d_44" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_42_o"='d 33';
```
## Task
Generate a SQL query to answer the following question:
`Name the D 46 which has D 44 of r 25`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43_o" text,
  "d_42_o" text,
  "d_41" text,
  "d_40" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 46 which has D 44 of r 25`:
```sql
                SELECT "d_46" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_44"='r 25';
```
## Task
Generate a SQL query to answer the following question:
`What was the rank of a transfer fee larger than 13 million, and after 2008?`

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

CREATE TABLE "incoming_transfers" (
  "rank" real,
  "player" text,
  "from" text,
  "transfer_fee_million" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank of a transfer fee larger than 13 million, and after 2008?`:
```sql
                SELECT COUNT("rank") FROM "incoming_transfers" WHERE "transfer_fee_million">13 AND "year">2008;
```
## Task
Generate a SQL query to answer the following question:
`What president was elected in 2010?`

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

CREATE TABLE "ukraine_1991_present" (
  "president" text,
  "elected" real,
  "took_office" text,
  "left_office" text,
  "party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What president was elected in 2010?`:
```sql
                SELECT "president" FROM "ukraine_1991_present" WHERE "elected"=2010;
```
## Task
Generate a SQL query to answer the following question:
`When seats for 2001 is greater than 15 and % 2001 is greater than 100, what is the % 2006?`

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

CREATE TABLE "community_council" (
  "parties_and_voter_communities" text,
  "pct_2006" real,
  "seats_2006" real,
  "pct_2001" real,
  "seats_2001" real
);
### SQL
Given the database schema, here is the SQL query that answers `When seats for 2001 is greater than 15 and % 2001 is greater than 100, what is the % 2006?`:
```sql
                SELECT AVG("pct_2006") FROM "community_council" WHERE "seats_2001">15 AND "pct_2001">100;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of % for 2001 if 2001 seats equals 7?`

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

CREATE TABLE "community_council" (
  "parties_and_voter_communities" text,
  "pct_2006" real,
  "seats_2006" real,
  "pct_2001" real,
  "seats_2001" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of % for 2001 if 2001 seats equals 7?`:
```sql
                SELECT COUNT("pct_2001") FROM "community_council" WHERE "seats_2001"=7;
```
## Task
Generate a SQL query to answer the following question:
`If 2006 is 13% and 2001 is greater than 12.1%, what is the greatest number of seats for 2001?`

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

CREATE TABLE "community_council" (
  "parties_and_voter_communities" text,
  "pct_2006" real,
  "seats_2006" real,
  "pct_2001" real,
  "seats_2001" real
);
### SQL
Given the database schema, here is the SQL query that answers `If 2006 is 13% and 2001 is greater than 12.1%, what is the greatest number of seats for 2001?`:
```sql
                SELECT MAX("seats_2001") FROM "community_council" WHERE "pct_2006"=13 AND "pct_2001">12.1;
```
## Task
Generate a SQL query to answer the following question:
`What were the circumstances of the Hostile incident on the road to Jalalabad?`

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

CREATE TABLE "2007" (
  "date" text,
  "location" text,
  "nature_of_incident" text,
  "circumstances" text,
  "casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the circumstances of the Hostile incident on the road to Jalalabad?`:
```sql
                SELECT "circumstances" FROM "2007" WHERE "nature_of_incident"='hostile' AND "location"='road to jalalabad';
```
## Task
Generate a SQL query to answer the following question:
`What was the circumstance that happened on the road to Jalalabad?`

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

CREATE TABLE "2007" (
  "date" text,
  "location" text,
  "nature_of_incident" text,
  "circumstances" text,
  "casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the circumstance that happened on the road to Jalalabad?`:
```sql
                SELECT "circumstances" FROM "2007" WHERE "location"='road to jalalabad';
```
## Task
Generate a SQL query to answer the following question:
`What happened in Mazar-i-sharif?`

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

CREATE TABLE "2007" (
  "date" text,
  "location" text,
  "nature_of_incident" text,
  "circumstances" text,
  "casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `What happened in Mazar-i-sharif?`:
```sql
                SELECT "circumstances" FROM "2007" WHERE "location"='mazar-i-sharif';
```
## Task
Generate a SQL query to answer the following question:
`What is the Index number of Chen Bangjun Andie from Singapore?`

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

CREATE TABLE "contestant_information" (
  "index" text,
  "name" text,
  "chinese_name" text,
  "country" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Index number of Chen Bangjun Andie from Singapore?`:
```sql
                SELECT "index" FROM "contestant_information" WHERE "country"='singapore' AND "name"='chen bangjun andie';
```
## Task
Generate a SQL query to answer the following question:
`What is the Chinese name of the Eliminated player from Singapore in Index f9?`

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

CREATE TABLE "contestant_information" (
  "index" text,
  "name" text,
  "chinese_name" text,
  "country" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Chinese name of the Eliminated player from Singapore in Index f9?`:
```sql
                SELECT "chinese_name" FROM "contestant_information" WHERE "status"='eliminated' AND "country"='singapore' AND "index"='f9';
```
## Task
Generate a SQL query to answer the following question:
`What is the Index number for 叶惠慈?`

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

CREATE TABLE "contestant_information" (
  "index" text,
  "name" text,
  "chinese_name" text,
  "country" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Index number for 叶惠慈?`:
```sql
                SELECT "index" FROM "contestant_information" WHERE "chinese_name"='叶惠慈';
```
## Task
Generate a SQL query to answer the following question:
`What is the Chinese name of the player in Index F10?`

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

CREATE TABLE "contestant_information" (
  "index" text,
  "name" text,
  "chinese_name" text,
  "country" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Chinese name of the player in Index F10?`:
```sql
                SELECT "chinese_name" FROM "contestant_information" WHERE "index"='f10';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player from Malaysia, Kuala Lumpur in Index f8?`

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

CREATE TABLE "contestant_information" (
  "index" text,
  "name" text,
  "chinese_name" text,
  "country" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player from Malaysia, Kuala Lumpur in Index f8?`:
```sql
                SELECT "name" FROM "contestant_information" WHERE "country"='malaysia, kuala lumpur' AND "index"='f8';
```
## Task
Generate a SQL query to answer the following question:
`What is the English name of the player 李美玲 from Malaysia, Kuala Lumpur?`

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

CREATE TABLE "contestant_information" (
  "index" text,
  "name" text,
  "chinese_name" text,
  "country" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the English name of the player 李美玲 from Malaysia, Kuala Lumpur?`:
```sql
                SELECT "name" FROM "contestant_information" WHERE "country"='malaysia, kuala lumpur' AND "chinese_name"='李美玲';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent of the game on August 8?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent of the game on August 8?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='august 8';
```
## Task
Generate a SQL query to answer the following question:
`Who took the winning slot at the Vojens venue?`

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

CREATE TABLE "european_championship_1977_1987" (
  "year" text,
  "venue" text,
  "winners" text,
  "runner_up" text,
  "3rd_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who took the winning slot at the Vojens venue?`:
```sql
                SELECT "winners" FROM "european_championship_1977_1987" WHERE "venue"='vojens';
```
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up in 1980 at the Pocking venue?`

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

CREATE TABLE "european_championship_1977_1987" (
  "year" text,
  "venue" text,
  "winners" text,
  "runner_up" text,
  "3rd_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner-up in 1980 at the Pocking venue?`:
```sql
                SELECT "runner_up" FROM "european_championship_1977_1987" WHERE "venue"='pocking' AND "year"='1980';
```
## Task
Generate a SQL query to answer the following question:
`What rank did the United States swimmer come in who posted 11.26 seconds in the 100-meter youth female division?`

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

CREATE TABLE "youth_under_18_girls" (
  "rank" real,
  "fastest_time_s" text,
  "wind_m_s" text,
  "athlete" text,
  "nation" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank did the United States swimmer come in who posted 11.26 seconds in the 100-meter youth female division?`:
```sql
                SELECT COUNT("rank") FROM "youth_under_18_girls" WHERE "fastest_time_s"='11.26' AND "nation"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall with more than 17 rounds?`

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

CREATE TABLE "1976_raiders_draft_selections" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall with more than 17 rounds?`:
```sql
                SELECT MIN("overall") FROM "1976_raiders_draft_selections" WHERE "round">17;
```
## Task
Generate a SQL query to answer the following question:
`What position has 14 rounds?`

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

CREATE TABLE "1976_raiders_draft_selections" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position has 14 rounds?`:
```sql
                SELECT "position" FROM "1976_raiders_draft_selections" WHERE "round"=14;
```
## Task
Generate a SQL query to answer the following question:
`What United States player has a score of 69-73-68=210?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What United States player has a score of 69-73-68=210?`:
```sql
                SELECT "player" FROM "third_round" WHERE "score"='69-73-68=210' AND "country"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What Argentina country is in t10 place?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Argentina country is in t10 place?`:
```sql
                SELECT "score" FROM "third_round" WHERE "place"='t10' AND "country"='argentina';
```
## Task
Generate a SQL query to answer the following question:
`Which country has the score of 71-71-68=210?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has the score of 71-71-68=210?`:
```sql
                SELECT "country" FROM "third_round" WHERE "score"='71-71-68=210';
```
## Task
Generate a SQL query to answer the following question:
`What To par scored 72-71-68=211?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What To par scored 72-71-68=211?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "score"='72-71-68=211';
```
## Task
Generate a SQL query to answer the following question:
`Name the award won for category of choice tv villain in years after 2008`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the award won for category of choice tv villain in years after 2008`:
```sql
                SELECT "award" FROM "awards_and_nominations" WHERE "result"='won' AND "category"='choice tv villain' AND "year">2008;
```
## Task
Generate a SQL query to answer the following question:
`Name the award for nominated result and year after 2011`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the award for nominated result and year after 2011`:
```sql
                SELECT "award" FROM "awards_and_nominations" WHERE "result"='nominated' AND "year">2011;
```
## Task
Generate a SQL query to answer the following question:
`Which Perth also has Sydney yes, Gold Coast yes, and Adelaide no?`

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

CREATE TABLE "2013" (
  "sydney" text,
  "gold_coast" text,
  "adelaide" text,
  "melbourne" text,
  "perth" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Perth also has Sydney yes, Gold Coast yes, and Adelaide no?`:
```sql
                SELECT "perth" FROM "2013" WHERE "sydney"='yes' AND "gold_coast"='yes' AND "adelaide"='no';
```
## Task
Generate a SQL query to answer the following question:
`Which Perth has Gold Coast yes, Sydney yes, Melbourne yes, and Adelaide yes?`

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

CREATE TABLE "2013" (
  "sydney" text,
  "gold_coast" text,
  "adelaide" text,
  "melbourne" text,
  "perth" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Perth has Gold Coast yes, Sydney yes, Melbourne yes, and Adelaide yes?`:
```sql
                SELECT "perth" FROM "2013" WHERE "gold_coast"='yes' AND "sydney"='yes' AND "melbourne"='yes' AND "adelaide"='yes';
```
## Task
Generate a SQL query to answer the following question:
`Which Adelaide has Sydney yes, Melbourne yes, and Perth no?`

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

CREATE TABLE "2013" (
  "sydney" text,
  "gold_coast" text,
  "adelaide" text,
  "melbourne" text,
  "perth" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Adelaide has Sydney yes, Melbourne yes, and Perth no?`:
```sql
                SELECT "adelaide" FROM "2013" WHERE "sydney"='yes' AND "melbourne"='yes' AND "perth"='no';
```
## Task
Generate a SQL query to answer the following question:
`Which Adelaide has Perth no, Gold Coast no, and Sydney yes?`

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

CREATE TABLE "2013" (
  "sydney" text,
  "gold_coast" text,
  "adelaide" text,
  "melbourne" text,
  "perth" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Adelaide has Perth no, Gold Coast no, and Sydney yes?`:
```sql
                SELECT "adelaide" FROM "2013" WHERE "perth"='no' AND "gold_coast"='yes' AND "sydney"='yes';
```
## Task
Generate a SQL query to answer the following question:
`Which Melbourne has Gold Coast yes, Perth cancelled, and Adelaide cancelled?`

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

CREATE TABLE "2013" (
  "sydney" text,
  "gold_coast" text,
  "adelaide" text,
  "melbourne" text,
  "perth" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Melbourne has Gold Coast yes, Perth cancelled, and Adelaide cancelled?`:
```sql
                SELECT "melbourne" FROM "2013" WHERE "gold_coast"='yes' AND "perth"='cancelled' AND "adelaide"='cancelled';
```
## Task
Generate a SQL query to answer the following question:
`Which Melbourne has Sydney yes, Gold Coast yes, and Perth yes?`

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

CREATE TABLE "2013" (
  "sydney" text,
  "gold_coast" text,
  "adelaide" text,
  "melbourne" text,
  "perth" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Melbourne has Sydney yes, Gold Coast yes, and Perth yes?`:
```sql
                SELECT "melbourne" FROM "2013" WHERE "sydney"='yes' AND "gold_coast"='yes' AND "perth"='yes';
```
## Task
Generate a SQL query to answer the following question:
`Who came in 3rd when Matej žagar won?`

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

CREATE TABLE "previous_winners" (
  "year" text,
  "venue" text,
  "winners" text,
  "2nd_place" text,
  "3rd_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who came in 3rd when Matej žagar won?`:
```sql
                SELECT "3rd_place" FROM "previous_winners" WHERE "winners"='matej žagar';
```
## Task
Generate a SQL query to answer the following question:
`In what year did Rafał Kurmański come in 2nd place?`

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

CREATE TABLE "previous_winners" (
  "year" text,
  "venue" text,
  "winners" text,
  "2nd_place" text,
  "3rd_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year did Rafał Kurmański come in 2nd place?`:
```sql
                SELECT "year" FROM "previous_winners" WHERE "2nd_place"='rafał kurmański';
```
## Task
Generate a SQL query to answer the following question:
`Who won at Krško?`

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

CREATE TABLE "previous_winners" (
  "year" text,
  "venue" text,
  "winners" text,
  "2nd_place" text,
  "3rd_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won at Krško?`:
```sql
                SELECT "winners" FROM "previous_winners" WHERE "venue"='krško';
```