cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the attendance of the game against the houston oilers?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance of the game against the houston oilers?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "opponent"='houston oilers';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game on week 7?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game on week 7?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=7;
```
## Task
Generate a SQL query to answer the following question:
`How many fans attended the game at Bye?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many fans attended the game at Bye?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "game_site"='bye';
```
## Task
Generate a SQL query to answer the following question:
`Which winner had a location of Iowa?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which winner had a location of Iowa?`:
```sql
                SELECT "winner" FROM "tournament_results" WHERE "location"='iowa';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent in the final had a partner of Katarina Srebotnik and a championship of wimbledon (4)?`

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

CREATE TABLE "women_s_doubles_10_finals_3_titles_7_run" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent in the final had a partner of Katarina Srebotnik and a championship of wimbledon (4)?`:
```sql
                SELECT "opponents_in_the_final" FROM "women_s_doubles_10_finals_3_titles_7_run" WHERE "partner"='katarina srebotnik' AND "championship"='wimbledon (4)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the partner when the championship was us open on a hard surface?`

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

CREATE TABLE "women_s_doubles_10_finals_3_titles_7_run" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the partner when the championship was us open on a hard surface?`:
```sql
                SELECT "partner" FROM "women_s_doubles_10_finals_3_titles_7_run" WHERE "surface"='hard' AND "championship"='us open';
```
## Task
Generate a SQL query to answer the following question:
`What was the surface for Julie Halard when the final score was 6–3, 6–2?`

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

CREATE TABLE "women_s_doubles_10_finals_3_titles_7_run" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface for Julie Halard when the final score was 6–3, 6–2?`:
```sql
                SELECT "surface" FROM "women_s_doubles_10_finals_3_titles_7_run" WHERE "partner"='julie halard' AND "score_in_the_final"='6–3, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome when the oppenent was serena williams venus williams and had a hard surface?`

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

CREATE TABLE "women_s_doubles_10_finals_3_titles_7_run" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome when the oppenent was serena williams venus williams and had a hard surface?`:
```sql
                SELECT "outcome" FROM "women_s_doubles_10_finals_3_titles_7_run" WHERE "opponents_in_the_final"='serena williams venus williams' AND "surface"='hard';
```
## Task
Generate a SQL query to answer the following question:
`How much Played has Drawn of 2, and a Position larger than 3, and Points smaller than 10?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Played has Drawn of 2, and a Position larger than 3, and Points smaller than 10?`:
```sql
                SELECT COUNT("played") FROM "torneio_rio_s_o_paulo" WHERE "drawn"=2 AND "position">3 AND "points"<10;
```
## Task
Generate a SQL query to answer the following question:
`Which average Against has a Difference of 10, and a Lost smaller than 2?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which average Against has a Difference of 10, and a Lost smaller than 2?`:
```sql
                SELECT AVG("against") FROM "torneio_rio_s_o_paulo" WHERE "difference"='10' AND "lost"<2;
```
## Task
Generate a SQL query to answer the following question:
`How many Attendances have a Result F – A of 0 – 2, and a Date of 31 january 1903?`

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

CREATE TABLE "second_division" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Attendances have a Result F – A of 0 – 2, and a Date of 31 january 1903?`:
```sql
                SELECT AVG("attendance") FROM "second_division" WHERE "result_f_a"='0 – 2' AND "date"='31 january 1903';
```
## Task
Generate a SQL query to answer the following question:
`How many Attendances on 13 april 1903?`

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

CREATE TABLE "second_division" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Attendances on 13 april 1903?`:
```sql
                SELECT "attendance" FROM "second_division" WHERE "date"='13 april 1903';
```
## Task
Generate a SQL query to answer the following question:
`How many Attendances have a H / A of h on 7 march 1903?`

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

CREATE TABLE "second_division" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Attendances have a H / A of h on 7 march 1903?`:
```sql
                SELECT MIN("attendance") FROM "second_division" WHERE "h_a"='h' AND "date"='7 march 1903';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a H / A of a, and a Result F – A of 2 – 0, and a Attendance larger than 30,000?`

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

CREATE TABLE "second_division" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a H / A of a, and a Result F – A of 2 – 0, and a Attendance larger than 30,000?`:
```sql
                SELECT "opponents" FROM "second_division" WHERE "h_a"='a' AND "result_f_a"='2 – 0' AND "attendance">'30,000';
```
## Task
Generate a SQL query to answer the following question:
`When is The Opponents of lincoln city and a H / A of a?`

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

CREATE TABLE "second_division" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `When is The Opponents of lincoln city and a H / A of a?`:
```sql
                SELECT "date" FROM "second_division" WHERE "opponents"='lincoln city' AND "h_a"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the Dec 11 game?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the Dec 11 game?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "december"=11;
```
## Task
Generate a SQL query to answer the following question:
`Which game has an opponent of Phoenix Coyotes and was before Dec 9?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game has an opponent of Phoenix Coyotes and was before Dec 9?`:
```sql
                SELECT AVG("game") FROM "schedule_and_results" WHERE "opponent"='phoenix coyotes' AND "december"<9;
```
## Task
Generate a SQL query to answer the following question:
`What is the December game that led to an 11-13-5 record?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the December game that led to an 11-13-5 record?`:
```sql
                SELECT MAX("december") FROM "schedule_and_results" WHERE "record"='11-13-5';
```
## Task
Generate a SQL query to answer the following question:
`What was the record after game 41?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record after game 41?`:
```sql
                SELECT "record" FROM "schedule_and_results" WHERE "game"=41;
```
## Task
Generate a SQL query to answer the following question:
`Which Overall has a College of florida state, and a Round larger than 2?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Overall has a College of florida state, and a Round larger than 2?`:
```sql
                SELECT SUM("overall") FROM "jacksonville_jaguars_draft_history" WHERE "college"='florida state' AND "round">2;
```
## Task
Generate a SQL query to answer the following question:
`How many Picks have a Position of kicker, and an Overall smaller than 137?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Picks have a Position of kicker, and an Overall smaller than 137?`:
```sql
                SELECT SUM("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "position"='kicker' AND "overall"<137;
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Pick # of 18?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Pick # of 18?`:
```sql
                SELECT "position" FROM "jacksonville_jaguars_draft_history" WHERE "pick_num"=18;
```
## Task
Generate a SQL query to answer the following question:
`Which College has a Round smaller than 7, and a Pick # smaller than 27, and a Name of anthony maddox?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which College has a Round smaller than 7, and a Pick # smaller than 27, and a Name of anthony maddox?`:
```sql
                SELECT "college" FROM "jacksonville_jaguars_draft_history" WHERE "round"<7 AND "pick_num"<27 AND "name"='anthony maddox';
```
## Task
Generate a SQL query to answer the following question:
`How much Overall has a Pick # larger than 9, and a Round larger than 5?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Overall has a Pick # larger than 9, and a Round larger than 5?`:
```sql
                SELECT COUNT("overall") FROM "jacksonville_jaguars_draft_history" WHERE "pick_num">9 AND "round">5;
```
## Task
Generate a SQL query to answer the following question:
`Which score was for the Spurs as visitors with record of 35–16?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which score was for the Spurs as visitors with record of 35–16?`:
```sql
                SELECT "score" FROM "february" WHERE "visitor"='spurs' AND "record"='35–16';
```
## Task
Generate a SQL query to answer the following question:
`Which record was for Warriors at home?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which record was for Warriors at home?`:
```sql
                SELECT "record" FROM "february" WHERE "home"='warriors';
```
## Task
Generate a SQL query to answer the following question:
`English title of malèna had what original title?`

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

CREATE TABLE "2000_2009" (
  "year" real,
  "english_title" text,
  "original_title" text,
  "country" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `English title of malèna had what original title?`:
```sql
                SELECT "original_title" FROM "2000_2009" WHERE "english_title"='malèna';
```
## Task
Generate a SQL query to answer the following question:
`Original title of возвращение / vozvrashcheniye had what English title?`

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

CREATE TABLE "2000_2009" (
  "year" real,
  "english_title" text,
  "original_title" text,
  "country" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Original title of возвращение / vozvrashcheniye had what English title?`:
```sql
                SELECT "english_title" FROM "2000_2009" WHERE "original_title"='возвращение / vozvrashcheniye';
```
## Task
Generate a SQL query to answer the following question:
`Director of christophe barratier had what highest year?`

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

CREATE TABLE "2000_2009" (
  "year" real,
  "english_title" text,
  "original_title" text,
  "country" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Director of christophe barratier had what highest year?`:
```sql
                SELECT MAX("year") FROM "2000_2009" WHERE "director"='christophe barratier';
```
## Task
Generate a SQL query to answer the following question:
`English title of amélie had what year?`

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

CREATE TABLE "2000_2009" (
  "year" real,
  "english_title" text,
  "original_title" text,
  "country" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `English title of amélie had what year?`:
```sql
                SELECT "year" FROM "2000_2009" WHERE "english_title"='amélie';
```
## Task
Generate a SQL query to answer the following question:
`Original title of das leben der anderen had what director?`

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

CREATE TABLE "2000_2009" (
  "year" real,
  "english_title" text,
  "original_title" text,
  "country" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Original title of das leben der anderen had what director?`:
```sql
                SELECT "director" FROM "2000_2009" WHERE "original_title"='das leben der anderen';
```
## Task
Generate a SQL query to answer the following question:
`Who was the director where the role was Fred Ayres?`

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

CREATE TABLE "1931_1940" (
  "date" text,
  "theatre_studio_or_network" text,
  "role" text,
  "dance_partner" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director where the role was Fred Ayres?`:
```sql
                SELECT "director" FROM "1931_1940" WHERE "role"='fred ayres';
```
## Task
Generate a SQL query to answer the following question:
`What was the theatre where Peter P. Peters is the role?`

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

CREATE TABLE "1931_1940" (
  "date" text,
  "theatre_studio_or_network" text,
  "role" text,
  "dance_partner" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the theatre where Peter P. Peters is the role?`:
```sql
                SELECT "theatre_studio_or_network" FROM "1931_1940" WHERE "role"='peter p. peters';
```
## Task
Generate a SQL query to answer the following question:
`Who are the Runner(s)-up with a Margin of 1 stroke?`

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

CREATE TABLE "wins_5" (
  "year" real,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the Runner(s)-up with a Margin of 1 stroke?`:
```sql
                SELECT "runner_s_up" FROM "wins_5" WHERE "margin"='1 stroke';
```
## Task
Generate a SQL query to answer the following question:
`Who are the Runner(s)-up with a Margin of 3 strokes?`

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

CREATE TABLE "wins_5" (
  "year" real,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the Runner(s)-up with a Margin of 3 strokes?`:
```sql
                SELECT "runner_s_up" FROM "wins_5" WHERE "margin"='3 strokes';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Year with of the open championship?`

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

CREATE TABLE "wins_5" (
  "year" real,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Year with of the open championship?`:
```sql
                SELECT MAX("year") FROM "wins_5" WHERE "championship"='the open championship';
```
## Task
Generate a SQL query to answer the following question:
`What is the Winning score in 1956?`

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

CREATE TABLE "wins_5" (
  "year" real,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Winning score in 1956?`:
```sql
                SELECT "winning_score" FROM "wins_5" WHERE "year"=1956;
```
## Task
Generate a SQL query to answer the following question:
`What is the Winning score in 1965?`

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

CREATE TABLE "wins_5" (
  "year" real,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Winning score in 1965?`:
```sql
                SELECT "winning_score" FROM "wins_5" WHERE "year"=1965;
```
## Task
Generate a SQL query to answer the following question:
`What Year had a Runner(s)-up of flory van donck?`

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

CREATE TABLE "wins_5" (
  "year" real,
  "championship" text,
  "54_holes" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Year had a Runner(s)-up of flory van donck?`:
```sql
                SELECT "year" FROM "wins_5" WHERE "runner_s_up"='flory van donck';
```
## Task
Generate a SQL query to answer the following question:
`What is the release Date for the Region in New Zealand ?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release Date for the Region in New Zealand ?`:
```sql
                SELECT "date" FROM "release_history" WHERE "region"='new zealand';
```
## Task
Generate a SQL query to answer the following question:
`What is the release Date for the New Zealand Region?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release Date for the New Zealand Region?`:
```sql
                SELECT "date" FROM "release_history" WHERE "region"='new zealand';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of Catalogue number 602517739468?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of Catalogue number 602517739468?`:
```sql
                SELECT "date" FROM "release_history" WHERE "catalogue"='602517739468';
```
## Task
Generate a SQL query to answer the following question:
`In what Region was the Catalogue number 1785089 released?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalogue" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Region was the Catalogue number 1785089 released?`:
```sql
                SELECT "region" FROM "release_history" WHERE "catalogue"='1785089';
```
## Task
Generate a SQL query to answer the following question:
`Which city of license has a frequency less than 100.1?`

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

CREATE TABLE "low_powered_translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city of license has a frequency less than 100.1?`:
```sql
                SELECT "city_of_license" FROM "low_powered_translators" WHERE "frequency_m_hz"<100.1;
```
## Task
Generate a SQL query to answer the following question:
`What is the ERP W with a call sign at w261cq?`

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

CREATE TABLE "low_powered_translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ERP W with a call sign at w261cq?`:
```sql
                SELECT "erp_w" FROM "low_powered_translators" WHERE "call_sign"='w261cq';
```
## Task
Generate a SQL query to answer the following question:
`What is the average value for ERP W when frequency is more than 100.1?`

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

CREATE TABLE "low_powered_translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average value for ERP W when frequency is more than 100.1?`:
```sql
                SELECT AVG("erp_w") FROM "low_powered_translators" WHERE "frequency_m_hz">100.1;
```
## Task
Generate a SQL query to answer the following question:
`What frequency has call sign w228bg?`

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

CREATE TABLE "low_powered_translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What frequency has call sign w228bg?`:
```sql
                SELECT "frequency_m_hz" FROM "low_powered_translators" WHERE "call_sign"='w228bg';
```
## Task
Generate a SQL query to answer the following question:
`What is the average value of ERP W in Beardstown, Illinois for a frequency greater than 93.5?`

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

CREATE TABLE "low_powered_translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average value of ERP W in Beardstown, Illinois for a frequency greater than 93.5?`:
```sql
                SELECT AVG("erp_w") FROM "low_powered_translators" WHERE "city_of_license"='beardstown, illinois' AND "frequency_m_hz">93.5;
```
## Task
Generate a SQL query to answer the following question:
`What was the sum of the winner's shares for US Senior Opens won by Brad Bryant before 2007?`

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

CREATE TABLE "winners" (
  "year" real,
  "champion" text,
  "country" text,
  "venue" text,
  "location" text,
  "score" text,
  "winner_s_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the sum of the winner's shares for US Senior Opens won by Brad Bryant before 2007?`:
```sql
                SELECT SUM("winner_s_share") FROM "winners" WHERE "champion"='brad bryant' AND "year"<2007;
```
## Task
Generate a SQL query to answer the following question:
`What was the winning score in 2000?`

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

CREATE TABLE "winners" (
  "year" real,
  "champion" text,
  "country" text,
  "venue" text,
  "location" text,
  "score" text,
  "winner_s_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score in 2000?`:
```sql
                SELECT "score" FROM "winners" WHERE "year"=2000;
```
## Task
Generate a SQL query to answer the following question:
`What is the average winner's share won by Billy Casper?`

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

CREATE TABLE "winners" (
  "year" real,
  "champion" text,
  "country" text,
  "venue" text,
  "location" text,
  "score" text,
  "winner_s_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average winner's share won by Billy Casper?`:
```sql
                SELECT AVG("winner_s_share") FROM "winners" WHERE "champion"='billy casper';
```
## Task
Generate a SQL query to answer the following question:
`Name the weekly rank for sunday, june 14, 2009`

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

CREATE TABLE "season_2_2008_2009" (
  "airdate" text,
  "celebrities" text,
  "rating" real,
  "share" real,
  "18_49" text,
  "viewers_millions" real,
  "weekly_rank" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the weekly rank for sunday, june 14, 2009`:
```sql
                SELECT "weekly_rank" FROM "season_2_2008_2009" WHERE "airdate"='sunday, june 14, 2009';
```
## Task
Generate a SQL query to answer the following question:
`Which Pick # is the highest one that has an Overall of 184, and a Round larger than 6?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pick # is the highest one that has an Overall of 184, and a Round larger than 6?`:
```sql
                SELECT MAX("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "overall"=184 AND "round">6;
```
## Task
Generate a SQL query to answer the following question:
`How many picks have an Overall of 114?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many picks have an Overall of 114?`:
```sql
                SELECT COUNT("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "overall"=114;
```
## Task
Generate a SQL query to answer the following question:
`Which Overall is the highest one that has a Name of daimon shelton, and a Round larger than 6?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Overall is the highest one that has a Name of daimon shelton, and a Round larger than 6?`:
```sql
                SELECT MAX("overall") FROM "jacksonville_jaguars_draft_history" WHERE "name"='daimon shelton' AND "round">6;
```
## Task
Generate a SQL query to answer the following question:
`Which Pick # is the highest one that has an Overall larger than 21, and a College of north carolina, and a Round smaller than 3?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pick # is the highest one that has an Overall larger than 21, and a College of north carolina, and a Round smaller than 3?`:
```sql
                SELECT MAX("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "overall">21 AND "college"='north carolina' AND "round"<3;
```
## Task
Generate a SQL query to answer the following question:
`Which Position has an Overall larger than 147, and a Pick # of 21?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has an Overall larger than 147, and a Pick # of 21?`:
```sql
                SELECT "position" FROM "jacksonville_jaguars_draft_history" WHERE "overall">147 AND "pick_num"=21;
```
## Task
Generate a SQL query to answer the following question:
`What is cornell's lowest pick number?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is cornell's lowest pick number?`:
```sql
                SELECT MIN("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "college"='cornell';
```
## Task
Generate a SQL query to answer the following question:
`Which Eviction result has a Net vote of 31.86%?`

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

CREATE TABLE "s_e_voting_system_result" (
  "eviction_no" real,
  "nominee" text,
  "vote_to_save" text,
  "vote_to_evict" text,
  "net_vote" text,
  "eviction_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Eviction result has a Net vote of 31.86%?`:
```sql
                SELECT "eviction_result" FROM "s_e_voting_system_result" WHERE "net_vote"='31.86%';
```
## Task
Generate a SQL query to answer the following question:
`Which Nominee has a Vote to Save of 1.98%?`

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

CREATE TABLE "s_e_voting_system_result" (
  "eviction_no" real,
  "nominee" text,
  "vote_to_save" text,
  "vote_to_evict" text,
  "net_vote" text,
  "eviction_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nominee has a Vote to Save of 1.98%?`:
```sql
                SELECT "nominee" FROM "s_e_voting_system_result" WHERE "vote_to_save"='1.98%';
```
## Task
Generate a SQL query to answer the following question:
`Which Vote to Evict has a Vote to Save of 21.22%?`

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

CREATE TABLE "s_e_voting_system_result" (
  "eviction_no" real,
  "nominee" text,
  "vote_to_save" text,
  "vote_to_evict" text,
  "net_vote" text,
  "eviction_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Vote to Evict has a Vote to Save of 21.22%?`:
```sql
                SELECT "vote_to_evict" FROM "s_e_voting_system_result" WHERE "vote_to_save"='21.22%';
```
## Task
Generate a SQL query to answer the following question:
`Which Vote to Save has an Eviction # smaller than 14, and a Vote to Evict of 5.42%?`

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

CREATE TABLE "s_e_voting_system_result" (
  "eviction_no" real,
  "nominee" text,
  "vote_to_save" text,
  "vote_to_evict" text,
  "net_vote" text,
  "eviction_result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Vote to Save has an Eviction # smaller than 14, and a Vote to Evict of 5.42%?`:
```sql
                SELECT "vote_to_save" FROM "s_e_voting_system_result" WHERE "eviction_no"<14 AND "vote_to_evict"='5.42%';
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank of a nation that had 219,721 in 2012?`

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

CREATE TABLE "top_10_international_visitors_in_vietnam" (
  "rank" real,
  "country" text,
  "2011" real,
  "2012" real,
  "2013_jan_sep_link" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank of a nation that had 219,721 in 2012?`:
```sql
                SELECT AVG("rank") FROM "top_10_international_visitors_in_vietnam" WHERE "2012"='219,721';
```
## Task
Generate a SQL query to answer the following question:
`In what Round was Pick 138?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Round was Pick 138?`:
```sql
                SELECT SUM("round") FROM "draft_picks" WHERE "pick"=138;
```
## Task
Generate a SQL query to answer the following question:
`What is John Crawford's Nationality?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is John Crawford's Nationality?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "player"='john crawford';
```
## Task
Generate a SQL query to answer the following question:
`What is the ERP W for K236AM?`

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

CREATE TABLE "kansas" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ERP W for K236AM?`:
```sql
                SELECT "erp_w" FROM "kansas" WHERE "call_sign"='k236am';
```
## Task
Generate a SQL query to answer the following question:
`What is the average frequency in MHz for stations with an ERP W of 170?`

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

CREATE TABLE "kansas" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average frequency in MHz for stations with an ERP W of 170?`:
```sql
                SELECT AVG("frequency_m_hz") FROM "kansas" WHERE "erp_w"=170;
```
## Task
Generate a SQL query to answer the following question:
`What is K236AM's lowest frequency in MHz?`

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

CREATE TABLE "kansas" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is K236AM's lowest frequency in MHz?`:
```sql
                SELECT MIN("frequency_m_hz") FROM "kansas" WHERE "call_sign"='k236am';
```
## Task
Generate a SQL query to answer the following question:
`What class is assigned to frequencies lower than 90.5?`

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

CREATE TABLE "kansas" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class is assigned to frequencies lower than 90.5?`:
```sql
                SELECT "class" FROM "kansas" WHERE "frequency_m_hz"<90.5;
```
## Task
Generate a SQL query to answer the following question:
`What class is assigned to frequencies larger than 89.3 with an ERP W of 250?`

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

CREATE TABLE "kansas" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class is assigned to frequencies larger than 89.3 with an ERP W of 250?`:
```sql
                SELECT "class" FROM "kansas" WHERE "frequency_m_hz">89.3 AND "erp_w"=250;
```
## Task
Generate a SQL query to answer the following question:
`What did st. louis score at home?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did st. louis score at home?`:
```sql
                SELECT "score" FROM "march" WHERE "home"='st. louis';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game on week 1?`

### 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 `What was the result of the game on week 1?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the game on October 25, 1959 with more than 26,198 fans in attendance?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the game on October 25, 1959 with more than 26,198 fans in attendance?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance">'26,198' AND "date"='october 25, 1959';
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the game on week 13?`

### 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,
  "time_et" text,
  "game_site" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the game on week 13?`:
```sql
                SELECT "record" FROM "schedule" WHERE "week"=13;
```
## Task
Generate a SQL query to answer the following question:
`Texas Rate smaller than 32.9, and a U.S. Rate larger than 5.6 is what highest killeen rate?`

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

CREATE TABLE "crime" (
  "crime" text,
  "reported_offenses" real,
  "killeen_rate" real,
  "texas_rate" real,
  "u_s_rate" real
);
### SQL
Given the database schema, here is the SQL query that answers `Texas Rate smaller than 32.9, and a U.S. Rate larger than 5.6 is what highest killeen rate?`:
```sql
                SELECT MAX("killeen_rate") FROM "crime" WHERE "texas_rate"<32.9 AND "u_s_rate">5.6;
```
## Task
Generate a SQL query to answer the following question:
`Reported Offenses larger than 216, and a U.S. Rate smaller than 3274, and a Texas Rate smaller than 2688.9, and a Crime of violent crime has what killeen rate?`

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

CREATE TABLE "crime" (
  "crime" text,
  "reported_offenses" real,
  "killeen_rate" real,
  "texas_rate" real,
  "u_s_rate" real
);
### SQL
Given the database schema, here is the SQL query that answers `Reported Offenses larger than 216, and a U.S. Rate smaller than 3274, and a Texas Rate smaller than 2688.9, and a Crime of violent crime has what killeen rate?`:
```sql
                SELECT SUM("killeen_rate") FROM "crime" WHERE "reported_offenses">216 AND "u_s_rate"<3274 AND "texas_rate"<2688.9 AND "crime"='violent crime';
```
## Task
Generate a SQL query to answer the following question:
`Killeen Rate of 511.6, and a Texas Rate smaller than 314.4 is the lowest reported offenses?`

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

CREATE TABLE "crime" (
  "crime" text,
  "reported_offenses" real,
  "killeen_rate" real,
  "texas_rate" real,
  "u_s_rate" real
);
### SQL
Given the database schema, here is the SQL query that answers `Killeen Rate of 511.6, and a Texas Rate smaller than 314.4 is the lowest reported offenses?`:
```sql
                SELECT MIN("reported_offenses") FROM "crime" WHERE "killeen_rate"=511.6 AND "texas_rate"<314.4;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the type for category of mouse and attribute of ondblclick`

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

CREATE TABLE "common_w3_c_events" (
  "category" text,
  "type" text,
  "attribute" text,
  "bubbles" text,
  "cancelable" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the type for category of mouse and attribute of ondblclick`:
```sql
                SELECT "type" FROM "common_w3_c_events" WHERE "category"='mouse' AND "attribute"='ondblclick';
```
## Task
Generate a SQL query to answer the following question:
`Name the type with cancelable of no and attribute of ondragend`

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

CREATE TABLE "common_w3_c_events" (
  "category" text,
  "type" text,
  "attribute" text,
  "bubbles" text,
  "cancelable" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the type with cancelable of no and attribute of ondragend`:
```sql
                SELECT "type" FROM "common_w3_c_events" WHERE "cancelable"='no' AND "attribute"='ondragend';
```