cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who won the race on wednesday, august 27?`

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

CREATE TABLE "schedule" (
  "stage" text,
  "route" text,
  "distance" text,
  "date" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the race on wednesday, august 27?`:
```sql
                SELECT "winner" FROM "schedule" WHERE "date"='wednesday, august 27';
```
## Task
Generate a SQL query to answer the following question:
`What is the distance of the maldegem > brussels route?`

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

CREATE TABLE "schedule" (
  "stage" text,
  "route" text,
  "distance" text,
  "date" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distance of the maldegem > brussels route?`:
```sql
                SELECT "distance" FROM "schedule" WHERE "route"='maldegem > brussels';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner of the mechelen > mechelen route?`

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

CREATE TABLE "schedule" (
  "stage" text,
  "route" text,
  "distance" text,
  "date" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner of the mechelen > mechelen route?`:
```sql
                SELECT "winner" FROM "schedule" WHERE "route"='mechelen > mechelen';
```
## Task
Generate a SQL query to answer the following question:
`What IMAP sharing options exist for software with a web UI?`

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

CREATE TABLE "comparison" (
  "name" text,
  "mail_transfer_agent" text,
  "mail_storage_type" text,
  "imap_server" text,
  "imap_shared" text,
  "calendar_format" text,
  "calendar_shared" text,
  "im_server" text,
  "web_dav" text,
  "web_ui" text,
  "contacts_shared" text,
  "files_shared" text,
  "web_admin_ui" text
);
### SQL
Given the database schema, here is the SQL query that answers `What IMAP sharing options exist for software with a web UI?`:
```sql
                SELECT "imap_shared" FROM "comparison" WHERE "web_ui"='web ui';
```
## Task
Generate a SQL query to answer the following question:
`What's the total for the wc belgrade event with 10 rank points?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total for the wc belgrade event with 10 rank points?`:
```sql
                SELECT "total" FROM "qualification" WHERE "event"='wc belgrade' AND "rank_points"='10';
```
## Task
Generate a SQL query to answer the following question:
`That's the total for rank points of olympic gold medalist?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `That's the total for rank points of olympic gold medalist?`:
```sql
                SELECT "total" FROM "qualification" WHERE "rank_points"='olympic gold medalist';
```
## Task
Generate a SQL query to answer the following question:
`Who's the shooter with score points of defending champion?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the shooter with score points of defending champion?`:
```sql
                SELECT "shooter" FROM "qualification" WHERE "score_points"='defending champion';
```
## Task
Generate a SQL query to answer the following question:
`Who's the shooter with a total of 25?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the shooter with a total of 25?`:
```sql
                SELECT "shooter" FROM "qualification" WHERE "total"='25';
```
## Task
Generate a SQL query to answer the following question:
`Who's the shooter with 13 score points and 10 rank points?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the shooter with 13 score points and 10 rank points?`:
```sql
                SELECT "shooter" FROM "qualification" WHERE "score_points"='13' AND "rank_points"='10';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest points when the top goal scorer was Khaled Msakni (10), and the final standing is less than 12?`

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

CREATE TABLE "championship_of_tunisia" (
  "season" real,
  "years" text,
  "final_standing" real,
  "points" real,
  "top_goal_scorer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest points when the top goal scorer was Khaled Msakni (10), and the final standing is less than 12?`:
```sql
                SELECT MAX("points") FROM "championship_of_tunisia" WHERE "top_goal_scorer"='khaled msakni (10)' AND "final_standing"<12;
```
## Task
Generate a SQL query to answer the following question:
`What is the final standing in 1981–82?`

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

CREATE TABLE "championship_of_tunisia" (
  "season" real,
  "years" text,
  "final_standing" real,
  "points" real,
  "top_goal_scorer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the final standing in 1981–82?`:
```sql
                SELECT "final_standing" FROM "championship_of_tunisia" WHERE "years"='1981–82';
```
## Task
Generate a SQL query to answer the following question:
`Which event had 4th place and took place in the year 2007?`

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

CREATE TABLE "quake_iv" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event had 4th place and took place in the year 2007?`:
```sql
                SELECT "event" FROM "quake_iv" WHERE "position"='4th' AND "year"=2007;
```
## Task
Generate a SQL query to answer the following question:
`What runner-up has 4 & 3 as the score, with michael bonallack as the winner?`

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

CREATE TABLE "winners" (
  "year" text,
  "venue" text,
  "winner" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What runner-up has 4 & 3 as the score, with michael bonallack as the winner?`:
```sql
                SELECT "runner_up" FROM "winners" WHERE "score"='4 & 3' AND "winner"='michael bonallack';
```
## Task
Generate a SQL query to answer the following question:
`What venue has 3 & 2 as the score, and 1965 as the year?`

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

CREATE TABLE "winners" (
  "year" text,
  "venue" text,
  "winner" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue has 3 & 2 as the score, and 1965 as the year?`:
```sql
                SELECT "venue" FROM "winners" WHERE "score"='3 & 2' AND "year"='1965';
```
## Task
Generate a SQL query to answer the following question:
`What runner-up has 2008 as the year?`

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

CREATE TABLE "winners" (
  "year" text,
  "venue" text,
  "winner" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What runner-up has 2008 as the year?`:
```sql
                SELECT "runner_up" FROM "winners" WHERE "year"='2008';
```
## Task
Generate a SQL query to answer the following question:
`What winner has royal st george's golf club as the venue, and 1969 as the year?`

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

CREATE TABLE "winners" (
  "year" text,
  "venue" text,
  "winner" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What winner has royal st george's golf club as the venue, and 1969 as the year?`:
```sql
                SELECT "winner" FROM "winners" WHERE "venue"='royal st george''s golf club' AND "year"='1969';
```
## Task
Generate a SQL query to answer the following question:
`What runner-up has 1925 as the year?`

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

CREATE TABLE "winners" (
  "year" text,
  "venue" text,
  "winner" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What runner-up has 1925 as the year?`:
```sql
                SELECT "runner_up" FROM "winners" WHERE "year"='1925';
```
## Task
Generate a SQL query to answer the following question:
`What year has John Davies as the runner-up, with warren humphreys as the winner?`

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

CREATE TABLE "winners" (
  "year" text,
  "venue" text,
  "winner" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year has John Davies as the runner-up, with warren humphreys as the winner?`:
```sql
                SELECT "year" FROM "winners" WHERE "runner_up"='john davies' AND "winner"='warren humphreys';
```
## Task
Generate a SQL query to answer the following question:
`What country is the player who scored 27 goals from?`

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

CREATE TABLE "segunda_divisi_n" (
  "ranking" text,
  "nationality" text,
  "name" text,
  "years" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country is the player who scored 27 goals from?`:
```sql
                SELECT "nationality" FROM "segunda_divisi_n" WHERE "goals"=27;
```
## Task
Generate a SQL query to answer the following question:
`For the player that scored 27 goals, what years did he score them?`

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

CREATE TABLE "segunda_divisi_n" (
  "ranking" text,
  "nationality" text,
  "name" text,
  "years" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the player that scored 27 goals, what years did he score them?`:
```sql
                SELECT "years" FROM "segunda_divisi_n" WHERE "goals"=27;
```
## Task
Generate a SQL query to answer the following question:
`In what place(s) did the player(s) with a total less than 282 finish?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what place(s) did the player(s) with a total less than 282 finish?`:
```sql
                SELECT "finish" FROM "made_the_cut" WHERE "total"<282;
```
## Task
Generate a SQL query to answer the following question:
`In what place did Nick Faldo, who had more than 284 points and a to par score of +5, finish?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what place did Nick Faldo, who had more than 284 points and a to par score of +5, finish?`:
```sql
                SELECT "finish" FROM "made_the_cut" WHERE "total">284 AND "to_par"='+5' AND "player"='nick faldo';
```
## Task
Generate a SQL query to answer the following question:
`When did Prime Minister Agathe Uwilingiyimana's mandate end?`

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

CREATE TABLE "list" (
  "name_a" text,
  "country" text,
  "office" text,
  "mandate_start" text,
  "mandate_end" text,
  "term_length" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Prime Minister Agathe Uwilingiyimana's mandate end?`:
```sql
                SELECT "mandate_end" FROM "list" WHERE "office"='prime minister' AND "name_a"='agathe uwilingiyimana';
```
## Task
Generate a SQL query to answer the following question:
`What is the power output for class 5?`

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

CREATE TABLE "current_rolling_stock" (
  "class" text,
  "introduced" text,
  "number_in_class" real,
  "number_in_service" real,
  "power_output_k_w" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power output for class 5?`:
```sql
                SELECT "power_output_k_w" FROM "current_rolling_stock" WHERE "number_in_class"=5;
```
## Task
Generate a SQL query to answer the following question:
`Which class has a power output larger than 700 and a class of 48?`

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

CREATE TABLE "current_rolling_stock" (
  "class" text,
  "introduced" text,
  "number_in_class" real,
  "number_in_service" real,
  "power_output_k_w" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which class has a power output larger than 700 and a class of 48?`:
```sql
                SELECT "class" FROM "current_rolling_stock" WHERE "power_output_k_w">700 AND "number_in_class"=48;
```
## Task
Generate a SQL query to answer the following question:
`What is the Week 8 result of the team that lost to syarcuse (4-2) in Week 7?`

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

CREATE TABLE "ap_poll" (
  "preseason" text,
  "week_1_sept_7" text,
  "week_2_sept_14" text,
  "week_3_sept_21" text,
  "week_4_sept_28" text,
  "week_5_oct_5" text,
  "week_6_oct_12" text,
  "week_7_oct_19" text,
  "week_8_oct_26" text,
  "week_9_nov_2" text,
  "week_10_nov_9" text,
  "week_11_nov_16" text,
  "week_12_nov_23" text,
  "week_13_nov_30" text,
  "week_14_dec_7" text,
  "week_15_final_jan_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Week 8 result of the team that lost to syarcuse (4-2) in Week 7?`:
```sql
                SELECT "week_8_oct_26" FROM "ap_poll" WHERE "week_7_oct_19"='syarcuse (4-2)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Week 1 result of Colorado State?`

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

CREATE TABLE "ap_poll" (
  "preseason" text,
  "week_1_sept_7" text,
  "week_2_sept_14" text,
  "week_3_sept_21" text,
  "week_4_sept_28" text,
  "week_5_oct_5" text,
  "week_6_oct_12" text,
  "week_7_oct_19" text,
  "week_8_oct_26" text,
  "week_9_nov_2" text,
  "week_10_nov_9" text,
  "week_11_nov_16" text,
  "week_12_nov_23" text,
  "week_13_nov_30" text,
  "week_14_dec_7" text,
  "week_15_final_jan_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Week 1 result of Colorado State?`:
```sql
                SELECT "week_1_sept_7" FROM "ap_poll" WHERE "preseason"='colorado state';
```
## Task
Generate a SQL query to answer the following question:
`Who is the incumbent for the Colorado 4 district?`

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

CREATE TABLE "colorado" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the incumbent for the Colorado 4 district?`:
```sql
                SELECT "incumbent" FROM "colorado" WHERE "district"='colorado 4';
```
## Task
Generate a SQL query to answer the following question:
`What district is the incumbent Republican and the incumbent retired to run for governor democratic gain?`

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

CREATE TABLE "colorado" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district is the incumbent Republican and the incumbent retired to run for governor democratic gain?`:
```sql
                SELECT "district" FROM "colorado" WHERE "party"='republican' AND "results"='retired to run for governor democratic gain';
```
## Task
Generate a SQL query to answer the following question:
`In Colorado 6 district what is the party?`

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

CREATE TABLE "colorado" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `In Colorado 6 district what is the party?`:
```sql
                SELECT "party" FROM "colorado" WHERE "district"='colorado 6';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament had a clay surface and a score of 6–1, 3–6, 6–2?`

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

CREATE TABLE "doubles_titles_23" (
  "outcome" text,
  "date" real,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament had a clay surface and a score of 6–1, 3–6, 6–2?`:
```sql
                SELECT "tournament" FROM "doubles_titles_23" WHERE "surface"='clay' AND "score_in_the_final"='6–1, 3–6, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`How many days had a score of 4–6, 4–6?`

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

CREATE TABLE "doubles_titles_23" (
  "outcome" text,
  "date" real,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many days had a score of 4–6, 4–6?`:
```sql
                SELECT COUNT("date") FROM "doubles_titles_23" WHERE "score_in_the_final"='4–6, 4–6';
```
## Task
Generate a SQL query to answer the following question:
`What was the To Par of Tiger Woods who won in 1988?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_won" real,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the To Par of Tiger Woods who won in 1988?`:
```sql
                SELECT "to_par" FROM "made_the_cut" WHERE "year_won"=1988;
```
## Task
Generate a SQL query to answer the following question:
`What is the team sites entry for Microsoft Sharepoint?`

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

CREATE TABLE "comparison_of_targets" (
  "name" text,
  "public" text,
  "intranet" text,
  "extranet" text,
  "personal_sites" text,
  "team_sites" text,
  "developer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team sites entry for Microsoft Sharepoint?`:
```sql
                SELECT "team_sites" FROM "comparison_of_targets" WHERE "name"='microsoft sharepoint';
```
## Task
Generate a SQL query to answer the following question:
`If the intranet entry is Yes, what is the extranet entry for Microsoft Exchange server?`

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

CREATE TABLE "comparison_of_targets" (
  "name" text,
  "public" text,
  "intranet" text,
  "extranet" text,
  "personal_sites" text,
  "team_sites" text,
  "developer" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the intranet entry is Yes, what is the extranet entry for Microsoft Exchange server?`:
```sql
                SELECT "extranet" FROM "comparison_of_targets" WHERE "intranet"='yes' AND "name"='microsoft exchange server';
```
## Task
Generate a SQL query to answer the following question:
`What is the team sites entry that has a public entry of No and a developer entry of Yes?`

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

CREATE TABLE "comparison_of_targets" (
  "name" text,
  "public" text,
  "intranet" text,
  "extranet" text,
  "personal_sites" text,
  "team_sites" text,
  "developer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team sites entry that has a public entry of No and a developer entry of Yes?`:
```sql
                SELECT "team_sites" FROM "comparison_of_targets" WHERE "public"='no' AND "developer"='yes';
```
## Task
Generate a SQL query to answer the following question:
`What is the name for the entry that has a public of Yes, a personal sites of No, and a team sites of No?`

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

CREATE TABLE "comparison_of_targets" (
  "name" text,
  "public" text,
  "intranet" text,
  "extranet" text,
  "personal_sites" text,
  "team_sites" text,
  "developer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name for the entry that has a public of Yes, a personal sites of No, and a team sites of No?`:
```sql
                SELECT "name" FROM "comparison_of_targets" WHERE "public"='yes' AND "personal_sites"='no' AND "team_sites"='no';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the entry that has a developer entry of Yes and a personal sites entry of No?`

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

CREATE TABLE "comparison_of_targets" (
  "name" text,
  "public" text,
  "intranet" text,
  "extranet" text,
  "personal_sites" text,
  "team_sites" text,
  "developer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the entry that has a developer entry of Yes and a personal sites entry of No?`:
```sql
                SELECT "name" FROM "comparison_of_targets" WHERE "developer"='yes' AND "personal_sites"='no';
```
## Task
Generate a SQL query to answer the following question:
`What Line has Ohakune Junction as its NIMT?`

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

CREATE TABLE "connecting_lines" (
  "line_name" text,
  "date_closed" text,
  "nimt_junction" text,
  "terminus" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Line has Ohakune Junction as its NIMT?`:
```sql
                SELECT "line_name" FROM "connecting_lines" WHERE "nimt_junction"='ohakune junction';
```
## Task
Generate a SQL query to answer the following question:
`What line has Newmarket Junction terminus?`

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

CREATE TABLE "connecting_lines" (
  "line_name" text,
  "date_closed" text,
  "nimt_junction" text,
  "terminus" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `What line has Newmarket Junction terminus?`:
```sql
                SELECT "line_name" FROM "connecting_lines" WHERE "terminus"='newmarket junction';
```
## Task
Generate a SQL query to answer the following question:
`What terminus is 3.5km in lenght?`

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

CREATE TABLE "connecting_lines" (
  "line_name" text,
  "date_closed" text,
  "nimt_junction" text,
  "terminus" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `What terminus is 3.5km in lenght?`:
```sql
                SELECT "terminus" FROM "connecting_lines" WHERE "length"='3.5km';
```
## Task
Generate a SQL query to answer the following question:
`What line has Junction of Huntly NIMT`

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

CREATE TABLE "connecting_lines" (
  "line_name" text,
  "date_closed" text,
  "nimt_junction" text,
  "terminus" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `What line has Junction of Huntly NIMT`:
```sql
                SELECT "line_name" FROM "connecting_lines" WHERE "nimt_junction"='huntly';
```
## Task
Generate a SQL query to answer the following question:
`What is the average final with an all around greater than 19.35 and a total over 40?`

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

CREATE TABLE "finals_3_balls_3_hoops" (
  "place" real,
  "nation" text,
  "all_around" real,
  "final" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average final with an all around greater than 19.35 and a total over 40?`:
```sql
                SELECT AVG("final") FROM "finals_3_balls_3_hoops" WHERE "all_around">19.35 AND "total">40;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the final for finland, who placed greater than 2 and had an all around larger than 18.9?`

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

CREATE TABLE "finals_3_balls_3_hoops" (
  "place" real,
  "nation" text,
  "all_around" real,
  "final" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the final for finland, who placed greater than 2 and had an all around larger than 18.9?`:
```sql
                SELECT SUM("final") FROM "finals_3_balls_3_hoops" WHERE "place">2 AND "nation"='finland' AND "all_around">18.9;
```
## Task
Generate a SQL query to answer the following question:
`What is the place of the player with £140,000 and a 68-68-75-68=279 score?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place of the player with £140,000 and a 68-68-75-68=279 score?`:
```sql
                SELECT "place" FROM "final_round" WHERE "money"='140,000' AND "score"='68-68-75-68=279';
```
## Task
Generate a SQL query to answer the following question:
`What is the country of player stuart appleby, who has a t1 place?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country of player stuart appleby, who has a t1 place?`:
```sql
                SELECT "country" FROM "final_round" WHERE "place"='t1' AND "player"='stuart appleby';
```
## Task
Generate a SQL query to answer the following question:
`What is the place of player sergio garcía, who has £77,500?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place of player sergio garcía, who has £77,500?`:
```sql
                SELECT "place" FROM "final_round" WHERE "money"='77,500' AND "player"='sergio garcía';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par of the player with a 73-70-70-65=278 score?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par of the player with a 73-70-70-65=278 score?`:
```sql
                SELECT "to_par" FROM "final_round" WHERE "score"='73-70-70-65=278';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player with £140,000?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player with £140,000?`:
```sql
                SELECT "player" FROM "final_round" WHERE "money"='140,000';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Time is "56.49"?`

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

CREATE TABLE "men" (
  "event" text,
  "time" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Time is "56.49"?`:
```sql
                SELECT "date" FROM "men" WHERE "time"='56.49';
```
## Task
Generate a SQL query to answer the following question:
`What is Event, when Date is "19 December 2009"?`

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

CREATE TABLE "men" (
  "event" text,
  "time" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Event, when Date is "19 December 2009"?`:
```sql
                SELECT "event" FROM "men" WHERE "date"='19 december 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is Time, when Meet is "Duel in the Pool", and when Date is "19 December 2009"?`

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

CREATE TABLE "men" (
  "event" text,
  "time" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Time, when Meet is "Duel in the Pool", and when Date is "19 December 2009"?`:
```sql
                SELECT "time" FROM "men" WHERE "meet"='duel in the pool' AND "date"='19 december 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location, when Event is "100m Butterfly"?`

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

CREATE TABLE "men" (
  "event" text,
  "time" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location, when Event is "100m Butterfly"?`:
```sql
                SELECT "location" FROM "men" WHERE "event"='100m butterfly';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Meet is "World Championships", when Nationality is "United States", and when Time is "1:46.68"?`

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

CREATE TABLE "men" (
  "event" text,
  "time" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Meet is "World Championships", when Nationality is "United States", and when Time is "1:46.68"?`:
```sql
                SELECT "date" FROM "men" WHERE "meet"='world championships' AND "nationality"='united states' AND "time"='1:46.68';
```
## Task
Generate a SQL query to answer the following question:
`What is Event, when Meet is "World Championships", and when Time is "20.51"?`

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

CREATE TABLE "men" (
  "event" text,
  "time" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Event, when Meet is "World Championships", and when Time is "20.51"?`:
```sql
                SELECT "event" FROM "men" WHERE "meet"='world championships' AND "time"='20.51';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of households with a median household income of $31,176, and a population of 25,607?`

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

CREATE TABLE "missouri_counties_ranked_by_per_capita_i" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of households with a median household income of $31,176, and a population of 25,607?`:
```sql
                SELECT MAX("number_of_households") FROM "missouri_counties_ranked_by_per_capita_i" WHERE "median_household_income"='$31,176' AND "population"<'25,607';
```
## Task
Generate a SQL query to answer the following question:
`What is the median household income for Cape Girardeau?`

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

CREATE TABLE "missouri_counties_ranked_by_per_capita_i" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the median household income for Cape Girardeau?`:
```sql
                SELECT "median_household_income" FROM "missouri_counties_ranked_by_per_capita_i" WHERE "county"='cape girardeau';
```
## Task
Generate a SQL query to answer the following question:
`What is the median household income with 4,527 houses, and a median family income of $71,009?`

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

CREATE TABLE "missouri_counties_ranked_by_per_capita_i" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the median household income with 4,527 houses, and a median family income of $71,009?`:
```sql
                SELECT "median_household_income" FROM "missouri_counties_ranked_by_per_capita_i" WHERE "number_of_households">'4,527' AND "median_family_income"='$71,009';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Colourist that has a Story Title of Broken Glass (part 3) and a Letterer of Albers?`

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

CREATE TABLE "third_format" (
  "cover_date" text,
  "story_title" text,
  "writer_s" text,
  "letterer_s" text,
  "colourist_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Colourist that has a Story Title of Broken Glass (part 3) and a Letterer of Albers?`:
```sql
                SELECT "colourist_s" FROM "third_format" WHERE "letterer_s"='albers' AND "story_title"='broken glass (part 3)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Cover Date of the Story Title Spacehikers (Part 2)?`

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

CREATE TABLE "third_format" (
  "cover_date" text,
  "story_title" text,
  "writer_s" text,
  "letterer_s" text,
  "colourist_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Cover Date of the Story Title Spacehikers (Part 2)?`:
```sql
                SELECT "cover_date" FROM "third_format" WHERE "story_title"='spacehikers (part 2)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Story Title that has Albers as the Letterer?`

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

CREATE TABLE "third_format" (
  "cover_date" text,
  "story_title" text,
  "writer_s" text,
  "letterer_s" text,
  "colourist_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Story Title that has Albers as the Letterer?`:
```sql
                SELECT "story_title" FROM "third_format" WHERE "letterer_s"='albers';
```
## Task
Generate a SQL query to answer the following question:
`Who are the drivers with 133 laps in OC class?`

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

CREATE TABLE "official_results" (
  "class" text,
  "team" text,
  "drivers" text,
  "laps" real,
  "qual_pos" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the drivers with 133 laps in OC class?`:
```sql
                SELECT "drivers" FROM "official_results" WHERE "laps"=133 AND "class"='oc';
```
## Task
Generate a SQL query to answer the following question:
`What are the most laps for the Qual position of 7 in the OC class?`

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

CREATE TABLE "official_results" (
  "class" text,
  "team" text,
  "drivers" text,
  "laps" real,
  "qual_pos" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the most laps for the Qual position of 7 in the OC class?`:
```sql
                SELECT MAX("laps") FROM "official_results" WHERE "class"='oc' AND "qual_pos"=7;
```
## Task
Generate a SQL query to answer the following question:
`What are Perkins Engineering's fewest laps?`

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

CREATE TABLE "official_results" (
  "class" text,
  "team" text,
  "drivers" text,
  "laps" real,
  "qual_pos" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are Perkins Engineering's fewest laps?`:
```sql
                SELECT MIN("laps") FROM "official_results" WHERE "team"='perkins engineering';
```
## Task
Generate a SQL query to answer the following question:
`Which class has a Qual position of 30?`

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

CREATE TABLE "official_results" (
  "class" text,
  "team" text,
  "drivers" text,
  "laps" real,
  "qual_pos" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which class has a Qual position of 30?`:
```sql
                SELECT "class" FROM "official_results" WHERE "qual_pos"=30;
```
## Task
Generate a SQL query to answer the following question:
`What Release date has a Version of 1.0, a Category of utilities, a Developer of microsoft, and a Title of msn money?`

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

CREATE TABLE "zune_hd_applications" (
  "title" text,
  "developer" text,
  "category" text,
  "release_date" text,
  "version" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Release date has a Version of 1.0, a Category of utilities, a Developer of microsoft, and a Title of msn money?`:
```sql
                SELECT "release_date" FROM "zune_hd_applications" WHERE "version"='1.0' AND "category"='utilities' AND "developer"='microsoft' AND "title"='msn money';
```
## Task
Generate a SQL query to answer the following question:
`What Release date has a Category of utilities, a Developer of microsoft, and a Title of chord finder?`

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

CREATE TABLE "zune_hd_applications" (
  "title" text,
  "developer" text,
  "category" text,
  "release_date" text,
  "version" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Release date has a Category of utilities, a Developer of microsoft, and a Title of chord finder?`:
```sql
                SELECT "release_date" FROM "zune_hd_applications" WHERE "category"='utilities' AND "developer"='microsoft' AND "title"='chord finder';
```
## Task
Generate a SQL query to answer the following question:
`What Developer has a Release date of 2010-12-16, and a Title of facebook?`

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

CREATE TABLE "zune_hd_applications" (
  "title" text,
  "developer" text,
  "category" text,
  "release_date" text,
  "version" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Developer has a Release date of 2010-12-16, and a Title of facebook?`:
```sql
                SELECT "developer" FROM "zune_hd_applications" WHERE "release_date"='2010-12-16' AND "title"='facebook';
```
## Task
Generate a SQL query to answer the following question:
`What Title has a Version of 1.0.0.3?`

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

CREATE TABLE "zune_hd_applications" (
  "title" text,
  "developer" text,
  "category" text,
  "release_date" text,
  "version" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Title has a Version of 1.0.0.3?`:
```sql
                SELECT "title" FROM "zune_hd_applications" WHERE "version"='1.0.0.3';
```
## Task
Generate a SQL query to answer the following question:
`What Version has a Title of alarm clock?`

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

CREATE TABLE "zune_hd_applications" (
  "title" text,
  "developer" text,
  "category" text,
  "release_date" text,
  "version" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Version has a Title of alarm clock?`:
```sql
                SELECT "version" FROM "zune_hd_applications" WHERE "title"='alarm clock';
```
## Task
Generate a SQL query to answer the following question:
`What Version has a Developer of dino games, and a Title of metronome?`

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

CREATE TABLE "zune_hd_applications" (
  "title" text,
  "developer" text,
  "category" text,
  "release_date" text,
  "version" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Version has a Developer of dino games, and a Title of metronome?`:
```sql
                SELECT "version" FROM "zune_hd_applications" WHERE "developer"='dino games' AND "title"='metronome';
```
## Task
Generate a SQL query to answer the following question:
`Where did Wales play?`

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

CREATE TABLE "1981" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Wales play?`:
```sql
                SELECT "venue" FROM "1981" WHERE "opposing_teams"='wales';
```
## Task
Generate a SQL query to answer the following question:
`What venue has 19 against?`

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

CREATE TABLE "1981" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue has 19 against?`:
```sql
                SELECT "venue" FROM "1981" WHERE "against"=19;
```
## Task
Generate a SQL query to answer the following question:
`Which Award Ceremony has a Nominee of sarah travis, and a Category of the best orchestrations?`

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

CREATE TABLE "2005_broadway_revival" (
  "year" real,
  "award_ceremony" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Award Ceremony has a Nominee of sarah travis, and a Category of the best orchestrations?`:
```sql
                SELECT "award_ceremony" FROM "2005_broadway_revival" WHERE "nominee"='sarah travis' AND "category"='best orchestrations';
```
## Task
Generate a SQL query to answer the following question:
`What is the most current year signed for separation of † and a separation year of 1997?`

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

CREATE TABLE "list_of_male_capital_artists_singers" (
  "english_name" text,
  "chinese_name" text,
  "year_signed" real,
  "year_separated" text,
  "reason_for_separation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most current year signed for separation of † and a separation year of 1997?`:
```sql
                SELECT MAX("year_signed") FROM "list_of_male_capital_artists_singers" WHERE "reason_for_separation"='†' AND "year_separated"='1997';
```
## Task
Generate a SQL query to answer the following question:
`What is the Chinese name for the English name Andy Lau?`

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

CREATE TABLE "list_of_male_capital_artists_singers" (
  "english_name" text,
  "chinese_name" text,
  "year_signed" real,
  "year_separated" text,
  "reason_for_separation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Chinese name for the English name Andy Lau?`:
```sql
                SELECT "chinese_name" FROM "list_of_male_capital_artists_singers" WHERE "english_name"='andy lau';
```
## Task
Generate a SQL query to answer the following question:
`What year was Wilfred Lau separated because Capital stopped recording music?`

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

CREATE TABLE "list_of_male_capital_artists_singers" (
  "english_name" text,
  "chinese_name" text,
  "year_signed" real,
  "year_separated" text,
  "reason_for_separation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Wilfred Lau separated because Capital stopped recording music?`:
```sql
                SELECT "year_separated" FROM "list_of_male_capital_artists_singers" WHERE "reason_for_separation"='capital stopped recording music' AND "english_name"='wilfred lau';
```