cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what is the rank of the cinema when the number of sites is more than 62 and the circuit is cineplex entertainment?`

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

CREATE TABLE "north_america" (
  "rank" real,
  "circuit" text,
  "headquarters" text,
  "screens" real,
  "sites" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the rank of the cinema when the number of sites is more than 62 and the circuit is cineplex entertainment?`:
```sql
                SELECT SUM("rank") FROM "north_america" WHERE "sites">62 AND "circuit"='cineplex entertainment';
```
## Task
Generate a SQL query to answer the following question:
`what is the number of sites when the number of screens is 687 and rank is more than 7?`

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

CREATE TABLE "north_america" (
  "rank" real,
  "circuit" text,
  "headquarters" text,
  "screens" real,
  "sites" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of sites when the number of screens is 687 and rank is more than 7?`:
```sql
                SELECT AVG("sites") FROM "north_america" WHERE "screens"=687 AND "rank">7;
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest number of sites when the headquarters are in columbus, ga and the rank is smaller than 4?`

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

CREATE TABLE "north_america" (
  "rank" real,
  "circuit" text,
  "headquarters" text,
  "screens" real,
  "sites" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest number of sites when the headquarters are in columbus, ga and the rank is smaller than 4?`:
```sql
                SELECT MIN("sites") FROM "north_america" WHERE "headquarters"='columbus, ga' AND "rank"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the Other transliteration for value 1 000?`

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

CREATE TABLE "numbers_from_100_10_000_000" (
  "value" text,
  "khmer" real,
  "word_form" text,
  "ungegn" text,
  "ala_lc" text,
  "other" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Other transliteration for value 1 000?`:
```sql
                SELECT "other" FROM "numbers_from_100_10_000_000" WHERE "value"='1 000';
```
## Task
Generate a SQL query to answer the following question:
`What is the word form for the ALA-LC transliteration of muay s″ain?`

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

CREATE TABLE "numbers_from_100_10_000_000" (
  "value" text,
  "khmer" real,
  "word_form" text,
  "ungegn" text,
  "ala_lc" text,
  "other" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the word form for the ALA-LC transliteration of muay s″ain?`:
```sql
                SELECT "word_form" FROM "numbers_from_100_10_000_000" WHERE "ala_lc"='muay s″ain';
```
## Task
Generate a SQL query to answer the following question:
`What number value has the Other transliteration of muoy roy?`

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

CREATE TABLE "numbers_from_100_10_000_000" (
  "value" text,
  "khmer" real,
  "word_form" text,
  "ungegn" text,
  "ala_lc" text,
  "other" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number value has the Other transliteration of muoy roy?`:
```sql
                SELECT "value" FROM "numbers_from_100_10_000_000" WHERE "other"='muoy roy';
```
## Task
Generate a SQL query to answer the following question:
`What is the word form for the ALA-LC transliteration of muay bân?`

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

CREATE TABLE "numbers_from_100_10_000_000" (
  "value" text,
  "khmer" real,
  "word_form" text,
  "ungegn" text,
  "ala_lc" text,
  "other" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the word form for the ALA-LC transliteration of muay bân?`:
```sql
                SELECT "word_form" FROM "numbers_from_100_10_000_000" WHERE "ala_lc"='muay bân';
```
## Task
Generate a SQL query to answer the following question:
`Name the loss when the record is 76-81`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the loss when the record is 76-81`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='76-81';
```
## Task
Generate a SQL query to answer the following question:
`Which average bronze had a silver greater than 2 and a gold larger than 7?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which average bronze had a silver greater than 2 and a gold larger than 7?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "silver">2 AND "gold">7;
```
## Task
Generate a SQL query to answer the following question:
`When the total was 11 and silver was greater than 4 what was the highest gold?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the total was 11 and silver was greater than 4 what was the highest gold?`:
```sql
                SELECT MAX("gold") FROM "medal_table" WHERE "total"=11 AND "silver">4;
```
## Task
Generate a SQL query to answer the following question:
`How many bronze had a total less than 4 and gold bigger than 1?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many bronze had a total less than 4 and gold bigger than 1?`:
```sql
                SELECT COUNT("bronze") FROM "medal_table" WHERE "total"<4 AND "gold">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the enrollment associated with a capacity greater then 35,650?`

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

CREATE TABLE "canada_west_football_conference_hardy_tr" (
  "institution" text,
  "team" text,
  "city" text,
  "province" text,
  "first_season" real,
  "head_coach" text,
  "enrollment" real,
  "endowment" text,
  "football_stadium" text,
  "capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment associated with a capacity greater then 35,650?`:
```sql
                SELECT MIN("enrollment") FROM "canada_west_football_conference_hardy_tr" WHERE "capacity">'35,650';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has an Opposing Pitcher of jack morris, and an Inning of 4th?`

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

CREATE TABLE "mc_gwire_s_rookie_record_49_home_runs" (
  "home_run" real,
  "game" real,
  "date" text,
  "inning" text,
  "location" text,
  "opposing_pitcher" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has an Opposing Pitcher of jack morris, and an Inning of 4th?`:
```sql
                SELECT "date" FROM "mc_gwire_s_rookie_record_49_home_runs" WHERE "opposing_pitcher"='jack morris' AND "inning"='4th';
```
## Task
Generate a SQL query to answer the following question:
`Which average Home Run has a Game of 89?`

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

CREATE TABLE "mc_gwire_s_rookie_record_49_home_runs" (
  "home_run" real,
  "game" real,
  "date" text,
  "inning" text,
  "location" text,
  "opposing_pitcher" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which average Home Run has a Game of 89?`:
```sql
                SELECT AVG("home_run") FROM "mc_gwire_s_rookie_record_49_home_runs" WHERE "game"=89;
```
## Task
Generate a SQL query to answer the following question:
`Which team has a Home Run of 27?`

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

CREATE TABLE "mc_gwire_s_rookie_record_49_home_runs" (
  "home_run" real,
  "game" real,
  "date" text,
  "inning" text,
  "location" text,
  "opposing_pitcher" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has a Home Run of 27?`:
```sql
                SELECT "team" FROM "mc_gwire_s_rookie_record_49_home_runs" WHERE "home_run"=27;
```
## Task
Generate a SQL query to answer the following question:
`Which Assist/pass has a Score of 1-0, and a Goal of 5?`

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

CREATE TABLE "international_goals" (
  "goal" text,
  "location" text,
  "lineup" text,
  "assist_pass" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Assist/pass has a Score of 1-0, and a Goal of 5?`:
```sql
                SELECT "assist_pass" FROM "international_goals" WHERE "score"='1-0' AND "goal"='5';
```
## Task
Generate a SQL query to answer the following question:
`Which Assist/pass has a Result of 6-2?`

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

CREATE TABLE "international_goals" (
  "goal" text,
  "location" text,
  "lineup" text,
  "assist_pass" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Assist/pass has a Result of 6-2?`:
```sql
                SELECT "assist_pass" FROM "international_goals" WHERE "result"='6-2';
```
## Task
Generate a SQL query to answer the following question:
`Which Assist/pass has a Goal of 5?`

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

CREATE TABLE "international_goals" (
  "goal" text,
  "location" text,
  "lineup" text,
  "assist_pass" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Assist/pass has a Goal of 5?`:
```sql
                SELECT "assist_pass" FROM "international_goals" WHERE "goal"='5';
```
## Task
Generate a SQL query to answer the following question:
`Which location has a Goal of 2?`

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

CREATE TABLE "international_goals" (
  "goal" text,
  "location" text,
  "lineup" text,
  "assist_pass" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location has a Goal of 2?`:
```sql
                SELECT "location" FROM "international_goals" WHERE "goal"='2';
```
## Task
Generate a SQL query to answer the following question:
`Which lineup has a Location of usa virginia beach?`

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

CREATE TABLE "international_goals" (
  "goal" text,
  "location" text,
  "lineup" text,
  "assist_pass" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which lineup has a Location of usa virginia beach?`:
```sql
                SELECT "lineup" FROM "international_goals" WHERE "location"='usa virginia beach';
```
## Task
Generate a SQL query to answer the following question:
`Which date had a score of 5-1?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date had a score of 5-1?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "score"='5-1';
```
## Task
Generate a SQL query to answer the following question:
`What result had a score of 2-1?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What result had a score of 2-1?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "score"='2-1';
```
## Task
Generate a SQL query to answer the following question:
`Which date had a score of 3-2?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date had a score of 3-2?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "score"='3-2';
```
## Task
Generate a SQL query to answer the following question:
`What is the oldest model Porsche v12 that has points less than or equal to 0.`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the oldest model Porsche v12 that has points less than or equal to 0.`:
```sql
                SELECT MIN("year") FROM "complete_formula_one_world_championship_" WHERE "engine"='porsche v12' AND "pts"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which design uses the theme alpine skiing?`

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

CREATE TABLE "1992_winter_olympics" (
  "date_of_issue" text,
  "theme" text,
  "denomination" text,
  "printer" text,
  "quantity" text,
  "design" text,
  "perforation" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which design uses the theme alpine skiing?`:
```sql
                SELECT "design" FROM "1992_winter_olympics" WHERE "theme"='alpine skiing';
```
## Task
Generate a SQL query to answer the following question:
`When did the Theme of bobsleigh release?`

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

CREATE TABLE "1992_winter_olympics" (
  "date_of_issue" text,
  "theme" text,
  "denomination" text,
  "printer" text,
  "quantity" text,
  "design" text,
  "perforation" text,
  "first_day_cover_cancellation" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the Theme of bobsleigh release?`:
```sql
                SELECT "date_of_issue" FROM "1992_winter_olympics" WHERE "theme"='bobsleigh';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest pts after 1952 with connaught type a?`

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

CREATE TABLE "complete_world_championship_formula_one_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest pts after 1952 with connaught type a?`:
```sql
                SELECT MAX("pts") FROM "complete_world_championship_formula_one_" WHERE "year">1952 AND "chassis"='connaught type a';
```
## Task
Generate a SQL query to answer the following question:
`Who did the Chiefs play in Week 8?`

### 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 `Who did the Chiefs play in Week 8?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"=8;
```
## Task
Generate a SQL query to answer the following question:
`Which week was on October 11, 1970 and an attendance larger than 41,379.`

### 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 `Which week was on October 11, 1970 and an attendance larger than 41,379.`:
```sql
                SELECT "week" FROM "schedule" WHERE "attendance">'41,379' AND "date"='october 11, 1970';
```
## Task
Generate a SQL query to answer the following question:
`On what surface was the 26 August 2001 tournament played?`

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

CREATE TABLE "doubles_runner_up_16" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what surface was the 26 August 2001 tournament played?`:
```sql
                SELECT "surface" FROM "doubles_runner_up_16" WHERE "date"='26 august 2001';
```
## Task
Generate a SQL query to answer the following question:
`What is the average capacity for 150 suites?`

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

CREATE TABLE "project_overview" (
  "project" text,
  "year" text,
  "location" text,
  "capacity" real,
  "suites" text,
  "architect" text,
  "cost" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average capacity for 150 suites?`:
```sql
                SELECT AVG("capacity") FROM "project_overview" WHERE "suites"='150';
```
## Task
Generate a SQL query to answer the following question:
`Where is the Eren Talu bidding project located?`

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

CREATE TABLE "project_overview" (
  "project" text,
  "year" text,
  "location" text,
  "capacity" real,
  "suites" text,
  "architect" text,
  "cost" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the Eren Talu bidding project located?`:
```sql
                SELECT "location" FROM "project_overview" WHERE "project"='eren talu bidding project';
```
## Task
Generate a SQL query to answer the following question:
`Which location has a capacity larger than 52,000?`

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

CREATE TABLE "project_overview" (
  "project" text,
  "year" text,
  "location" text,
  "capacity" real,
  "suites" text,
  "architect" text,
  "cost" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location has a capacity larger than 52,000?`:
```sql
                SELECT "location" FROM "project_overview" WHERE "capacity">'52,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest capacity in Aslantepe in 2002-2005?`

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

CREATE TABLE "project_overview" (
  "project" text,
  "year" text,
  "location" text,
  "capacity" real,
  "suites" text,
  "architect" text,
  "cost" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest capacity in Aslantepe in 2002-2005?`:
```sql
                SELECT MAX("capacity") FROM "project_overview" WHERE "location"='aslantepe' AND "year"='2002-2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the UNGEGN, when the Khmer is greater than ១០០០០០០០០?`

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

CREATE TABLE "numbers_from_100_10_000_000" (
  "value" text,
  "khmer" real,
  "word_form" text,
  "ungegn" text,
  "ala_lc" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the UNGEGN, when the Khmer is greater than ១០០០០០០០០?`:
```sql
                SELECT "ungegn" FROM "numbers_from_100_10_000_000" WHERE "khmer">'១០០០០០០០០';
```
## Task
Generate a SQL query to answer the following question:
`What is the Value, when the Notes are literally "one hundred million"?`

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

CREATE TABLE "numbers_from_100_10_000_000" (
  "value" text,
  "khmer" real,
  "word_form" text,
  "ungegn" text,
  "ala_lc" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Value, when the Notes are literally "one hundred million"?`:
```sql
                SELECT "value" FROM "numbers_from_100_10_000_000" WHERE "notes"='literally \"one hundred million\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the Word Form, when the Notes are literally "one hundred thousand"?`

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

CREATE TABLE "numbers_from_100_10_000_000" (
  "value" text,
  "khmer" real,
  "word_form" text,
  "ungegn" text,
  "ala_lc" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Word Form, when the Notes are literally "one hundred thousand"?`:
```sql
                SELECT "word_form" FROM "numbers_from_100_10_000_000" WHERE "notes"='literally \"one hundred thousand\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the Word Form, when the Khmer is greater than ១០០០០០, and the UNGEGN is (muŏy) dáb leăn?`

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

CREATE TABLE "numbers_from_100_10_000_000" (
  "value" text,
  "khmer" real,
  "word_form" text,
  "ungegn" text,
  "ala_lc" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Word Form, when the Khmer is greater than ១០០០០០, and the UNGEGN is (muŏy) dáb leăn?`:
```sql
                SELECT "word_form" FROM "numbers_from_100_10_000_000" WHERE "khmer">'១០០០០០' AND "ungegn"='(muŏy) dáb leăn';
```
## Task
Generate a SQL query to answer the following question:
`What is the total amount of Khmer, when the Notes are literally "one hundred thousand"?`

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

CREATE TABLE "numbers_from_100_10_000_000" (
  "value" text,
  "khmer" real,
  "word_form" text,
  "ungegn" text,
  "ala_lc" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total amount of Khmer, when the Notes are literally "one hundred thousand"?`:
```sql
                SELECT COUNT("khmer") FROM "numbers_from_100_10_000_000" WHERE "notes"='literally \"one hundred thousand\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the UNGEGN, when the Value is 10 000?`

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

CREATE TABLE "numbers_from_100_10_000_000" (
  "value" text,
  "khmer" real,
  "word_form" text,
  "ungegn" text,
  "ala_lc" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the UNGEGN, when the Value is 10 000?`:
```sql
                SELECT "ungegn" FROM "numbers_from_100_10_000_000" WHERE "value"='10 000';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2008 for wta premier mandatory tournaments of 2007`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2008 for wta premier mandatory tournaments of 2007`:
```sql
                SELECT "2008" FROM "singles_performance_timeline" WHERE "2007"='wta premier mandatory tournaments';
```
## Task
Generate a SQL query to answer the following question:
`Name the tournament of beijing`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tournament of beijing`:
```sql
                SELECT "2011" FROM "singles_performance_timeline" WHERE "tournament"='beijing';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2009 for 2007 of 2r and tournament of wimbledon`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2009 for 2007 of 2r and tournament of wimbledon`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "2007"='2r' AND "tournament"='wimbledon';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2011 for 2010 of olympic games`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2011 for 2010 of olympic games`:
```sql
                SELECT "2011" FROM "singles_performance_timeline" WHERE "2010"='olympic games';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2011 for tokyo tournament`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2011 for tokyo tournament`:
```sql
                SELECT "2011" FROM "singles_performance_timeline" WHERE "tournament"='tokyo';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2009 for wta premier mandatory tournaments`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2009 for wta premier mandatory tournaments`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "tournament"='wta premier mandatory tournaments';
```
## Task
Generate a SQL query to answer the following question:
`Who won Mixed Doubles the year that Marija Ulitina won the Women's Singles?`

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

CREATE TABLE "previous_winners" (
  "year" text,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won Mixed Doubles the year that Marija Ulitina won the Women's Singles?`:
```sql
                SELECT "mixed_doubles" FROM "previous_winners" WHERE "women_s_singles"='marija ulitina';
```
## Task
Generate a SQL query to answer the following question:
`Who won Men's singles the year that Hilde Themel won Women's singles?`

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

CREATE TABLE "previous_winners" (
  "year" text,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won Men's singles the year that Hilde Themel won Women's singles?`:
```sql
                SELECT "men_s_singles" FROM "previous_winners" WHERE "women_s_singles"='hilde themel';
```
## Task
Generate a SQL query to answer the following question:
`Who won Mixed doubles the year that Pablo Abian won Men's singles?`

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

CREATE TABLE "previous_winners" (
  "year" text,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won Mixed doubles the year that Pablo Abian won Men's singles?`:
```sql
                SELECT "mixed_doubles" FROM "previous_winners" WHERE "men_s_singles"='pablo abian';
```
## Task
Generate a SQL query to answer the following question:
`Which year did Ray Crawford the Kurtis Kraft 500g chassis?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which year did Ray Crawford the Kurtis Kraft 500g chassis?`:
```sql
                SELECT "year" FROM "complete_formula_one_world_championship_" WHERE "chassis"='kurtis kraft 500g';
```
## Task
Generate a SQL query to answer the following question:
`What city had a july high below 84, and a january low of 34.3?`

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

CREATE TABLE "averages" (
  "city" text,
  "january_avg_high_f" text,
  "january_avg_low_f" text,
  "july_avg_high_f" real,
  "july_avg_low_f" real
);
### SQL
Given the database schema, here is the SQL query that answers `What city had a july high below 84, and a january low of 34.3?`:
```sql
                SELECT "city" FROM "averages" WHERE "july_avg_high_f"<84 AND "january_avg_low_f"='34.3';
```
## Task
Generate a SQL query to answer the following question:
`What is the july average low associated with a january average high of 30.4?`

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

CREATE TABLE "averages" (
  "city" text,
  "january_avg_high_f" text,
  "january_avg_low_f" text,
  "july_avg_high_f" real,
  "july_avg_low_f" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the july average low associated with a january average high of 30.4?`:
```sql
                SELECT COUNT("july_avg_low_f") FROM "averages" WHERE "january_avg_high_f"='30.4';
```
## Task
Generate a SQL query to answer the following question:
`Which class has an identifier of CBUA-FM?`

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

CREATE TABLE "s_rebroadcaster_of_cfwh_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which class has an identifier of CBUA-FM?`:
```sql
                SELECT "class" FROM "s_rebroadcaster_of_cfwh_fm" WHERE "identifier"='cbua-fm';
```
## Task
Generate a SQL query to answer the following question:
`What is the city of license for the frequency 90.1 FM?`

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

CREATE TABLE "s_rebroadcaster_of_cfwh_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the city of license for the frequency 90.1 FM?`:
```sql
                SELECT "city_of_license" FROM "s_rebroadcaster_of_cfwh_fm" WHERE "frequency"='90.1 fm';
```
## Task
Generate a SQL query to answer the following question:
`What is the power when the city of license is Beaver Creek?`

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

CREATE TABLE "s_rebroadcaster_of_cfwh_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power when the city of license is Beaver Creek?`:
```sql
                SELECT "power" FROM "s_rebroadcaster_of_cfwh_fm" WHERE "city_of_license"='beaver creek';
```
## Task
Generate a SQL query to answer the following question:
`What is the city of license when the class is LP and the identifier is CBDK?`

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

CREATE TABLE "s_rebroadcaster_of_cfwh_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the city of license when the class is LP and the identifier is CBDK?`:
```sql
                SELECT "city_of_license" FROM "s_rebroadcaster_of_cfwh_fm" WHERE "class"='lp' AND "identifier"='cbdk';
```
## Task
Generate a SQL query to answer the following question:
`What is the class when the frequency is 560 AM?`

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

CREATE TABLE "s_rebroadcaster_of_cfwh_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class when the frequency is 560 AM?`:
```sql
                SELECT "class" FROM "s_rebroadcaster_of_cfwh_fm" WHERE "frequency"='560 am';
```
## Task
Generate a SQL query to answer the following question:
`What are the smallest assets with a Company of piraeus bank, and a Revenue (US$ billion) smaller than 3.9?`

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

CREATE TABLE "forbes_global_2000" (
  "rank" real,
  "company" text,
  "revenues_us_billion" real,
  "profit_us_billion" real,
  "assets_us_billion" real,
  "market_value_us_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the smallest assets with a Company of piraeus bank, and a Revenue (US$ billion) smaller than 3.9?`:
```sql
                SELECT MIN("assets_us_billion") FROM "forbes_global_2000" WHERE "company"='piraeus bank' AND "revenues_us_billion"<3.9;
```
## Task
Generate a SQL query to answer the following question:
`What is the average market value with a revenue greater than 6.2, a Company of national bank of greece, and a Rank smaller than 1?`

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

CREATE TABLE "forbes_global_2000" (
  "rank" real,
  "company" text,
  "revenues_us_billion" real,
  "profit_us_billion" real,
  "assets_us_billion" real,
  "market_value_us_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average market value with a revenue greater than 6.2, a Company of national bank of greece, and a Rank smaller than 1?`:
```sql
                SELECT AVG("market_value_us_billion") FROM "forbes_global_2000" WHERE "revenues_us_billion">6.2 AND "company"='national bank of greece' AND "rank"<1;
```
## Task
Generate a SQL query to answer the following question:
`Which company has a market value greater than 1, Assets (US$ billion) smaller than 10.7, a Rank smaller than 10, and revenue (US$ billion) of 9.3?`

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

CREATE TABLE "forbes_global_2000" (
  "rank" real,
  "company" text,
  "revenues_us_billion" real,
  "profit_us_billion" real,
  "assets_us_billion" real,
  "market_value_us_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which company has a market value greater than 1, Assets (US$ billion) smaller than 10.7, a Rank smaller than 10, and revenue (US$ billion) of 9.3?`:
```sql
                SELECT "company" FROM "forbes_global_2000" WHERE "market_value_us_billion">1 AND "assets_us_billion"<10.7 AND "rank"<10 AND "revenues_us_billion"=9.3;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the venue with result of eng by 6 wkts`

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

CREATE TABLE "west_indies_in_england" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the venue with result of eng by 6 wkts`:
```sql
                SELECT "venue" FROM "west_indies_in_england" WHERE "result"='eng by 6 wkts';
```
## Task
Generate a SQL query to answer the following question:
`Name the Home captain for venue of the oval`

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

CREATE TABLE "west_indies_in_england" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Home captain for venue of the oval`:
```sql
                SELECT "home_captain" FROM "west_indies_in_england" WHERE "venue"='the oval';
```
## Task
Generate a SQL query to answer the following question:
`Name the away captain with result of wi by 9 wkts`

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

CREATE TABLE "west_indies_in_england" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the away captain with result of wi by 9 wkts`:
```sql
                SELECT "away_captain" FROM "west_indies_in_england" WHERE "result"='wi by 9 wkts';
```
## Task
Generate a SQL query to answer the following question:
`Name the venue for eng by 6 wkts`

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

CREATE TABLE "west_indies_in_england" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the venue for eng by 6 wkts`:
```sql
                SELECT "venue" FROM "west_indies_in_england" WHERE "result"='eng by 6 wkts';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the last performance when the style is street dance and the name is George Maguire?`

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

CREATE TABLE "billy_elliot" (
  "status" text,
  "name" text,
  "first_performance" text,
  "last_performance" text,
  "style" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the last performance when the style is street dance and the name is George Maguire?`:
```sql
                SELECT "last_performance" FROM "billy_elliot" WHERE "style"='street dance' AND "name"='george maguire';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the last performance for Liam Mower?`

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

CREATE TABLE "billy_elliot" (
  "status" text,
  "name" text,
  "first_performance" text,
  "last_performance" text,
  "style" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the last performance for Liam Mower?`:
```sql
                SELECT "last_performance" FROM "billy_elliot" WHERE "name"='liam mower';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the Weslake v12 get in 1966?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the Weslake v12 get in 1966?`:
```sql
                SELECT MAX("points") FROM "complete_formula_one_world_championship_" WHERE "engine"='weslake v12' AND "year"<1966;
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the team in 1965 driving the Ferrari 158?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the team in 1965 driving the Ferrari 158?`:
```sql
                SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "year"=1965 AND "chassis"='ferrari 158';
```
## Task
Generate a SQL query to answer the following question:
`What Chassis had a Weslake v12 in it?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Chassis had a Weslake v12 in it?`:
```sql
                SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "engine"='weslake v12';
```
## Task
Generate a SQL query to answer the following question:
`Name the copaxone with mitoxantrone of no and betaseron (beta-1b) of no`

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

CREATE TABLE "summary_table" (
  "interferon_beta_1a" text,
  "betaseron_beta_1b" text,
  "copaxone" text,
  "mitoxantrone" text,
  "tysabri" text,
  "fingolimod_gylenya" text,
  "teriflunomide" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the copaxone with mitoxantrone of no and betaseron (beta-1b) of no`:
```sql
                SELECT "copaxone" FROM "summary_table" WHERE "mitoxantrone"='no' AND "betaseron_beta_1b"='no';
```
## Task
Generate a SQL query to answer the following question:
`Who has a career that has test larger than 41, catches over 33, and a total dismissals rate of 147?`

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

CREATE TABLE "see_also" (
  "player" text,
  "test_career" text,
  "tests" real,
  "catches" real,
  "stumpings" real,
  "total_dismissals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a career that has test larger than 41, catches over 33, and a total dismissals rate of 147?`:
```sql
                SELECT "test_career" FROM "see_also" WHERE "tests">41 AND "catches">33 AND "total_dismissals"=147;
```
## Task
Generate a SQL query to answer the following question:
`What is the average dismissals of 83 test and catches less than 33?`

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

CREATE TABLE "see_also" (
  "player" text,
  "test_career" text,
  "tests" real,
  "catches" real,
  "stumpings" real,
  "total_dismissals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average dismissals of 83 test and catches less than 33?`:
```sql
                SELECT AVG("total_dismissals") FROM "see_also" WHERE "tests"=83 AND "catches"<33;
```
## Task
Generate a SQL query to answer the following question:
`Which winner has a points classification of Tony Rominger at stage 17?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which winner has a points classification of Tony Rominger at stage 17?`:
```sql
                SELECT "winner" FROM "classification_leadership_by_stage" WHERE "points_classification"='tony rominger' AND "stage"='17';
```
## Task
Generate a SQL query to answer the following question:
`Which stage has a mountains classification of Mariano Piccoli, a points classification of Mario Cipollini and was won by Laudelino Cubino?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stage has a mountains classification of Mariano Piccoli, a points classification of Mario Cipollini and was won by Laudelino Cubino?`:
```sql
                SELECT "stage" FROM "classification_leadership_by_stage" WHERE "mountains_classification"='mariano piccoli' AND "points_classification"='mario cipollini' AND "winner"='laudelino cubino';
```
## Task
Generate a SQL query to answer the following question:
`Who won stage 16?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won stage 16?`:
```sql
                SELECT "winner" FROM "classification_leadership_by_stage" WHERE "stage"='16';
```
## Task
Generate a SQL query to answer the following question:
`Which mountains classification has a general classification of Tony Rominger and was won by Maurizio Fondriest?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which mountains classification has a general classification of Tony Rominger and was won by Maurizio Fondriest?`:
```sql
                SELECT "mountains_classification" FROM "classification_leadership_by_stage" WHERE "general_classification"='tony rominger' AND "winner"='maurizio fondriest';
```