cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the listed year that has a rank smaller than 8 and moving from Olympiacos?`

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

CREATE TABLE "incoming_transfers" (
  "rank" real,
  "year" real,
  "name" text,
  "moving_from" text,
  "moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the listed year that has a rank smaller than 8 and moving from Olympiacos?`:
```sql
                SELECT "year" FROM "incoming_transfers" WHERE "rank"<8 AND "moving_from"='olympiacos';
```
## Task
Generate a SQL query to answer the following question:
`Which team plays in Goa, Salcette?`

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

CREATE TABLE "clubs_stadiums_and_locations" (
  "team" text,
  "city" text,
  "state" text,
  "home_venue" text,
  "capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team plays in Goa, Salcette?`:
```sql
                SELECT "home_venue" FROM "clubs_stadiums_and_locations" WHERE "state"='goa' AND "city"='salcette';
```
## Task
Generate a SQL query to answer the following question:
`Where is the home venue of Bengaluru FC?`

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

CREATE TABLE "clubs_stadiums_and_locations" (
  "team" text,
  "city" text,
  "state" text,
  "home_venue" text,
  "capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the home venue of Bengaluru FC?`:
```sql
                SELECT "home_venue" FROM "clubs_stadiums_and_locations" WHERE "team"='bengaluru fc';
```
## Task
Generate a SQL query to answer the following question:
`What is the state of the team who plays in Mumbai?`

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

CREATE TABLE "clubs_stadiums_and_locations" (
  "team" text,
  "city" text,
  "state" text,
  "home_venue" text,
  "capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the state of the team who plays in Mumbai?`:
```sql
                SELECT "state" FROM "clubs_stadiums_and_locations" WHERE "team"='mumbai';
```
## Task
Generate a SQL query to answer the following question:
`Where is the city of Maharashtra's Pune team?`

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

CREATE TABLE "clubs_stadiums_and_locations" (
  "team" text,
  "city" text,
  "state" text,
  "home_venue" text,
  "capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the city of Maharashtra's Pune team?`:
```sql
                SELECT "city" FROM "clubs_stadiums_and_locations" WHERE "state"='maharashtra' AND "team"='pune';
```
## Task
Generate a SQL query to answer the following question:
`How much Money is requested by BassToneSlap?`

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

CREATE TABLE "series_7" (
  "episode" text,
  "first_aired" text,
  "entrepreneur_s" text,
  "company_or_product_name" text,
  "money_requested" text,
  "investing_dragon_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Money is requested by BassToneSlap?`:
```sql
                SELECT "money_requested" FROM "series_7" WHERE "company_or_product_name"='basstoneslap';
```
## Task
Generate a SQL query to answer the following question:
`Which Investing Dragon has requested £100,000 and is supported by Entrepreneur Kay Russell?`

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

CREATE TABLE "series_7" (
  "episode" text,
  "first_aired" text,
  "entrepreneur_s" text,
  "company_or_product_name" text,
  "money_requested" text,
  "investing_dragon_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Investing Dragon has requested £100,000 and is supported by Entrepreneur Kay Russell?`:
```sql
                SELECT "investing_dragon_s" FROM "series_7" WHERE "money_requested"='100,000' AND "entrepreneur_s"='kay russell';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the Company or Product that is Episode 3 and is suppoted by Investing Dragon Deborah Meaden?`

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

CREATE TABLE "series_7" (
  "episode" text,
  "first_aired" text,
  "entrepreneur_s" text,
  "company_or_product_name" text,
  "money_requested" text,
  "investing_dragon_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the Company or Product that is Episode 3 and is suppoted by Investing Dragon Deborah Meaden?`:
```sql
                SELECT "company_or_product_name" FROM "series_7" WHERE "episode"='episode 3' AND "investing_dragon_s"='deborah meaden';
```
## Task
Generate a SQL query to answer the following question:
`Which Episode has requested £150,000?`

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

CREATE TABLE "series_7" (
  "episode" text,
  "first_aired" text,
  "entrepreneur_s" text,
  "company_or_product_name" text,
  "money_requested" text,
  "investing_dragon_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Episode has requested £150,000?`:
```sql
                SELECT "episode" FROM "series_7" WHERE "money_requested"='150,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the counting method for a network-centric basis?`

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

CREATE TABLE "classification_of_motif_discovery_algori" (
  "counting_method" text,
  "basis" text,
  "name" text,
  "directed_undirected" text,
  "induced_non_induced" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the counting method for a network-centric basis?`:
```sql
                SELECT "counting_method" FROM "classification_of_motif_discovery_algori" WHERE "basis"='network-centric';
```
## Task
Generate a SQL query to answer the following question:
`What is the directed/undirected for mfinder, which has a network-centric basis?`

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

CREATE TABLE "classification_of_motif_discovery_algori" (
  "counting_method" text,
  "basis" text,
  "name" text,
  "directed_undirected" text,
  "induced_non_induced" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the directed/undirected for mfinder, which has a network-centric basis?`:
```sql
                SELECT "directed_undirected" FROM "classification_of_motif_discovery_algori" WHERE "name"='mfinder' AND "basis"='network-centric';
```
## Task
Generate a SQL query to answer the following question:
`What is the directed/undirected of fpf (mavisto), which has an induced/non-induced of induced?`

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

CREATE TABLE "classification_of_motif_discovery_algori" (
  "counting_method" text,
  "basis" text,
  "name" text,
  "directed_undirected" text,
  "induced_non_induced" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the directed/undirected of fpf (mavisto), which has an induced/non-induced of induced?`:
```sql
                SELECT "directed_undirected" FROM "classification_of_motif_discovery_algori" WHERE "induced_non_induced"='induced' AND "name"='fpf (mavisto)';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the algorithm with a directed/undirected of both and a subgraph-centric basis?`

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

CREATE TABLE "classification_of_motif_discovery_algori" (
  "counting_method" text,
  "basis" text,
  "name" text,
  "directed_undirected" text,
  "induced_non_induced" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the algorithm with a directed/undirected of both and a subgraph-centric basis?`:
```sql
                SELECT "name" FROM "classification_of_motif_discovery_algori" WHERE "directed_undirected"='both' AND "basis"='subgraph-centric';
```
## Task
Generate a SQL query to answer the following question:
`What is the directed/undirected for mfinder, which has an induced/non-induced of induced and an exact counting method?`

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

CREATE TABLE "classification_of_motif_discovery_algori" (
  "counting_method" text,
  "basis" text,
  "name" text,
  "directed_undirected" text,
  "induced_non_induced" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the directed/undirected for mfinder, which has an induced/non-induced of induced and an exact counting method?`:
```sql
                SELECT "directed_undirected" FROM "classification_of_motif_discovery_algori" WHERE "induced_non_induced"='induced' AND "counting_method"='exact' AND "name"='mfinder';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent for the winner outcome on a hard surface on August 27, 2011?`

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

CREATE TABLE "singles_16_7_titles_9_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent for the winner outcome on a hard surface on August 27, 2011?`:
```sql
                SELECT "opponent" FROM "singles_16_7_titles_9_runners_up" WHERE "outcome"='winner' AND "surface"='hard' AND "date"='august 27, 2011';
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome on August 5, 2007?`

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

CREATE TABLE "singles_16_7_titles_9_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome on August 5, 2007?`:
```sql
                SELECT "outcome" FROM "singles_16_7_titles_9_runners_up" WHERE "date"='august 5, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on January 16, 2010?`

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

CREATE TABLE "singles_16_7_titles_9_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on January 16, 2010?`:
```sql
                SELECT "score" FROM "singles_16_7_titles_9_runners_up" WHERE "date"='january 16, 2010';
```
## Task
Generate a SQL query to answer the following question:
`What country is Paul Runyan from?`

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

CREATE TABLE "third_round" (
  "place" text,
  "name" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is Paul Runyan from?`:
```sql
                SELECT "country" FROM "third_round" WHERE "name"='paul runyan';
```
## Task
Generate a SQL query to answer the following question:
`What is the To par of Willie MacFarlane from the country of Scotland?`

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

CREATE TABLE "third_round" (
  "place" text,
  "name" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the To par of Willie MacFarlane from the country of Scotland?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "country"='scotland' AND "name"='willie macfarlane';
```
## Task
Generate a SQL query to answer the following question:
`What country has a To par of +1 and the score of 71-76-70=217?`

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

CREATE TABLE "third_round" (
  "place" text,
  "name" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a To par of +1 and the score of 71-76-70=217?`:
```sql
                SELECT "country" FROM "third_round" WHERE "to_par"='+1' AND "score"='71-76-70=217';
```
## Task
Generate a SQL query to answer the following question:
`What player scored 143 goals?`

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

CREATE TABLE "most_goals_in_a_season" (
  "rank" text,
  "goals" text,
  "player" text,
  "club" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player scored 143 goals?`:
```sql
                SELECT "player" FROM "most_goals_in_a_season" WHERE "goals"='143';
```
## Task
Generate a SQL query to answer the following question:
`In what season was there a club of South Melbourne?`

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

CREATE TABLE "most_goals_in_a_season" (
  "rank" text,
  "goals" text,
  "player" text,
  "club" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what season was there a club of South Melbourne?`:
```sql
                SELECT "season" FROM "most_goals_in_a_season" WHERE "club"='south melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What club scored 143 goals?`

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

CREATE TABLE "most_goals_in_a_season" (
  "rank" text,
  "goals" text,
  "player" text,
  "club" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club scored 143 goals?`:
```sql
                SELECT "club" FROM "most_goals_in_a_season" WHERE "goals"='143';
```
## Task
Generate a SQL query to answer the following question:
`In what season did Bob Pratt play?`

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

CREATE TABLE "most_goals_in_a_season" (
  "rank" text,
  "goals" text,
  "player" text,
  "club" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what season did Bob Pratt play?`:
```sql
                SELECT "season" FROM "most_goals_in_a_season" WHERE "player"='bob pratt';
```
## Task
Generate a SQL query to answer the following question:
`How many goals did the club from Hawthorn score in the 1971 season?`

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

CREATE TABLE "most_goals_in_a_season" (
  "rank" text,
  "goals" text,
  "player" text,
  "club" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals did the club from Hawthorn score in the 1971 season?`:
```sql
                SELECT "goals" FROM "most_goals_in_a_season" WHERE "club"='hawthorn' AND "season"='1971';
```
## Task
Generate a SQL query to answer the following question:
`What source has july 1 as the date?`

### 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,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What source has july 1 as the date?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='july 1';
```
## Task
Generate a SQL query to answer the following question:
`What is the record that has an attendance greater than 39,980 with july 26 as the date?`

### 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,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record that has an attendance greater than 39,980 with july 26 as the date?`:
```sql
                SELECT "record" FROM "game_log" WHERE "attendance">'39,980' AND "date"='july 26';
```
## Task
Generate a SQL query to answer the following question:
`What is the Area of the town with a Population Density of 36 km and a population greater than 3,546?`

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

CREATE TABLE "statistics" (
  "municipality" text,
  "population" real,
  "area_km" real,
  "density_population_per_km" real,
  "area" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Area of the town with a Population Density of 36 km and a population greater than 3,546?`:
```sql
                SELECT SUM("area_km") FROM "statistics" WHERE "density_population_per_km"=36 AND "population">'3,546';
```
## Task
Generate a SQL query to answer the following question:
`Which municipality's area is outer circle south and smaller than 368 km in Akershus County with more than 14,398 people?`

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

CREATE TABLE "statistics" (
  "municipality" text,
  "population" real,
  "area_km" real,
  "density_population_per_km" real,
  "area" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which municipality's area is outer circle south and smaller than 368 km in Akershus County with more than 14,398 people?`:
```sql
                SELECT "municipality" FROM "statistics" WHERE "area"='outer circle south' AND "area_km"<368 AND "county"='akershus' AND "population">'14,398';
```
## Task
Generate a SQL query to answer the following question:
`What was the location of the game after game 6?`

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

CREATE TABLE "summary" (
  "game" real,
  "date" text,
  "location" text,
  "time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location of the game after game 6?`:
```sql
                SELECT "location" FROM "summary" WHERE "game">6;
```
## Task
Generate a SQL query to answer the following question:
`Who is in February where has September is kristine hanson?`

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

CREATE TABLE "1970_1979" (
  "january" text,
  "february" text,
  "march" text,
  "april" text,
  "june" text,
  "july" text,
  "august" text,
  "september" text,
  "october" text,
  "november" text,
  "december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in February where has September is kristine hanson?`:
```sql
                SELECT "february" FROM "1970_1979" WHERE "september"='kristine hanson';
```
## Task
Generate a SQL query to answer the following question:
`Who is in January where April is chris cranston?`

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

CREATE TABLE "1970_1979" (
  "january" text,
  "february" text,
  "march" text,
  "april" text,
  "june" text,
  "july" text,
  "august" text,
  "september" text,
  "october" text,
  "november" text,
  "december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in January where April is chris cranston?`:
```sql
                SELECT "january" FROM "1970_1979" WHERE "april"='chris cranston';
```
## Task
Generate a SQL query to answer the following question:
`Who is in July where October is jill de vries?`

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

CREATE TABLE "1970_1979" (
  "january" text,
  "february" text,
  "march" text,
  "april" text,
  "june" text,
  "july" text,
  "august" text,
  "september" text,
  "october" text,
  "november" text,
  "december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in July where October is jill de vries?`:
```sql
                SELECT "july" FROM "1970_1979" WHERE "october"='jill de vries';
```
## Task
Generate a SQL query to answer the following question:
`Who is in November where February is willy rey?`

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

CREATE TABLE "1970_1979" (
  "january" text,
  "february" text,
  "march" text,
  "april" text,
  "june" text,
  "july" text,
  "august" text,
  "september" text,
  "october" text,
  "november" text,
  "december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in November where February is willy rey?`:
```sql
                SELECT "november" FROM "1970_1979" WHERE "february"='willy rey';
```
## Task
Generate a SQL query to answer the following question:
`Who is in November where October is jill de vries?`

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

CREATE TABLE "1970_1979" (
  "january" text,
  "february" text,
  "march" text,
  "april" text,
  "june" text,
  "july" text,
  "august" text,
  "september" text,
  "october" text,
  "november" text,
  "december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in November where October is jill de vries?`:
```sql
                SELECT "november" FROM "1970_1979" WHERE "october"='jill de vries';
```
## Task
Generate a SQL query to answer the following question:
`Who is in July where February is linda forsythe?`

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

CREATE TABLE "1970_1979" (
  "january" text,
  "february" text,
  "march" text,
  "april" text,
  "june" text,
  "july" text,
  "august" text,
  "september" text,
  "october" text,
  "november" text,
  "december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in July where February is linda forsythe?`:
```sql
                SELECT "july" FROM "1970_1979" WHERE "february"='linda forsythe';
```
## Task
Generate a SQL query to answer the following question:
`What were the remarks for Dutch Antilles Express?`

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

CREATE TABLE "current_destination_number" (
  "rank" real,
  "airline" text,
  "country" text,
  "destination_number" real,
  "remarks" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the remarks for Dutch Antilles Express?`:
```sql
                SELECT "remarks" FROM "current_destination_number" WHERE "airline"='dutch antilles express';
```
## Task
Generate a SQL query to answer the following question:
`What were the remarks for a destination under 19 and rank less than 5?`

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

CREATE TABLE "current_destination_number" (
  "rank" real,
  "airline" text,
  "country" text,
  "destination_number" real,
  "remarks" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the remarks for a destination under 19 and rank less than 5?`:
```sql
                SELECT "remarks" FROM "current_destination_number" WHERE "destination_number"<19 AND "rank"<5;
```
## Task
Generate a SQL query to answer the following question:
`Name the date when the attendance is more than 45,817`

### 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,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date when the attendance is more than 45,817`:
```sql
                SELECT "date" FROM "game_log" WHERE "attendance">'45,817';
```
## Task
Generate a SQL query to answer the following question:
`Name the score for september 25`

### 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,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for september 25`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='september 25';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest year that has athens, greece as the venue?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest year that has athens, greece as the venue?`:
```sql
                SELECT MIN("year") FROM "achievements" WHERE "venue"='athens, greece';
```
## Task
Generate a SQL query to answer the following question:
`Which venue has 1st as the result?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue has 1st as the result?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "result"='1st';
```
## Task
Generate a SQL query to answer the following question:
`What extra has world championships as the tournament, and 1st as the result?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `What extra has world championships as the tournament, and 1st as the result?`:
```sql
                SELECT "extra" FROM "achievements" WHERE "tournament"='world championships' AND "result"='1st';
```
## Task
Generate a SQL query to answer the following question:
`For all countries with 7 bronze medals and a total number of medals less than 13, what's the sum of silver medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `For all countries with 7 bronze medals and a total number of medals less than 13, what's the sum of silver medals?`:
```sql
                SELECT SUM("silver") FROM "medal_table" WHERE "bronze"=7 AND "total"<13;
```
## Task
Generate a SQL query to answer the following question:
`For countries with total number of medals less than 5 and more than 2 bronze medals, what's the lowest number of gold medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `For countries with total number of medals less than 5 and more than 2 bronze medals, what's the lowest number of gold medals?`:
```sql
                SELECT MIN("gold") FROM "medal_table" WHERE "total"<5 AND "bronze">2;
```
## Task
Generate a SQL query to answer the following question:
`Which Class has Laps of 31?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Class has Laps of 31?`:
```sql
                SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "laps"=31;
```
## Task
Generate a SQL query to answer the following question:
`What is the gender for the person that recieved over 11,542 votes in pasadena?`

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

CREATE TABLE "newfoundland_and_labrador_7_seats" (
  "riding" text,
  "candidate_s_name" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gender for the person that recieved over 11,542 votes in pasadena?`:
```sql
                SELECT "gender" FROM "newfoundland_and_labrador_7_seats" WHERE "votes">'11,542' AND "residence"='pasadena';
```
## Task
Generate a SQL query to answer the following question:
`What country team had Thurles Sarsfields?`

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

CREATE TABLE "see_also" (
  "position" text,
  "player" text,
  "county_team" text,
  "club_team_s" text,
  "team_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country team had Thurles Sarsfields?`:
```sql
                SELECT "county_team" FROM "see_also" WHERE "club_team_s"='thurles sarsfields';
```
## Task
Generate a SQL query to answer the following question:
`How many club teams had more than 14 people?`

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

CREATE TABLE "see_also" (
  "position" text,
  "player" text,
  "county_team" text,
  "club_team_s" text,
  "team_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many club teams had more than 14 people?`:
```sql
                SELECT "club_team_s" FROM "see_also" WHERE "team_number">14;
```
## Task
Generate a SQL query to answer the following question:
`Who is from Spain with a to par of e?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is from Spain with a to par of e?`:
```sql
                SELECT "player" FROM "first_round" WHERE "to_par"='e' AND "country"='spain';
```
## Task
Generate a SQL query to answer the following question:
`Where was Steve Stricker from?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was Steve Stricker from?`:
```sql
                SELECT "place" FROM "first_round" WHERE "player"='steve stricker';
```
## Task
Generate a SQL query to answer the following question:
`Which country has 69 score?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has 69 score?`:
```sql
                SELECT "country" FROM "first_round" WHERE "score"=69;
```
## Task
Generate a SQL query to answer the following question:
`How many laps were there when the start was 12?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps were there when the start was 12?`:
```sql
                SELECT COUNT("laps") FROM "indy_500_results" WHERE "start"='12';
```
## Task
Generate a SQL query to answer the following question:
`What was the qual when the rank was 2?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the qual when the rank was 2?`:
```sql
                SELECT "qual" FROM "indy_500_results" WHERE "rank"='2';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the call sign which has a frequency Mhz more than 90.1 and ERP W of 1`

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

CREATE TABLE "broadcast_translators_of_wise_fm" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the call sign which has a frequency Mhz more than 90.1 and ERP W of 1`:
```sql
                SELECT "call_sign" FROM "broadcast_translators_of_wise_fm" WHERE "frequency_m_hz">90.1 AND "erp_w"=1;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of ERP W when the call sign is w217bf`

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

CREATE TABLE "broadcast_translators_of_wise_fm" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of ERP W when the call sign is w217bf`:
```sql
                SELECT COUNT("erp_w") FROM "broadcast_translators_of_wise_fm" WHERE "call_sign"='w217bf';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of frequency Mhz for when it has ERP W of 1 and call sign of w215bj`

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

CREATE TABLE "broadcast_translators_of_wise_fm" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of frequency Mhz for when it has ERP W of 1 and call sign of w215bj`:
```sql
                SELECT COUNT("frequency_m_hz") FROM "broadcast_translators_of_wise_fm" WHERE "erp_w"=1 AND "call_sign"='w215bj';
```
## Task
Generate a SQL query to answer the following question:
`Name the average ERP W when it has a city of license of pound, virginia and frequency mhz more than 91.3`

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

CREATE TABLE "broadcast_translators_of_wise_fm" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average ERP W when it has a city of license of pound, virginia and frequency mhz more than 91.3`:
```sql
                SELECT AVG("erp_w") FROM "broadcast_translators_of_wise_fm" WHERE "city_of_license"='pound, virginia' AND "frequency_m_hz">91.3;
```
## Task
Generate a SQL query to answer the following question:
`What is the Score that has a Result of 2–2 on 04 Dec 2005?`

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

CREATE TABLE "goals_for_senior_national_team" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score that has a Result of 2–2 on 04 Dec 2005?`:
```sql
                SELECT "score" FROM "goals_for_senior_national_team" WHERE "result"='2–2' AND "date"='04 dec 2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the Result on 26 jan 2005?`

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

CREATE TABLE "goals_for_senior_national_team" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result on 26 jan 2005?`:
```sql
                SELECT "result" FROM "goals_for_senior_national_team" WHERE "date"='26 jan 2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the Venue on 26 jan 2005`

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

CREATE TABLE "goals_for_senior_national_team" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Venue on 26 jan 2005`:
```sql
                SELECT "venue" FROM "goals_for_senior_national_team" WHERE "date"='26 jan 2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the Competition On 26 jan 2005`

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

CREATE TABLE "goals_for_senior_national_team" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Competition On 26 jan 2005`:
```sql
                SELECT "competition" FROM "goals_for_senior_national_team" WHERE "date"='26 jan 2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of West Asian Games 2005 on 10 dec 2005?`

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

CREATE TABLE "goals_for_senior_national_team" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of West Asian Games 2005 on 10 dec 2005?`:
```sql
                SELECT "score" FROM "goals_for_senior_national_team" WHERE "competition"='west asian games 2005' AND "date"='10 dec 2005';
```
## Task
Generate a SQL query to answer the following question:
`How many matches were drawn by a team with 447 points?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many matches were drawn by a team with 447 points?`:
```sql
                SELECT "drawn" FROM "2008_2009_table" WHERE "points_for"='447';
```
## Task
Generate a SQL query to answer the following question:
`For teams with 22 matches played, a losing bonus of 3, and 45 tries against, what was the number of points against?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `For teams with 22 matches played, a losing bonus of 3, and 45 tries against, what was the number of points against?`:
```sql
                SELECT "points_against" FROM "2008_2009_table" WHERE "played"='22' AND "losing_bonus"='3' AND "tries_against"='45';
```
## Task
Generate a SQL query to answer the following question:
`For a team with 332 points for, what was the try bonus?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a team with 332 points for, what was the try bonus?`:
```sql
                SELECT "try_bonus" FROM "2008_2009_table" WHERE "points_for"='332';
```
## Task
Generate a SQL query to answer the following question:
`Which club has a try bonus of 9 and 43 tries against?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club has a try bonus of 9 and 43 tries against?`:
```sql
                SELECT "club" FROM "2008_2009_table" WHERE "tries_against"='43' AND "try_bonus"='9';
```
## Task
Generate a SQL query to answer the following question:
`How many matches were played by the team that has 473 points for?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many matches were played by the team that has 473 points for?`:
```sql
                SELECT "played" FROM "2008_2009_table" WHERE "points_for"='473';
```
## Task
Generate a SQL query to answer the following question:
`What is the qual when there are 125 laps?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the qual when there are 125 laps?`:
```sql
                SELECT "qual" FROM "indy_500_results" WHERE "laps"=125;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank when there are more than 107 laps and the qual is 137.825?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank when there are more than 107 laps and the qual is 137.825?`:
```sql
                SELECT "rank" FROM "indy_500_results" WHERE "laps">107 AND "qual"='137.825';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank with more than 40 laps and a 23 finish?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank with more than 40 laps and a 23 finish?`:
```sql
                SELECT "rank" FROM "indy_500_results" WHERE "laps">40 AND "finish"='23';
```
## Task
Generate a SQL query to answer the following question:
`What is the finish in 1953?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the finish in 1953?`:
```sql
                SELECT "finish" FROM "indy_500_results" WHERE "year"='1953';
```
## Task
Generate a SQL query to answer the following question:
`In what year was the rank 24?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was the rank 24?`:
```sql
                SELECT "year" FROM "indy_500_results" WHERE "rank"='24';
```
## Task
Generate a SQL query to answer the following question:
`Which To par has $100 in money played by Vic Ghezzi?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which To par has $100 in money played by Vic Ghezzi?`:
```sql
                SELECT "to_par" FROM "final_leaderboard" WHERE "money"=100 AND "player"='vic ghezzi';
```
## Task
Generate a SQL query to answer the following question:
`What is the monetary sum with a score of 75-71-75-72=293?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the monetary sum with a score of 75-71-75-72=293?`:
```sql
                SELECT SUM("money") FROM "final_leaderboard" WHERE "score"='75-71-75-72=293';
```
## Task
Generate a SQL query to answer the following question:
`Which Wednesday has a Saturday of གཟའ་སྤེན་པ།?`

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

CREATE TABLE "east_asian_seven_luminaries" (
  "sunday" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text,
  "saturday" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Wednesday has a Saturday of གཟའ་སྤེན་པ།?`:
```sql
                SELECT "wednesday" FROM "east_asian_seven_luminaries" WHERE "saturday"='གཟའ་སྤེན་པ།';
```
## Task
Generate a SQL query to answer the following question:
`Which Wednesday has a Sunday of གཟའ་ཉི་མ།?`

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

CREATE TABLE "east_asian_seven_luminaries" (
  "sunday" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text,
  "saturday" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Wednesday has a Sunday of གཟའ་ཉི་མ།?`:
```sql
                SELECT "wednesday" FROM "east_asian_seven_luminaries" WHERE "sunday"='གཟའ་ཉི་མ།';
```
## Task
Generate a SQL query to answer the following question:
`Which Tuesday has a Saturday of 土曜日 doyōbi?`

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

CREATE TABLE "east_asian_seven_luminaries" (
  "sunday" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text,
  "saturday" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tuesday has a Saturday of 土曜日 doyōbi?`:
```sql
                SELECT "tuesday" FROM "east_asian_seven_luminaries" WHERE "saturday"='土曜日 doyōbi';
```