cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what is the reported birth date when the reported age is 110 years, 185 days?`

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

CREATE TABLE "oldest_norwegian_person_by_region" (
  "region" text,
  "name" text,
  "reported_birth_date" text,
  "reported_death_date" text,
  "reported_age" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the reported birth date when the reported age is 110 years, 185 days?`:
```sql
                SELECT "reported_birth_date" FROM "oldest_norwegian_person_by_region" WHERE "reported_age"='110 years, 185 days';
```
## Task
Generate a SQL query to answer the following question:
`what is the reported age when the reported birth date is 22 december 1878?`

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

CREATE TABLE "oldest_norwegian_person_by_region" (
  "region" text,
  "name" text,
  "reported_birth_date" text,
  "reported_death_date" text,
  "reported_age" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the reported age when the reported birth date is 22 december 1878?`:
```sql
                SELECT "reported_age" FROM "oldest_norwegian_person_by_region" WHERE "reported_birth_date"='22 december 1878';
```
## Task
Generate a SQL query to answer the following question:
`what is the region when the reported age is 111 years, 107 days?`

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

CREATE TABLE "oldest_norwegian_person_by_region" (
  "region" text,
  "name" text,
  "reported_birth_date" text,
  "reported_death_date" text,
  "reported_age" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the region when the reported age is 111 years, 107 days?`:
```sql
                SELECT "region" FROM "oldest_norwegian_person_by_region" WHERE "reported_age"='111 years, 107 days';
```
## Task
Generate a SQL query to answer the following question:
`what is the reported death date for laura svehaug?`

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

CREATE TABLE "oldest_norwegian_person_by_region" (
  "region" text,
  "name" text,
  "reported_birth_date" text,
  "reported_death_date" text,
  "reported_age" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the reported death date for laura svehaug?`:
```sql
                SELECT "reported_death_date" FROM "oldest_norwegian_person_by_region" WHERE "name"='laura svehaug';
```
## Task
Generate a SQL query to answer the following question:
`Who has a reported age of 111 years, 66 days?`

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

CREATE TABLE "oldest_norwegian_person_by_region" (
  "region" text,
  "name" text,
  "reported_birth_date" text,
  "reported_death_date" text,
  "reported_age" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a reported age of 111 years, 66 days?`:
```sql
                SELECT "name" FROM "oldest_norwegian_person_by_region" WHERE "reported_age"='111 years, 66 days';
```
## Task
Generate a SQL query to answer the following question:
`Who has a reported death of 6 march 1998?`

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

CREATE TABLE "oldest_norwegian_person_by_region" (
  "region" text,
  "name" text,
  "reported_birth_date" text,
  "reported_death_date" text,
  "reported_age" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a reported death of 6 march 1998?`:
```sql
                SELECT "name" FROM "oldest_norwegian_person_by_region" WHERE "reported_death_date"='6 march 1998';
```
## Task
Generate a SQL query to answer the following question:
`Date for less than 122 countries and a 47% rank?`

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

CREATE TABLE "general" (
  "overall_ranking" text,
  "lat_am_ranking" text,
  "countries_surveyed" real,
  "pct_rank" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Date for less than 122 countries and a 47% rank?`:
```sql
                SELECT "date" FROM "general" WHERE "countries_surveyed"<122 AND "pct_rank"='47';
```
## Task
Generate a SQL query to answer the following question:
`What high assists has the high points of andrew bynum (23)?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What high assists has the high points of andrew bynum (23)?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "high_points"='andrew bynum (23)';
```
## Task
Generate a SQL query to answer the following question:
`What score is the team of charlotte?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score is the team of charlotte?`:
```sql
                SELECT "score" FROM "game_log" WHERE "team"='charlotte';
```
## Task
Generate a SQL query to answer the following question:
`What was strikeforce: barnett vs. cormier's record?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was strikeforce: barnett vs. cormier's record?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='strikeforce: barnett vs. cormier';
```
## Task
Generate a SQL query to answer the following question:
`What is the total q > 1.4 with a q > 1 less than 7,801,334, and a q > 1.05 greater than 812,499?`

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

CREATE TABLE "distribution_of_triples_with_q_1" (
  "q_1" real,
  "q_1_05" real,
  "q_1_1" real,
  "q_1_2" real,
  "q_1_3" real,
  "q_1_4" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total q > 1.4 with a q > 1 less than 7,801,334, and a q > 1.05 greater than 812,499?`:
```sql
                SELECT SUM("q_1_4") FROM "distribution_of_triples_with_q_1" WHERE "q_1"<'7,801,334' AND "q_1_05">'812,499';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of q > 1 when q > 1.05 is bigger than 18,233, and a q > 1.4 less than 112, and q > 1.1 is 13,266?`

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

CREATE TABLE "distribution_of_triples_with_q_1" (
  "q_1" real,
  "q_1_05" real,
  "q_1_1" real,
  "q_1_2" real,
  "q_1_3" real,
  "q_1_4" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of q > 1 when q > 1.05 is bigger than 18,233, and a q > 1.4 less than 112, and q > 1.1 is 13,266?`:
```sql
                SELECT COUNT("q_1") FROM "distribution_of_triples_with_q_1" WHERE "q_1_05">'18,233' AND "q_1_4"<112 AND "q_1_1"='13,266';
```
## Task
Generate a SQL query to answer the following question:
`What is the mean q > 1 with a q > 1.2 less than 3,028, and a q > 1.4 of 51, and a q > 1.05 greater than 18,233?`

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

CREATE TABLE "distribution_of_triples_with_q_1" (
  "q_1" real,
  "q_1_05" real,
  "q_1_1" real,
  "q_1_2" real,
  "q_1_3" real,
  "q_1_4" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mean q > 1 with a q > 1.2 less than 3,028, and a q > 1.4 of 51, and a q > 1.05 greater than 18,233?`:
```sql
                SELECT AVG("q_1") FROM "distribution_of_triples_with_q_1" WHERE "q_1_2"<'3,028' AND "q_1_4"=51 AND "q_1_05">'18,233';
```
## Task
Generate a SQL query to answer the following question:
`What is the total of q > 1.4 when q > 1.3 is 455, and q >1.2 is less than 3,028?`

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

CREATE TABLE "distribution_of_triples_with_q_1" (
  "q_1" real,
  "q_1_05" real,
  "q_1_1" real,
  "q_1_2" real,
  "q_1_3" real,
  "q_1_4" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of q > 1.4 when q > 1.3 is 455, and q >1.2 is less than 3,028?`:
```sql
                SELECT SUM("q_1_4") FROM "distribution_of_triples_with_q_1" WHERE "q_1_3"=455 AND "q_1_2"<'3,028';
```
## Task
Generate a SQL query to answer the following question:
`Who was the losing team with a total of 24 when the winning team was Sydney Roosters?`

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

CREATE TABLE "lowest_scoring_matches" (
  "total" real,
  "score" text,
  "winning_team" text,
  "losing_team" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the losing team with a total of 24 when the winning team was Sydney Roosters?`:
```sql
                SELECT "losing_team" FROM "lowest_scoring_matches" WHERE "total"=24 AND "winning_team"='sydney roosters';
```
## Task
Generate a SQL query to answer the following question:
`Which venue had a losing team of south sydney rabbitohs?`

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

CREATE TABLE "lowest_scoring_matches" (
  "total" real,
  "score" text,
  "winning_team" text,
  "losing_team" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue had a losing team of south sydney rabbitohs?`:
```sql
                SELECT "venue" FROM "lowest_scoring_matches" WHERE "losing_team"='south sydney rabbitohs';
```
## Task
Generate a SQL query to answer the following question:
`What day was the total smaller than 19 at Venue of anz stadium?`

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

CREATE TABLE "lowest_scoring_matches" (
  "total" real,
  "score" text,
  "winning_team" text,
  "losing_team" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was the total smaller than 19 at Venue of anz stadium?`:
```sql
                SELECT "date" FROM "lowest_scoring_matches" WHERE "total"<19 AND "venue"='anz stadium';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Total trade (tonnes) when the Imports is smaller than 114,287 tonnes and the year is higher than 2008?`

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

CREATE TABLE "port_trade" (
  "year" real,
  "imports_tonnes" real,
  "exports_tonnes" real,
  "total_trade_tonnes" real,
  "vessels_entering_port" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Total trade (tonnes) when the Imports is smaller than 114,287 tonnes and the year is higher than 2008?`:
```sql
                SELECT COUNT("total_trade_tonnes") FROM "port_trade" WHERE "imports_tonnes"<'114,287' AND "year">2008;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Total trade (tonnes) where the Imports are 111,677 tonnes and there are fewer than 129 vessels entering port?`

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

CREATE TABLE "port_trade" (
  "year" real,
  "imports_tonnes" real,
  "exports_tonnes" real,
  "total_trade_tonnes" real,
  "vessels_entering_port" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Total trade (tonnes) where the Imports are 111,677 tonnes and there are fewer than 129 vessels entering port?`:
```sql
                SELECT SUM("total_trade_tonnes") FROM "port_trade" WHERE "imports_tonnes"='111,677' AND "vessels_entering_port"<129;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Total trade (tonnes) after 2001 when the Imports are 144,368 tonnes, the Exports are more than 4,024,311 tonnes, and there are more than 91 vessels entering port?`

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

CREATE TABLE "port_trade" (
  "year" real,
  "imports_tonnes" real,
  "exports_tonnes" real,
  "total_trade_tonnes" real,
  "vessels_entering_port" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Total trade (tonnes) after 2001 when the Imports are 144,368 tonnes, the Exports are more than 4,024,311 tonnes, and there are more than 91 vessels entering port?`:
```sql
                SELECT MAX("total_trade_tonnes") FROM "port_trade" WHERE "year">2001 AND "vessels_entering_port">91 AND "imports_tonnes"='144,368' AND "exports_tonnes">'4,024,311';
```
## Task
Generate a SQL query to answer the following question:
`What was the Attendance before Week 17 with a Record of Bye?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "kickoff_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Attendance before Week 17 with a Record of Bye?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week"<17 AND "record"='bye';
```
## Task
Generate a SQL query to answer the following question:
`What is the Kickoff Time on January 7, 2002?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "kickoff_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Kickoff Time on January 7, 2002?`:
```sql
                SELECT "kickoff_time" FROM "schedule" WHERE "date"='january 7, 2002';
```
## Task
Generate a SQL query to answer the following question:
`What was the Opponent in the game with a Result of L 24–14?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "kickoff_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Opponent in the game with a Result of L 24–14?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "result"='l 24–14';
```
## Task
Generate a SQL query to answer the following question:
`What was the Result of the game with an Attendance of 69,365?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "kickoff_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Result of the game with an Attendance of 69,365?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance"='69,365';
```
## Task
Generate a SQL query to answer the following question:
`Which event won by KCLMS in 2008 has KCLMS as the winner and less than 10 wins by KCL?`

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

CREATE TABLE "results" (
  "year" real,
  "date_held" text,
  "winner" text,
  "events_won_by_kcl" real,
  "events_won_by_kclms" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which event won by KCLMS in 2008 has KCLMS as the winner and less than 10 wins by KCL?`:
```sql
                SELECT "events_won_by_kcl" FROM "results" WHERE "winner"='kclms' AND "events_won_by_kclms"<10 AND "year"=2008;
```
## Task
Generate a SQL query to answer the following question:
`How many years were the events won by KCLMS less than 7?`

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

CREATE TABLE "results" (
  "year" real,
  "date_held" text,
  "winner" text,
  "events_won_by_kcl" real,
  "events_won_by_kclms" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many years were the events won by KCLMS less than 7?`:
```sql
                SELECT COUNT("year") FROM "results" WHERE "events_won_by_kclms"<7;
```
## Task
Generate a SQL query to answer the following question:
`What is the average value for events won by KCL in a year earlier than 2004?`

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

CREATE TABLE "results" (
  "year" real,
  "date_held" text,
  "winner" text,
  "events_won_by_kcl" real,
  "events_won_by_kclms" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average value for events won by KCL in a year earlier than 2004?`:
```sql
                SELECT AVG("events_won_by_kcl") FROM "results" WHERE "year"<2004;
```
## Task
Generate a SQL query to answer the following question:
`What is the appointment day for 4 December 2008 vacancy?`

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

CREATE TABLE "during_the_season" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the appointment day for 4 December 2008 vacancy?`:
```sql
                SELECT "date_of_appointment" FROM "during_the_season" WHERE "date_of_vacancy"='4 december 2008';
```
## Task
Generate a SQL query to answer the following question:
`Which outgoing manager has tabled 16th position?`

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

CREATE TABLE "during_the_season" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which outgoing manager has tabled 16th position?`:
```sql
                SELECT "outgoing_manager" FROM "during_the_season" WHERE "position_in_table"='16th';
```
## Task
Generate a SQL query to answer the following question:
`Which position is team mons who was replaced by Christophe Dessy (caretaker)?`

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

CREATE TABLE "during_the_season" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position is team mons who was replaced by Christophe Dessy (caretaker)?`:
```sql
                SELECT "position_in_table" FROM "during_the_season" WHERE "team"='mons' AND "replaced_by"='christophe dessy (caretaker)';
```
## Task
Generate a SQL query to answer the following question:
`What is the table position for 4 December 2008 vacancy?`

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

CREATE TABLE "during_the_season" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the table position for 4 December 2008 vacancy?`:
```sql
                SELECT "position_in_table" FROM "during_the_season" WHERE "date_of_vacancy"='4 december 2008';
```
## Task
Generate a SQL query to answer the following question:
`How many laps have 50 points?`

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

CREATE TABLE "race_results" (
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps have 50 points?`:
```sql
                SELECT "laps" FROM "race_results" WHERE "points"='50';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid of team dreyer & reinbold racing, which has 26 points?`

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

CREATE TABLE "race_results" (
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid of team dreyer & reinbold racing, which has 26 points?`:
```sql
                SELECT "grid" FROM "race_results" WHERE "team"='dreyer & reinbold racing' AND "points"='26';
```
## Task
Generate a SQL query to answer the following question:
`How many points have 75 laps?`

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

CREATE TABLE "race_results" (
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points have 75 laps?`:
```sql
                SELECT "points" FROM "race_results" WHERE "laps"='75';
```
## Task
Generate a SQL query to answer the following question:
`How many laps have 0 laps led and 13 points?`

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

CREATE TABLE "race_results" (
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps have 0 laps led and 13 points?`:
```sql
                SELECT "laps" FROM "race_results" WHERE "laps_led"='0' AND "points"='13';
```
## Task
Generate a SQL query to answer the following question:
`How many points have 88 laps and a grid of 14?`

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

CREATE TABLE "race_results" (
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points have 88 laps and a grid of 14?`:
```sql
                SELECT "points" FROM "race_results" WHERE "laps"='88' AND "grid"='14';
```
## Task
Generate a SQL query to answer the following question:
`How many laps have a +0.4865 time/retired?`

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

CREATE TABLE "race_results" (
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps have a +0.4865 time/retired?`:
```sql
                SELECT "laps" FROM "race_results" WHERE "time_retired"='+0.4865';
```
## Task
Generate a SQL query to answer the following question:
`When did the ATV that deorbited on 29 september 2008, launch?`

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

CREATE TABLE "atv_missions" (
  "designation" text,
  "name" text,
  "launch_date" text,
  "iss_docking_date" text,
  "deorbit_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the ATV that deorbited on 29 september 2008, launch?`:
```sql
                SELECT "launch_date" FROM "atv_missions" WHERE "deorbit_date"='29 september 2008';
```
## Task
Generate a SQL query to answer the following question:
`When did the atv-002 launch?`

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

CREATE TABLE "atv_missions" (
  "designation" text,
  "name" text,
  "launch_date" text,
  "iss_docking_date" text,
  "deorbit_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the atv-002 launch?`:
```sql
                SELECT "launch_date" FROM "atv_missions" WHERE "designation"='atv-002';
```
## Task
Generate a SQL query to answer the following question:
`When did Edoardo Amaldi launch?`

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

CREATE TABLE "atv_missions" (
  "designation" text,
  "name" text,
  "launch_date" text,
  "iss_docking_date" text,
  "deorbit_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Edoardo Amaldi launch?`:
```sql
                SELECT "launch_date" FROM "atv_missions" WHERE "name"='edoardo amaldi';
```
## Task
Generate a SQL query to answer the following question:
`When did the ATV that launched on 9 March 2008, deorbit?`

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

CREATE TABLE "atv_missions" (
  "designation" text,
  "name" text,
  "launch_date" text,
  "iss_docking_date" text,
  "deorbit_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the ATV that launched on 9 March 2008, deorbit?`:
```sql
                SELECT "deorbit_date" FROM "atv_missions" WHERE "launch_date"='9 march 2008';
```
## Task
Generate a SQL query to answer the following question:
`Who was the partner on the game which took place on a clay surface with opponents of marco chiudinelli michael lammer and a runner-up result?`

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

CREATE TABLE "doubles_23_11_12" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the partner on the game which took place on a clay surface with opponents of marco chiudinelli michael lammer and a runner-up result?`:
```sql
                SELECT "partner" FROM "doubles_23_11_12" WHERE "outcome"='runner-up' AND "surface"='clay' AND "opponents"='marco chiudinelli michael lammer';
```
## Task
Generate a SQL query to answer the following question:
`Who were the opponent in the match on a clay surface that had a score of 6–3, 7–6 (11–9)?`

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

CREATE TABLE "doubles_23_11_12" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponent in the match on a clay surface that had a score of 6–3, 7–6 (11–9)?`:
```sql
                SELECT "opponents" FROM "doubles_23_11_12" WHERE "surface"='clay' AND "score"='6–3, 7–6 (11–9)';
```
## Task
Generate a SQL query to answer the following question:
`What is Season, when Races is less than 16?`

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

CREATE TABLE "by_seasons_and_teams" (
  "season" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Season, when Races is less than 16?`:
```sql
                SELECT "season" FROM "by_seasons_and_teams" WHERE "races"<16;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Poles, when Podiums is 0, and when Races is 17?`

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

CREATE TABLE "by_seasons_and_teams" (
  "season" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Poles, when Podiums is 0, and when Races is 17?`:
```sql
                SELECT SUM("poles") FROM "by_seasons_and_teams" WHERE "podiums"=0 AND "races"=17;
```
## Task
Generate a SQL query to answer the following question:
`What is Poles, when Races is less than 16?`

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

CREATE TABLE "by_seasons_and_teams" (
  "season" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Poles, when Races is less than 16?`:
```sql
                SELECT "poles" FROM "by_seasons_and_teams" WHERE "races"<16;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Races, when Podiums is greater than 1?`

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

CREATE TABLE "by_seasons_and_teams" (
  "season" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Races, when Podiums is greater than 1?`:
```sql
                SELECT MIN("races") FROM "by_seasons_and_teams" WHERE "podiums">1;
```
## Task
Generate a SQL query to answer the following question:
`How many people on average attended the game in week 14?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people on average attended the game in week 14?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "week"=14;
```
## Task
Generate a SQL query to answer the following question:
`The game in week 11 has what result?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `The game in week 11 has what result?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week"=11;
```
## Task
Generate a SQL query to answer the following question:
`For the game against the San Francisco 49ers what was the total attendance?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the game against the San Francisco 49ers what was the total attendance?`:
```sql
                SELECT SUM("attendance") FROM "schedule" WHERE "opponent"='san francisco 49ers';
```
## Task
Generate a SQL query to answer the following question:
`What is the Place that has a To standard of –1, and a Score of 71-68-76=215?`

### 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 is the Place that has a To standard of –1, and a Score of 71-68-76=215?`:
```sql
                SELECT "place" FROM "third_round" WHERE "to_par"='–1' AND "score"='71-68-76=215';
```
## Task
Generate a SQL query to answer the following question:
`What is the Player that has a To standard of –7?`

### 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 is the Player that has a To standard of –7?`:
```sql
                SELECT "player" FROM "third_round" WHERE "to_par"='–7';
```
## Task
Generate a SQL query to answer the following question:
`What is the Player that has a To standard of –4?`

### 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 is the Player that has a To standard of –4?`:
```sql
                SELECT "player" FROM "third_round" WHERE "to_par"='–4';
```
## Task
Generate a SQL query to answer the following question:
`What is the Player that has a To standard of –1, and a Score of 71-68-76=215?`

### 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 is the Player that has a To standard of –1, and a Score of 71-68-76=215?`:
```sql
                SELECT "player" FROM "third_round" WHERE "to_par"='–1' AND "score"='71-68-76=215';
```
## Task
Generate a SQL query to answer the following question:
`What shows for 1980–81 when 1973–74, and 2001–02 did not participate?`

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

CREATE TABLE "competition_timeline" (
  "competition" text,
  "1970_71" text,
  "1971_72" text,
  "1972_73" text,
  "1973_74" text,
  "1974_75" text,
  "1975_76" text,
  "1976_77" text,
  "1977_78" text,
  "1978_79" text,
  "1979_80" text,
  "1980_81" text,
  "1981_82" text,
  "1982_83" text,
  "1983_84" text,
  "1984_85" text,
  "1985_86" text,
  "1986_87" text,
  "1987_88" text,
  "1988_89" text,
  "1989_90" text,
  "1990_91" text,
  "1991_92" text,
  "1992_93" text,
  "1993_94" text,
  "1994_95" text,
  "1995_96" text,
  "1996_97" text,
  "1997_98" text,
  "1998_99" text,
  "1999_00" text,
  "2000_01" text,
  "2001_02" text,
  "2002_03" text,
  "2003_04" text,
  "2004_05" text,
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for 1980–81 when 1973–74, and 2001–02 did not participate?`:
```sql
                SELECT "1980_81" FROM "competition_timeline" WHERE "1973_74"='did not participate' AND "2001_02"='did not participate';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2004–05 answer when 2003–04 shows grp?`

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

CREATE TABLE "competition_timeline" (
  "competition" text,
  "1970_71" text,
  "1971_72" text,
  "1972_73" text,
  "1973_74" text,
  "1974_75" text,
  "1975_76" text,
  "1976_77" text,
  "1977_78" text,
  "1978_79" text,
  "1979_80" text,
  "1980_81" text,
  "1981_82" text,
  "1982_83" text,
  "1983_84" text,
  "1984_85" text,
  "1985_86" text,
  "1986_87" text,
  "1987_88" text,
  "1988_89" text,
  "1989_90" text,
  "1990_91" text,
  "1991_92" text,
  "1992_93" text,
  "1993_94" text,
  "1994_95" text,
  "1995_96" text,
  "1996_97" text,
  "1997_98" text,
  "1998_99" text,
  "1999_00" text,
  "2000_01" text,
  "2001_02" text,
  "2002_03" text,
  "2003_04" text,
  "2004_05" text,
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2004–05 answer when 2003–04 shows grp?`:
```sql
                SELECT "2004_05" FROM "competition_timeline" WHERE "2003_04"='grp';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1999–00 answer when the 2010–11 shows grp?`

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

CREATE TABLE "competition_timeline" (
  "competition" text,
  "1970_71" text,
  "1971_72" text,
  "1972_73" text,
  "1973_74" text,
  "1974_75" text,
  "1975_76" text,
  "1976_77" text,
  "1977_78" text,
  "1978_79" text,
  "1979_80" text,
  "1980_81" text,
  "1981_82" text,
  "1982_83" text,
  "1983_84" text,
  "1984_85" text,
  "1985_86" text,
  "1986_87" text,
  "1987_88" text,
  "1988_89" text,
  "1989_90" text,
  "1990_91" text,
  "1991_92" text,
  "1992_93" text,
  "1993_94" text,
  "1994_95" text,
  "1995_96" text,
  "1996_97" text,
  "1997_98" text,
  "1998_99" text,
  "1999_00" text,
  "2000_01" text,
  "2001_02" text,
  "2002_03" text,
  "2003_04" text,
  "2004_05" text,
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1999–00 answer when the 2010–11 shows grp?`:
```sql
                SELECT "1999_00" FROM "competition_timeline" WHERE "2010_11"='grp';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1997–98 answer when the 2003–04 shows grp?`

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

CREATE TABLE "competition_timeline" (
  "competition" text,
  "1970_71" text,
  "1971_72" text,
  "1972_73" text,
  "1973_74" text,
  "1974_75" text,
  "1975_76" text,
  "1976_77" text,
  "1977_78" text,
  "1978_79" text,
  "1979_80" text,
  "1980_81" text,
  "1981_82" text,
  "1982_83" text,
  "1983_84" text,
  "1984_85" text,
  "1985_86" text,
  "1986_87" text,
  "1987_88" text,
  "1988_89" text,
  "1989_90" text,
  "1990_91" text,
  "1991_92" text,
  "1992_93" text,
  "1993_94" text,
  "1994_95" text,
  "1995_96" text,
  "1996_97" text,
  "1997_98" text,
  "1998_99" text,
  "1999_00" text,
  "2000_01" text,
  "2001_02" text,
  "2002_03" text,
  "2003_04" text,
  "2004_05" text,
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1997–98 answer when the 2003–04 shows grp?`:
```sql
                SELECT "1997_98" FROM "competition_timeline" WHERE "2003_04"='grp';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1989–90 answer when the 2004–05 shows grp?`

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

CREATE TABLE "competition_timeline" (
  "competition" text,
  "1970_71" text,
  "1971_72" text,
  "1972_73" text,
  "1973_74" text,
  "1974_75" text,
  "1975_76" text,
  "1976_77" text,
  "1977_78" text,
  "1978_79" text,
  "1979_80" text,
  "1980_81" text,
  "1981_82" text,
  "1982_83" text,
  "1983_84" text,
  "1984_85" text,
  "1985_86" text,
  "1986_87" text,
  "1987_88" text,
  "1988_89" text,
  "1989_90" text,
  "1990_91" text,
  "1991_92" text,
  "1992_93" text,
  "1993_94" text,
  "1994_95" text,
  "1995_96" text,
  "1996_97" text,
  "1997_98" text,
  "1998_99" text,
  "1999_00" text,
  "2000_01" text,
  "2001_02" text,
  "2002_03" text,
  "2003_04" text,
  "2004_05" text,
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1989–90 answer when the 2004–05 shows grp?`:
```sql
                SELECT "1989_90" FROM "competition_timeline" WHERE "2004_05"='grp';
```
## Task
Generate a SQL query to answer the following question:
`Which rank is 40 for s Wicket with a player of Daniel Marsh?`

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

CREATE TABLE "most_career_wickets" (
  "rank" text,
  "s_wicket" text,
  "player" text,
  "matches" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rank is 40 for s Wicket with a player of Daniel Marsh?`:
```sql
                SELECT "rank" FROM "most_career_wickets" WHERE "s_wicket"='40' AND "player"='daniel marsh';
```
## Task
Generate a SQL query to answer the following question:
`Which rank has a s wicket at 40 and 28.42 is the average?`

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

CREATE TABLE "most_career_wickets" (
  "rank" text,
  "s_wicket" text,
  "player" text,
  "matches" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rank has a s wicket at 40 and 28.42 is the average?`:
```sql
                SELECT "rank" FROM "most_career_wickets" WHERE "s_wicket"='40' AND "average"='28.42';
```
## Task
Generate a SQL query to answer the following question:
`Which value for s wicket is associated with Shaun Young?`

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

CREATE TABLE "most_career_wickets" (
  "rank" text,
  "s_wicket" text,
  "player" text,
  "matches" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which value for s wicket is associated with Shaun Young?`:
```sql
                SELECT "s_wicket" FROM "most_career_wickets" WHERE "player"='shaun young';
```
## Task
Generate a SQL query to answer the following question:
`Which player has a s wicket at 48?`

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

CREATE TABLE "most_career_wickets" (
  "rank" text,
  "s_wicket" text,
  "player" text,
  "matches" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has a s wicket at 48?`:
```sql
                SELECT "player" FROM "most_career_wickets" WHERE "s_wicket"='48';
```
## Task
Generate a SQL query to answer the following question:
`What is the s wicket value associated with Shaun Young?`

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

CREATE TABLE "most_career_wickets" (
  "rank" text,
  "s_wicket" text,
  "player" text,
  "matches" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the s wicket value associated with Shaun Young?`:
```sql
                SELECT "s_wicket" FROM "most_career_wickets" WHERE "player"='shaun young';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game where the NY Islanders are the home team?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game where the NY Islanders are the home team?`:
```sql
                SELECT "date" FROM "game_log" WHERE "home"='ny islanders';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game where the NY Islanders are the home team?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game where the NY Islanders are the home team?`:
```sql
                SELECT "score" FROM "game_log" WHERE "home"='ny islanders';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team on February 3?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team on February 3?`:
```sql
                SELECT "home" FROM "game_log" WHERE "date"='february 3';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Overall, when Round is less than 24, and when College is North Carolina State?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Overall, when Round is less than 24, and when College is North Carolina State?`:
```sql
                SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "round"<24 AND "college"='north carolina state';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Pick, when Position is OT, when Overall is greater than 91, when Round is greater than 21, and when College is Mississippi?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Pick, when Position is OT, when Overall is greater than 91, when Round is greater than 21, and when College is Mississippi?`:
```sql
                SELECT COUNT("pick") FROM "washington_redskins_draft_history" WHERE "position"='ot' AND "overall">91 AND "round">21 AND "college"='mississippi';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Overall, when College is Hardin-Simmons, and when Round is greater than 26?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Overall, when College is Hardin-Simmons, and when Round is greater than 26?`:
```sql
                SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "college"='hardin-simmons' AND "round">26;
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the tournament with younes el aynaoui as the opponent?`

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

CREATE TABLE "singles_21_10_titles_11_runner_ups" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the tournament with younes el aynaoui as the opponent?`:
```sql
                SELECT "score" FROM "singles_21_10_titles_11_runner_ups" WHERE "opponent"='younes el aynaoui';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the tournament with carlos moyà as the opponent?`

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

CREATE TABLE "singles_21_10_titles_11_runner_ups" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the tournament with carlos moyà as the opponent?`:
```sql
                SELECT "date" FROM "singles_21_10_titles_11_runner_ups" WHERE "opponent"='carlos moyà';
```