cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what's the country/region with presenters being heikki paasonen jukka rossi (xtra factor)`

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

CREATE TABLE "table1_13779832_1" (
  "country_region" text,
  "local_title" text,
  "television_network" text,
  "seasons_and_winners" text,
  "judges" text,
  "presenters" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the country/region with presenters being heikki paasonen jukka rossi (xtra factor)`:
```sql
                SELECT "country_region" FROM "table1_13779832_1" WHERE "presenters"='Heikki Paasonen Jukka Rossi (Xtra Factor)';
```
## Task
Generate a SQL query to answer the following question:
` how many chroma format with name being high profile`

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

CREATE TABLE "mpeg_2_profiles" (
  "abbr" text,
  "name" text,
  "picture_coding_types" text,
  "chroma_format" text,
  "aspect_ratios" text,
  "scalable_modes" text,
  "intra_dc_precision" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many chroma format with name being high profile`:
```sql
                SELECT COUNT("chroma_format") FROM "mpeg_2_profiles" WHERE "name"='High profile';
```
## Task
Generate a SQL query to answer the following question:
`what's the chroma format with scalable modes being snr- or spatial-scalable and intra dc precbeingion being 8, 9, 10`

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

CREATE TABLE "mpeg_2_profiles" (
  "abbr" text,
  "name" text,
  "picture_coding_types" text,
  "chroma_format" text,
  "aspect_ratios" text,
  "scalable_modes" text,
  "intra_dc_precision" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the chroma format with scalable modes being snr- or spatial-scalable and intra dc precbeingion being 8, 9, 10`:
```sql
                SELECT "chroma_format" FROM "mpeg_2_profiles" WHERE "scalable_modes"='SNR- or spatial-scalable' AND "intra_dc_precision"='8, 9, 10';
```
## Task
Generate a SQL query to answer the following question:
`what's the chroma format with name being high profile`

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

CREATE TABLE "mpeg_2_profiles" (
  "abbr" text,
  "name" text,
  "picture_coding_types" text,
  "chroma_format" text,
  "aspect_ratios" text,
  "scalable_modes" text,
  "intra_dc_precision" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the chroma format with name being high profile`:
```sql
                SELECT "chroma_format" FROM "mpeg_2_profiles" WHERE "name"='High profile';
```
## Task
Generate a SQL query to answer the following question:
`who is the the artbeingt with song title being " a steel guitar and a glass of wine "`

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

CREATE TABLE "table1_13789248_2" (
  "position" real,
  "artist" text,
  "song_title" text,
  "highest_position" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the artbeingt with song title being " a steel guitar and a glass of wine "`:
```sql
                SELECT "artist" FROM "table1_13789248_2" WHERE "song_title"='\" A Steel Guitar And A Glass Of Wine \"';
```
## Task
Generate a SQL query to answer the following question:
`what's the points with artbeingt being dave appell`

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

CREATE TABLE "table1_13789248_2" (
  "position" real,
  "artist" text,
  "song_title" text,
  "highest_position" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the points with artbeingt being dave appell`:
```sql
                SELECT "points" FROM "table1_13789248_2" WHERE "artist"='Dave Appell';
```
## Task
Generate a SQL query to answer the following question:
`who is the the artbeingt with song title being " a little bitty tear "`

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

CREATE TABLE "table1_13789248_2" (
  "position" real,
  "artist" text,
  "song_title" text,
  "highest_position" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the artbeingt with song title being " a little bitty tear "`:
```sql
                SELECT "artist" FROM "table1_13789248_2" WHERE "song_title"='\" A Little Bitty Tear \"';
```
## Task
Generate a SQL query to answer the following question:
`who is the the artbeingt with position being 32`

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

CREATE TABLE "table1_13789248_2" (
  "position" real,
  "artist" text,
  "song_title" text,
  "highest_position" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the artbeingt with position being 32`:
```sql
                SELECT "artist" FROM "table1_13789248_2" WHERE "position"=32;
```
## Task
Generate a SQL query to answer the following question:
` how many song title with artbeingt being chubby checker`

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

CREATE TABLE "table1_13789248_2" (
  "position" real,
  "artist" text,
  "song_title" text,
  "highest_position" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers ` how many song title with artbeingt being chubby checker`:
```sql
                SELECT COUNT("song_title") FROM "table1_13789248_2" WHERE "artist"='Chubby Checker';
```
## Task
Generate a SQL query to answer the following question:
`what is the minimum points with highest position being 1`

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

CREATE TABLE "table1_13789248_2" (
  "position" real,
  "artist" text,
  "song_title" text,
  "highest_position" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the minimum points with highest position being 1`:
```sql
                SELECT MIN("points") FROM "table1_13789248_2" WHERE "highest_position"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of trnsit passeners when the total number of international passengers is 4870184?`

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

CREATE TABLE "2008_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2007_2008" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of trnsit passeners when the total number of international passengers is 4870184?`:
```sql
                SELECT MAX("transit_passengers") FROM "2008_data" WHERE "international_passengers"=4870184;
```
## Task
Generate a SQL query to answer the following question:
`What is Edinburgh's airport's freight in metric tonnes?`

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

CREATE TABLE "2008_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2007_2008" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Edinburgh's airport's freight in metric tonnes?`:
```sql
                SELECT MAX("freight_metric_tonnes") FROM "2008_data" WHERE "airport"='Edinburgh';
```
## Task
Generate a SQL query to answer the following question:
`How many different total number of transit passengers are there in London Luton?`

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

CREATE TABLE "2008_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2007_2008" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different total number of transit passengers are there in London Luton?`:
```sql
                SELECT COUNT("transit_passengers") FROM "2008_data" WHERE "airport"='London Luton';
```
## Task
Generate a SQL query to answer the following question:
`What are the total freights in metric tonnes when the total transit passengers is 147791?`

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

CREATE TABLE "2008_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2007_2008" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the total freights in metric tonnes when the total transit passengers is 147791?`:
```sql
                SELECT "freight_metric_tonnes" FROM "2008_data" WHERE "transit_passengers"=147791;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of passengers of the airport ranked 15?`

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

CREATE TABLE "2008_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2007_2008" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of passengers of the airport ranked 15?`:
```sql
                SELECT "international_passengers" FROM "2008_data" WHERE "rank"=15;
```
## Task
Generate a SQL query to answer the following question:
`Whatis the original title for lion's den?`

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

CREATE TABLE "table1_13834298_1" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whatis the original title for lion's den?`:
```sql
                SELECT "original_title" FROM "table1_13834298_1" WHERE "film_title_used_in_nomination"='Lion''s Den';
```
## Task
Generate a SQL query to answer the following question:
`What is the percent change from 08/09 for belfast international?`

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

CREATE TABLE "2009_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2008_2009" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percent change from 08/09 for belfast international?`:
```sql
                SELECT "pct_change_2008_2009" FROM "2009_data" WHERE "airport"='Belfast International';
```
## Task
Generate a SQL query to answer the following question:
`How many transit passengers at london gatwick?`

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

CREATE TABLE "2009_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2008_2009" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many transit passengers at london gatwick?`:
```sql
                SELECT "transit_passengers" FROM "2009_data" WHERE "airport"='London Gatwick';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the airport with freight ( metric tonnes ) of 255121?`

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

CREATE TABLE "2009_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2008_2009" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the airport with freight ( metric tonnes ) of 255121?`:
```sql
                SELECT "rank" FROM "2009_data" WHERE "freight_metric_tonnes"=255121;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the airport with a  freight ( metric tonnes ) of 23791?`

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

CREATE TABLE "2009_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2008_2009" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the airport with a  freight ( metric tonnes ) of 23791?`:
```sql
                SELECT "rank" FROM "2009_data" WHERE "freight_metric_tonnes"=23791;
```
## Task
Generate a SQL query to answer the following question:
`what's the airport with total passengers 2009 being 157933`

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

CREATE TABLE "2008_2009_data" (
  "rank" real,
  "airport" text,
  "total_passengers_2008" real,
  "total_passengers_2009" real,
  "change_2008_09" text,
  "aircraft_movements_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the airport with total passengers 2009 being 157933`:
```sql
                SELECT "airport" FROM "2008_2009_data" WHERE "total_passengers_2009"=157933;
```
## Task
Generate a SQL query to answer the following question:
`what being the maximum total passengers 2008 with change 2008/09 being 6.5%`

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

CREATE TABLE "2008_2009_data" (
  "rank" real,
  "airport" text,
  "total_passengers_2008" real,
  "total_passengers_2009" real,
  "change_2008_09" text,
  "aircraft_movements_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `what being the maximum total passengers 2008 with change 2008/09 being 6.5%`:
```sql
                SELECT MAX("total_passengers_2008") FROM "2008_2009_data" WHERE "change_2008_09"='6.5%';
```
## Task
Generate a SQL query to answer the following question:
`what's the airport with aircraft movements 2009 being smaller than 238223.1659471435 and change 2008/09 being 0.5%`

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

CREATE TABLE "2008_2009_data" (
  "rank" real,
  "airport" text,
  "total_passengers_2008" real,
  "total_passengers_2009" real,
  "change_2008_09" text,
  "aircraft_movements_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the airport with aircraft movements 2009 being smaller than 238223.1659471435 and change 2008/09 being 0.5%`:
```sql
                SELECT "airport" FROM "2008_2009_data" WHERE "aircraft_movements_2009"<238223.1659471435 AND "change_2008_09"='0.5%';
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum aircraft movements 2009 with change 2008/09 being 18.2%`

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

CREATE TABLE "2008_2009_data" (
  "rank" real,
  "airport" text,
  "total_passengers_2008" real,
  "total_passengers_2009" real,
  "change_2008_09" text,
  "aircraft_movements_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum aircraft movements 2009 with change 2008/09 being 18.2%`:
```sql
                SELECT MAX("aircraft_movements_2009") FROM "2008_2009_data" WHERE "change_2008_09"='18.2%';
```
## Task
Generate a SQL query to answer the following question:
`what's the total passengers 2008 with change 2008/09 being 6.5%`

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

CREATE TABLE "2008_2009_data" (
  "rank" real,
  "airport" text,
  "total_passengers_2008" real,
  "total_passengers_2009" real,
  "change_2008_09" text,
  "aircraft_movements_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the total passengers 2008 with change 2008/09 being 6.5%`:
```sql
                SELECT "total_passengers_2008" FROM "2008_2009_data" WHERE "change_2008_09"='6.5%';
```
## Task
Generate a SQL query to answer the following question:
`Name the rank of birmingham airport`

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

CREATE TABLE "2007_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2006_2007" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rank of birmingham airport`:
```sql
                SELECT MAX("rank") FROM "2007_data" WHERE "airport"='Birmingham Airport';
```
## Task
Generate a SQL query to answer the following question:
`Name the transit passengers for 171078`

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

CREATE TABLE "2007_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2006_2007" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the transit passengers for 171078`:
```sql
                SELECT MAX("transit_passengers") FROM "2007_data" WHERE "freight_metric_tonnes"=171078;
```
## Task
Generate a SQL query to answer the following question:
`Beata syta is the minimum year for womens singles.`

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

CREATE TABLE "past_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Beata syta is the minimum year for womens singles.`:
```sql
                SELECT MIN("year") FROM "past_winners" WHERE "womens_singles"='Beata Syta';
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum aircraft movements with international passengers being 21002260`

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

CREATE TABLE "2006_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2005_2006" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum aircraft movements with international passengers being 21002260`:
```sql
                SELECT MAX("aircraft_movements") FROM "2006_data" WHERE "international_passengers"=21002260;
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum freight (metric tonnes) with airport being liverpool`

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

CREATE TABLE "2006_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2005_2006" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum freight (metric tonnes) with airport being liverpool`:
```sql
                SELECT MAX("freight_metric_tonnes") FROM "2006_data" WHERE "airport"='Liverpool';
```
## Task
Generate a SQL query to answer the following question:
`what's the airport with % change 2005/2006 being 13.0%`

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

CREATE TABLE "2006_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2005_2006" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the airport with % change 2005/2006 being 13.0%`:
```sql
                SELECT "airport" FROM "2006_data" WHERE "pct_change_2005_2006"='13.0%';
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum aircraft movements with airport being liverpool`

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

CREATE TABLE "2006_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2005_2006" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum aircraft movements with airport being liverpool`:
```sql
                SELECT MAX("aircraft_movements") FROM "2006_data" WHERE "airport"='Liverpool';
```
## Task
Generate a SQL query to answer the following question:
`what's the total passengers with freight (metric tonnes) being 827`

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

CREATE TABLE "2006_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2005_2006" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the total passengers with freight (metric tonnes) being 827`:
```sql
                SELECT "total_passengers" FROM "2006_data" WHERE "freight_metric_tonnes"=827;
```
## Task
Generate a SQL query to answer the following question:
` how many airport with rank being 4`

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

CREATE TABLE "2006_data" (
  "rank" real,
  "airport" text,
  "total_passengers" real,
  "pct_change_2005_2006" text,
  "international_passengers" real,
  "domestic_passengers" real,
  "transit_passengers" real,
  "aircraft_movements" real,
  "freight_metric_tonnes" real
);
### SQL
Given the database schema, here is the SQL query that answers ` how many airport with rank being 4`:
```sql
                SELECT COUNT("airport") FROM "2006_data" WHERE "rank"=4;
```
## Task
Generate a SQL query to answer the following question:
` how many mens singles with mens doubles being pontus jantti lasse lindelöf`

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

CREATE TABLE "past_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many mens singles with mens doubles being pontus jantti lasse lindelöf`:
```sql
                SELECT COUNT("mens_singles") FROM "past_winners" WHERE "mens_doubles"='Pontus Jantti Lasse Lindelöf';
```
## Task
Generate a SQL query to answer the following question:
`who is the the mens doubles with mixed doubles being jimm aalto nina sarnesto`

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

CREATE TABLE "past_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the mens doubles with mixed doubles being jimm aalto nina sarnesto`:
```sql
                SELECT "mens_doubles" FROM "past_winners" WHERE "mixed_doubles"='Jimm Aalto Nina Sarnesto';
```
## Task
Generate a SQL query to answer the following question:
`who is the the mixed doubles with year being 1972`

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

CREATE TABLE "past_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the mixed doubles with year being 1972`:
```sql
                SELECT "mixed_doubles" FROM "past_winners" WHERE "year"=1972;
```
## Task
Generate a SQL query to answer the following question:
`who is the the mens doubles with year being 1978`

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

CREATE TABLE "past_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the mens doubles with year being 1978`:
```sql
                SELECT "mens_doubles" FROM "past_winners" WHERE "year"=1978;
```
## Task
Generate a SQL query to answer the following question:
`who is the the mens singles with mens doubles being kaj lindfors kaj osterberg`

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

CREATE TABLE "past_winners" (
  "year" real,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the mens singles with mens doubles being kaj lindfors kaj osterberg`:
```sql
                SELECT "mens_singles" FROM "past_winners" WHERE "mens_doubles"='Kaj Lindfors Kaj Osterberg';
```
## Task
Generate a SQL query to answer the following question:
`How big (in sq mi)  is the island that's 4065 km2?`

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

CREATE TABLE "islands_over_square_miles_km" (
  "rank" real,
  "islands_name" text,
  "area_sqmi" real,
  "area_km_2" real,
  "location" text,
  "population_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `How big (in sq mi)  is the island that's 4065 km2?`:
```sql
                SELECT "area_sqmi" FROM "islands_over_square_miles_km" WHERE "area_km_2"=4065;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest rank number of those used to rank the islands? `

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

CREATE TABLE "islands_over_square_miles_km" (
  "rank" real,
  "islands_name" text,
  "area_sqmi" real,
  "area_km_2" real,
  "location" text,
  "population_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest rank number of those used to rank the islands? `:
```sql
                SELECT MIN("rank") FROM "islands_over_square_miles_km";
```
## Task
Generate a SQL query to answer the following question:
`What's the name is the island with a population of just 64?`

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

CREATE TABLE "islands_over_square_miles_km" (
  "rank" real,
  "islands_name" text,
  "area_sqmi" real,
  "area_km_2" real,
  "location" text,
  "population_2000" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name is the island with a population of just 64?`:
```sql
                SELECT "islands_name" FROM "islands_over_square_miles_km" WHERE "population_2000"='64';
```
## Task
Generate a SQL query to answer the following question:
`what's the tries against with try bonus being 10`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the tries against with try bonus being 10`:
```sql
                SELECT "tries_against" FROM "2007_2008_table" WHERE "try_bonus"='10';
```
## Task
Generate a SQL query to answer the following question:
`what's the points with played being 22 and points against being 319`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the points with played being 22 and points against being 319`:
```sql
                SELECT "points" FROM "2007_2008_table" WHERE "played"='22' AND "points_against"='319';
```
## Task
Generate a SQL query to answer the following question:
`what's the losing bonus with played being 22 and tries against being 38`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the losing bonus with played being 22 and tries against being 38`:
```sql
                SELECT "losing_bonus" FROM "2007_2008_table" WHERE "played"='22' AND "tries_against"='38';
```
## Task
Generate a SQL query to answer the following question:
`what's the try bonus with club being abercwmboi rfc`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the try bonus with club being abercwmboi rfc`:
```sql
                SELECT "try_bonus" FROM "2007_2008_table" WHERE "club"='Abercwmboi RFC';
```
## Task
Generate a SQL query to answer the following question:
`what's the points for with points against being 556`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the points for with points against being 556`:
```sql
                SELECT "points_for" FROM "2007_2008_table" WHERE "points_against"='556';
```
## Task
Generate a SQL query to answer the following question:
`what's the won with points against being 304`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "won" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the won with points against being 304`:
```sql
                SELECT "won" FROM "2007_2008_table" WHERE "points_against"='304';
```
## Task
Generate a SQL query to answer the following question:
`Where was held the ceremony for the 12th Pride of Britain Awards?`

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

CREATE TABLE "award_ceremonies" (
  "episode" text,
  "original_air_date" text,
  "viewers_millions" text,
  "presenter" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was held the ceremony for the 12th Pride of Britain Awards?`:
```sql
                SELECT "location" FROM "award_ceremonies" WHERE "episode"='12th Pride of Britain Awards';
```
## Task
Generate a SQL query to answer the following question:
`What episode of the Pride of Britain Awards had an audience of 6.06 million viewers?`

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

CREATE TABLE "award_ceremonies" (
  "episode" text,
  "original_air_date" text,
  "viewers_millions" text,
  "presenter" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode of the Pride of Britain Awards had an audience of 6.06 million viewers?`:
```sql
                SELECT "episode" FROM "award_ceremonies" WHERE "viewers_millions"='6.06';
```
## Task
Generate a SQL query to answer the following question:
`How much audience did the 7th Pride of Britain Awards ceremony have?`

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

CREATE TABLE "award_ceremonies" (
  "episode" text,
  "original_air_date" text,
  "viewers_millions" text,
  "presenter" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much audience did the 7th Pride of Britain Awards ceremony have?`:
```sql
                SELECT COUNT("viewers_millions") FROM "award_ceremonies" WHERE "episode"='7th Pride of Britain Awards';
```
## Task
Generate a SQL query to answer the following question:
`what's the vineyard surface (2010) with grand cru being bienvenues-bâtard-montrachet`

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

CREATE TABLE "list_of_grand_crus" (
  "grand_cru" text,
  "region" text,
  "village" text,
  "wine_style" text,
  "vineyard_surface_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the vineyard surface (2010) with grand cru being bienvenues-bâtard-montrachet`:
```sql
                SELECT "vineyard_surface_2010" FROM "list_of_grand_crus" WHERE "grand_cru"='Bienvenues-Bâtard-Montrachet';
```
## Task
Generate a SQL query to answer the following question:
`what's the village with wine style being red wine and vineyard surface (2010) being hectares (acres)`

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

CREATE TABLE "list_of_grand_crus" (
  "grand_cru" text,
  "region" text,
  "village" text,
  "wine_style" text,
  "vineyard_surface_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the village with wine style being red wine and vineyard surface (2010) being hectares (acres)`:
```sql
                SELECT "village" FROM "list_of_grand_crus" WHERE "wine_style"='Red wine' AND "vineyard_surface_2010"='hectares (acres)';
```
## Task
Generate a SQL query to answer the following question:
`what's the wine style with grand cru being romanée-conti`

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

CREATE TABLE "list_of_grand_crus" (
  "grand_cru" text,
  "region" text,
  "village" text,
  "wine_style" text,
  "vineyard_surface_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the wine style with grand cru being romanée-conti`:
```sql
                SELECT "wine_style" FROM "list_of_grand_crus" WHERE "grand_cru"='Romanée-Conti';
```
## Task
Generate a SQL query to answer the following question:
`what's the wine style with village being puligny-montrachet [d ]`

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

CREATE TABLE "list_of_grand_crus" (
  "grand_cru" text,
  "region" text,
  "village" text,
  "wine_style" text,
  "vineyard_surface_2010" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the wine style with village being puligny-montrachet [d ]`:
```sql
                SELECT "wine_style" FROM "list_of_grand_crus" WHERE "village"='Puligny-Montrachet [d ]';
```
## Task
Generate a SQL query to answer the following question:
`How many classes between senior and junior year for world history`

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

CREATE TABLE "table1_13967239_2" (
  "subject" text,
  "freshman_grade_7" text,
  "sophomore_grade_8" text,
  "junior_3rd_year" text,
  "senior_4th_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many classes between senior and junior year for world history`:
```sql
                SELECT COUNT("senior_4th_year") FROM "table1_13967239_2" WHERE "junior_3rd_year"='World History';
```
## Task
Generate a SQL query to answer the following question:
`What is after intermediate algebra`

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

CREATE TABLE "table1_13967239_2" (
  "subject" text,
  "freshman_grade_7" text,
  "sophomore_grade_8" text,
  "junior_3rd_year" text,
  "senior_4th_year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is after intermediate algebra`:
```sql
                SELECT "senior_4th_year" FROM "table1_13967239_2" WHERE "sophomore_grade_8"='Intermediate Algebra';
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum # with original airdate being march 14, 2001`

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

CREATE TABLE "season_2" (
  "num" real,
  "episode_title" text,
  "writer_s" text,
  "director" text,
  "prod_code" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum # with original airdate being march 14, 2001`:
```sql
                SELECT MAX("num") FROM "season_2" WHERE "original_airdate"='March 14, 2001';
```
## Task
Generate a SQL query to answer the following question:
` how many original airdate with writer(s) being becky hartman edwards and director being adam nimoy`

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

CREATE TABLE "season_2" (
  "num" real,
  "episode_title" text,
  "writer_s" text,
  "director" text,
  "prod_code" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many original airdate with writer(s) being becky hartman edwards and director being adam nimoy`:
```sql
                SELECT COUNT("original_airdate") FROM "season_2" WHERE "writer_s"='Becky Hartman Edwards' AND "director"='Adam Nimoy';
```
## Task
Generate a SQL query to answer the following question:
`who is the the writer(s) with original airdate being february 7, 2001`

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

CREATE TABLE "season_2" (
  "num" real,
  "episode_title" text,
  "writer_s" text,
  "director" text,
  "prod_code" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the the writer(s) with original airdate being february 7, 2001`:
```sql
                SELECT "writer_s" FROM "season_2" WHERE "original_airdate"='February 7, 2001';
```
## Task
Generate a SQL query to answer the following question:
`what's the frequency mhz with city of license being chattanooga, tennessee`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" text,
  "city_of_license" text,
  "erp_w" real,
  "height_m_ft" text,
  "fcc_info" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the frequency mhz with city of license being chattanooga, tennessee`:
```sql
                SELECT "frequency_m_hz" FROM "translators" WHERE "city_of_license"='Chattanooga, Tennessee';
```
## Task
Generate a SQL query to answer the following question:
` how many height m ( ft ) with frequency mhz being 100.1`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" text,
  "city_of_license" text,
  "erp_w" real,
  "height_m_ft" text,
  "fcc_info" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many height m ( ft ) with frequency mhz being 100.1`:
```sql
                SELECT COUNT("height_m_ft") FROM "translators" WHERE "frequency_m_hz"='100.1';
```
## Task
Generate a SQL query to answer the following question:
`what's the fcc info with call sign being w221aw`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" text,
  "city_of_license" text,
  "erp_w" real,
  "height_m_ft" text,
  "fcc_info" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the fcc info with call sign being w221aw`:
```sql
                SELECT "fcc_info" FROM "translators" WHERE "call_sign"='W221AW';
```
## Task
Generate a SQL query to answer the following question:
` how many height m ( ft ) with notes being via wccv; formerly w236aj`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" text,
  "city_of_license" text,
  "erp_w" real,
  "height_m_ft" text,
  "fcc_info" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers ` how many height m ( ft ) with notes being via wccv; formerly w236aj`:
```sql
                SELECT COUNT("height_m_ft") FROM "translators" WHERE "notes"='via WCCV; formerly W236AJ';
```
## Task
Generate a SQL query to answer the following question:
`what's the fcc info with call sign being w265av`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" text,
  "city_of_license" text,
  "erp_w" real,
  "height_m_ft" text,
  "fcc_info" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the fcc info with call sign being w265av`:
```sql
                SELECT "fcc_info" FROM "translators" WHERE "call_sign"='W265AV';
```
## Task
Generate a SQL query to answer the following question:
`what's the capacity with team being berwick rangers`

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

CREATE TABLE "stadia_and_attendances" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "highest" real,
  "lowest" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the capacity with team being berwick rangers`:
```sql
                SELECT "capacity" FROM "stadia_and_attendances" WHERE "team"='Berwick Rangers';
```
## Task
Generate a SQL query to answer the following question:
`what's the team with stadium being borough briggs`

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

CREATE TABLE "stadia_and_attendances" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "highest" real,
  "lowest" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the team with stadium being borough briggs`:
```sql
                SELECT "team" FROM "stadia_and_attendances" WHERE "stadium"='Borough Briggs';
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum lowest with average being 734`

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

CREATE TABLE "stadia_and_attendances" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "highest" real,
  "lowest" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum lowest with average being 734`:
```sql
                SELECT MAX("lowest") FROM "stadia_and_attendances" WHERE "average"=734;
```
## Task
Generate a SQL query to answer the following question:
` how many highest with team being forfar athletic`

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

CREATE TABLE "stadia_and_attendances" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "highest" real,
  "lowest" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers ` how many highest with team being forfar athletic`:
```sql
                SELECT COUNT("highest") FROM "stadia_and_attendances" WHERE "team"='Forfar Athletic';
```
## Task
Generate a SQL query to answer the following question:
`what's the bleeding time with condition being factor v deficiency`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the bleeding time with condition being factor v deficiency`:
```sql
                SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Factor V deficiency';
```
## Task
Generate a SQL query to answer the following question:
`what's the bleeding time with condition being liver failure, end-stage`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the bleeding time with condition being liver failure, end-stage`:
```sql
                SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Liver failure, end-stage';
```
## Task
Generate a SQL query to answer the following question:
`what's the bleeding time with platelet count being decreased or unaffected`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the bleeding time with platelet count being decreased or unaffected`:
```sql
                SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "platelet_count"='Decreased or unaffected';
```