cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the Venue which has a Score of 8 – 1?`

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

CREATE TABLE "group_1" (
  "match_no" real,
  "date" text,
  "time" text,
  "score" text,
  "venue" text,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Venue which has a Score of 8 – 1?`:
```sql
                SELECT "venue" FROM "group_1" WHERE "score"='8 – 1';
```
## Task
Generate a SQL query to answer the following question:
`What is 2nd Leg, when 1st Leg is "SGM Basso Molise (Molise)"?`

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

CREATE TABLE "first_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2nd Leg, when 1st Leg is "SGM Basso Molise (Molise)"?`:
```sql
                SELECT "2nd_leg" FROM "first_round" WHERE "1st_leg"='sgm basso molise (molise)';
```
## Task
Generate a SQL query to answer the following question:
`What is 2nd Leg, when Team 1 is "H"?`

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

CREATE TABLE "first_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2nd Leg, when Team 1 is "H"?`:
```sql
                SELECT "2nd_leg" FROM "first_round" WHERE "team_1"='h';
```
## Task
Generate a SQL query to answer the following question:
`Who are the Batsmen from the year 2002?`

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

CREATE TABLE "records" (
  "score" text,
  "batsmen" text,
  "against" text,
  "location" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the Batsmen from the year 2002?`:
```sql
                SELECT "batsmen" FROM "records" WHERE "year"='2002';
```
## Task
Generate a SQL query to answer the following question:
`What score did the year 1948 have?`

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

CREATE TABLE "records" (
  "score" text,
  "batsmen" text,
  "against" text,
  "location" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score did the year 1948 have?`:
```sql
                SELECT "score" FROM "records" WHERE "year"='1948';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Batsman from the year 1982?`

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

CREATE TABLE "records" (
  "score" text,
  "batsmen" text,
  "against" text,
  "location" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Batsman from the year 1982?`:
```sql
                SELECT "batsmen" FROM "records" WHERE "year"='1982';
```
## Task
Generate a SQL query to answer the following question:
`What is the score in 1929?`

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

CREATE TABLE "records" (
  "score" text,
  "batsmen" text,
  "against" text,
  "location" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score in 1929?`:
```sql
                SELECT "score" FROM "records" WHERE "year"='1929';
```
## Task
Generate a SQL query to answer the following question:
`Who was the batsmen at the Brit Oval location?`

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

CREATE TABLE "records" (
  "score" text,
  "batsmen" text,
  "against" text,
  "location" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the batsmen at the Brit Oval location?`:
```sql
                SELECT "batsmen" FROM "records" WHERE "location"='the brit oval';
```
## Task
Generate a SQL query to answer the following question:
`What year was the bridge in Kent built?`

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

CREATE TABLE "references" (
  "name" text,
  "built" text,
  "listed" text,
  "location" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the bridge in Kent built?`:
```sql
                SELECT "built" FROM "references" WHERE "county"='kent';
```
## Task
Generate a SQL query to answer the following question:
`In which county is East Providence?`

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

CREATE TABLE "references" (
  "name" text,
  "built" text,
  "listed" text,
  "location" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which county is East Providence?`:
```sql
                SELECT "county" FROM "references" WHERE "location"='east providence';
```
## Task
Generate a SQL query to answer the following question:
`What county had a bridge biult in 1884?`

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

CREATE TABLE "references" (
  "name" text,
  "built" text,
  "listed" text,
  "location" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What county had a bridge biult in 1884?`:
```sql
                SELECT "county" FROM "references" WHERE "built"='1884';
```
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player with a Score of 68-73-66-74=281?`

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

CREATE TABLE "final_round" (
  "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 Place of the Player with a Score of 68-73-66-74=281?`:
```sql
                SELECT "place" FROM "final_round" WHERE "score"='68-73-66-74=281';
```
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player with 122,100 Money and a Score of 68-70-68-74=280?`

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

CREATE TABLE "final_round" (
  "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 Place of the Player with 122,100 Money and a Score of 68-70-68-74=280?`:
```sql
                SELECT "place" FROM "final_round" WHERE "money">'122,100' AND "score"='68-70-68-74=280';
```
## Task
Generate a SQL query to answer the following question:
`What Country's Player scored 71-69-70-71=281?`

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

CREATE TABLE "final_round" (
  "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 Country's Player scored 71-69-70-71=281?`:
```sql
                SELECT "country" FROM "final_round" WHERE "score"='71-69-70-71=281';
```
## Task
Generate a SQL query to answer the following question:
`What is T5 Place Vijay Singh's To par?`

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

CREATE TABLE "final_round" (
  "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 T5 Place Vijay Singh's To par?`:
```sql
                SELECT "to_par" FROM "final_round" WHERE "place"='t5' AND "player"='vijay singh';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Player is "Bob Murphy"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Player is "Bob Murphy"?`:
```sql
                SELECT "score" FROM "second_round" WHERE "player"='bob murphy';
```
## Task
Generate a SQL query to answer the following question:
`What is Player, when To Par is "+1", when Country is "United States", and when Score is "71-70=141"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when To Par is "+1", when Country is "United States", and when Score is "71-70=141"?`:
```sql
                SELECT "player" FROM "second_round" WHERE "to_par"='+1' AND "country"='united states' AND "score"='71-70=141';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Place is "T8", and when Player is "Orville Moody"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Place is "T8", and when Player is "Orville Moody"?`:
```sql
                SELECT "score" FROM "second_round" WHERE "place"='t8' AND "player"='orville moody';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Player is "Deane Beman"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Player is "Deane Beman"?`:
```sql
                SELECT "score" FROM "second_round" WHERE "player"='deane beman';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Player is "Jack Nicklaus"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Player is "Jack Nicklaus"?`:
```sql
                SELECT "country" FROM "second_round" WHERE "player"='jack nicklaus';
```
## Task
Generate a SQL query to answer the following question:
`What is the Country, when Place is "1"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Country, when Place is "1"?`:
```sql
                SELECT "country" FROM "second_round" WHERE "place"='1';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE RESULT FOR best urban/alternative performance, IN 2003 OR GREATER?`

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

CREATE TABLE "awards" (
  "year" real,
  "category" text,
  "genre" text,
  "title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE RESULT FOR best urban/alternative performance, IN 2003 OR GREATER?`:
```sql
                SELECT "result" FROM "awards" WHERE "category"='best urban/alternative performance' AND "year">2003;
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE TITLE WITH CATEGORY OF best r&b song?`

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

CREATE TABLE "awards" (
  "year" real,
  "category" text,
  "genre" text,
  "title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE TITLE WITH CATEGORY OF best r&b song?`:
```sql
                SELECT "title" FROM "awards" WHERE "category"='best r&b song';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE RESULT FOR 2003, IN  best urban/alternative performance?`

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

CREATE TABLE "awards" (
  "year" real,
  "category" text,
  "genre" text,
  "title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE RESULT FOR 2003, IN  best urban/alternative performance?`:
```sql
                SELECT "result" FROM "awards" WHERE "year"=2003 AND "category"='best urban/alternative performance';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE YEAR OF FLOETIC?`

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

CREATE TABLE "awards" (
  "year" real,
  "category" text,
  "genre" text,
  "title" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE YEAR OF FLOETIC?`:
```sql
                SELECT SUM("year") FROM "awards" WHERE "title"='floetic';
```
## Task
Generate a SQL query to answer the following question:
`Who had the highest assists when the nuggets record was 2-4?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the highest assists when the nuggets record was 2-4?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "record"='2-4';
```
## Task
Generate a SQL query to answer the following question:
`Who had the highest assists in game 3?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the highest assists in game 3?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "game"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is Home Team, when Home Team Score is 22.15 (147)?`

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

CREATE TABLE "round_of_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Home Team, when Home Team Score is 22.15 (147)?`:
```sql
                SELECT "home_team" FROM "round_of_16" WHERE "home_team_score"='22.15 (147)';
```
## Task
Generate a SQL query to answer the following question:
`What is Time, when Ground is Waverley Park, and when Away Team is Footscray?`

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

CREATE TABLE "round_of_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Time, when Ground is Waverley Park, and when Away Team is Footscray?`:
```sql
                SELECT "time" FROM "round_of_16" WHERE "ground"='waverley park' AND "away_team"='footscray';
```
## Task
Generate a SQL query to answer the following question:
`What is Away Team, when Ground is Waverley Park, and when Away Team Score is 10.14 (74)?`

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

CREATE TABLE "round_of_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Away Team, when Ground is Waverley Park, and when Away Team Score is 10.14 (74)?`:
```sql
                SELECT "away_team" FROM "round_of_16" WHERE "ground"='waverley park' AND "away_team_score"='10.14 (74)';
```
## Task
Generate a SQL query to answer the following question:
`What is Ground, when Away Team is Sydney?`

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

CREATE TABLE "round_of_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Ground, when Away Team is Sydney?`:
```sql
                SELECT "ground" FROM "round_of_16" WHERE "away_team"='sydney';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Home Team is Richmond?`

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

CREATE TABLE "round_of_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Home Team is Richmond?`:
```sql
                SELECT "date" FROM "round_of_16" WHERE "home_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`What is Home Team Score, when Time is 12:00 PM, and when Ground is Waverley Park?`

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

CREATE TABLE "round_of_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "date" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Home Team Score, when Time is 12:00 PM, and when Ground is Waverley Park?`:
```sql
                SELECT "home_team_score" FROM "round_of_16" WHERE "time"='12:00 pm' AND "ground"='waverley park';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest year for the US Open?`

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

CREATE TABLE "women_s_doubles_13_finals_13_titles" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest year for the US Open?`:
```sql
                SELECT MAX("year") FROM "women_s_doubles_13_finals_13_titles" WHERE "championship"='us open';
```
## Task
Generate a SQL query to answer the following question:
`What is Result, when Week is 16?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Result, when Week is 16?`:
```sql
                SELECT "result" FROM "season_schedule" WHERE "week"=16;
```
## Task
Generate a SQL query to answer the following question:
`What is Record, when Attendance is 30,110?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Record, when Attendance is 30,110?`:
```sql
                SELECT "record" FROM "season_schedule" WHERE "attendance"='30,110';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Opponent is At Saskatchewan Roughriders?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Opponent is At Saskatchewan Roughriders?`:
```sql
                SELECT "date" FROM "season_schedule" WHERE "opponent"='at saskatchewan roughriders';
```
## Task
Generate a SQL query to answer the following question:
`Which grades have a 2007 API of 734?`

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

CREATE TABLE "schools" (
  "school_name" text,
  "address" text,
  "students" real,
  "grades" text,
  "2007_api" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which grades have a 2007 API of 734?`:
```sql
                SELECT "grades" FROM "schools" WHERE "2007_api"=734;
```
## Task
Generate a SQL query to answer the following question:
`Which School name has students smaller than 389, and grades of 10-12?`

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

CREATE TABLE "schools" (
  "school_name" text,
  "address" text,
  "students" real,
  "grades" text,
  "2007_api" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which School name has students smaller than 389, and grades of 10-12?`:
```sql
                SELECT "school_name" FROM "schools" WHERE "students"<389 AND "grades"='10-12';
```
## Task
Generate a SQL query to answer the following question:
`Which grades have students smaller than 430, and a 2007 API of 510?`

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

CREATE TABLE "schools" (
  "school_name" text,
  "address" text,
  "students" real,
  "grades" text,
  "2007_api" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which grades have students smaller than 430, and a 2007 API of 510?`:
```sql
                SELECT "grades" FROM "schools" WHERE "students"<430 AND "2007_api"=510;
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game where the home team was the cairns taipans?`

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

CREATE TABLE "round_19" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" real,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game where the home team was the cairns taipans?`:
```sql
                SELECT "score" FROM "round_19" WHERE "home_team"='cairns taipans';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game where the adelaide 36ers were the home team?`

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

CREATE TABLE "round_19" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" real,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game where the adelaide 36ers were the home team?`:
```sql
                SELECT "score" FROM "round_19" WHERE "home_team"='adelaide 36ers';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game where the venue was cairns convention centre?`

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

CREATE TABLE "round_19" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" real,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game where the venue was cairns convention centre?`:
```sql
                SELECT "score" FROM "round_19" WHERE "venue"='cairns convention centre';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team during the game when the home team was the new zealand breakers?`

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

CREATE TABLE "round_19" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" real,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team during the game when the home team was the new zealand breakers?`:
```sql
                SELECT "away_team" FROM "round_19" WHERE "home_team"='new zealand breakers';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game which featured the gold coast blaze as the away team and the adelaide 36ers as the home team?`

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

CREATE TABLE "round_19" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" real,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game which featured the gold coast blaze as the away team and the adelaide 36ers as the home team?`:
```sql
                SELECT "score" FROM "round_19" WHERE "away_team"='gold coast blaze' AND "home_team"='adelaide 36ers';
```
## Task
Generate a SQL query to answer the following question:
`What is the average market value in billions of the company with less than 1,705.35 billions in assets, sales of 175.05 billions, and is ranked less than 19?`

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

CREATE TABLE "2007_list" (
  "rank" real,
  "company" text,
  "headquarters" text,
  "industry" text,
  "sales_billion" real,
  "profits_billion" real,
  "assets_billion" real,
  "market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average market value in billions of the company with less than 1,705.35 billions in assets, sales of 175.05 billions, and is ranked less than 19?`:
```sql
                SELECT AVG("market_value_billion") FROM "2007_list" WHERE "assets_billion"<'1,705.35' AND "sales_billion"=175.05 AND "rank"<19;
```
## Task
Generate a SQL query to answer the following question:
`What is the total rank of the company with less than 248.44 billion in assets, an industry of oil and gas, headquarters in France, and a market value greater than 152.62 billions?`

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

CREATE TABLE "2007_list" (
  "rank" real,
  "company" text,
  "headquarters" text,
  "industry" text,
  "sales_billion" real,
  "profits_billion" real,
  "assets_billion" real,
  "market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total rank of the company with less than 248.44 billion in assets, an industry of oil and gas, headquarters in France, and a market value greater than 152.62 billions?`:
```sql
                SELECT COUNT("rank") FROM "2007_list" WHERE "assets_billion"<248.44 AND "industry"='oil and gas' AND "headquarters"='france' AND "market_value_billion">152.62;
```
## Task
Generate a SQL query to answer the following question:
`What company has more than 195.34 billion in sales, ranked greater than 7, more than 11.29 billion in profits, and a market value greater than 198.14 billion?`

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

CREATE TABLE "2007_list" (
  "rank" real,
  "company" text,
  "headquarters" text,
  "industry" text,
  "sales_billion" real,
  "profits_billion" real,
  "assets_billion" real,
  "market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `What company has more than 195.34 billion in sales, ranked greater than 7, more than 11.29 billion in profits, and a market value greater than 198.14 billion?`:
```sql
                SELECT "company" FROM "2007_list" WHERE "sales_billion">195.34 AND "rank">7 AND "profits_billion">11.29 AND "market_value_billion">198.14;
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank of the company with more than 146.56 billion in sales and profits of 11.68 billions?`

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

CREATE TABLE "2007_list" (
  "rank" real,
  "company" text,
  "headquarters" text,
  "industry" text,
  "sales_billion" real,
  "profits_billion" real,
  "assets_billion" real,
  "market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank of the company with more than 146.56 billion in sales and profits of 11.68 billions?`:
```sql
                SELECT AVG("rank") FROM "2007_list" WHERE "sales_billion">146.56 AND "profits_billion"=11.68;
```
## Task
Generate a SQL query to answer the following question:
`What was the position of the player from the college of Nevada with a round over 5?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position of the player from the college of Nevada with a round over 5?`:
```sql
                SELECT "position" FROM "washington_redskins_draft_history" WHERE "round">5 AND "college"='nevada';
```
## Task
Generate a SQL query to answer the following question:
`Which college had a pick in a round under 7, with a pick number 13 and overall was under 186?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which college had a pick in a round under 7, with a pick number 13 and overall was under 186?`:
```sql
                SELECT "college" FROM "washington_redskins_draft_history" WHERE "round"<7 AND "overall"<186 AND "pick"=13;
```
## Task
Generate a SQL query to answer the following question:
`How many Parishes in Merrimack which has 4 Cemeteries?`

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

CREATE TABLE "list_of_pastoral_regions" (
  "pastoral_region" text,
  "episcopal_vicar" text,
  "parishes" real,
  "high_schools" real,
  "elementary_schools" text,
  "cemeteries" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Parishes in Merrimack which has 4 Cemeteries?`:
```sql
                SELECT MIN("parishes") FROM "list_of_pastoral_regions" WHERE "pastoral_region"='merrimack' AND "cemeteries"<4;
```
## Task
Generate a SQL query to answer the following question:
`What Pastoral Region has 3 Cemeteries?`

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

CREATE TABLE "list_of_pastoral_regions" (
  "pastoral_region" text,
  "episcopal_vicar" text,
  "parishes" real,
  "high_schools" real,
  "elementary_schools" text,
  "cemeteries" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Pastoral Region has 3 Cemeteries?`:
```sql
                SELECT "pastoral_region" FROM "list_of_pastoral_regions" WHERE "cemeteries"=3;
```
## Task
Generate a SQL query to answer the following question:
`How many High schools in the Region with 8 Cemeteries?`

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

CREATE TABLE "list_of_pastoral_regions" (
  "pastoral_region" text,
  "episcopal_vicar" text,
  "parishes" real,
  "high_schools" real,
  "elementary_schools" text,
  "cemeteries" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many High schools in the Region with 8 Cemeteries?`:
```sql
                SELECT SUM("high_schools") FROM "list_of_pastoral_regions" WHERE "cemeteries"=8;
```
## Task
Generate a SQL query to answer the following question:
`What Pastoral Region has Episcopal Vicar Robert Francis Hennessey?`

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

CREATE TABLE "list_of_pastoral_regions" (
  "pastoral_region" text,
  "episcopal_vicar" text,
  "parishes" real,
  "high_schools" real,
  "elementary_schools" text,
  "cemeteries" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Pastoral Region has Episcopal Vicar Robert Francis Hennessey?`:
```sql
                SELECT "pastoral_region" FROM "list_of_pastoral_regions" WHERE "episcopal_vicar"='robert francis hennessey';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the person with more than 299 games during the 1995–07 period?`

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

CREATE TABLE "most_appearances" (
  "rank" real,
  "name" text,
  "period" text,
  "games" real,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the person with more than 299 games during the 1995–07 period?`:
```sql
                SELECT "name" FROM "most_appearances" WHERE "games">299 AND "period"='1995–07';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of games for Shlomi Avrahami?`

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

CREATE TABLE "most_appearances" (
  "rank" real,
  "name" text,
  "period" text,
  "games" real,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of games for Shlomi Avrahami?`:
```sql
                SELECT COUNT("games") FROM "most_appearances" WHERE "name"='shlomi avrahami';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank for the period of 1973–89, with less than 423 games.`

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

CREATE TABLE "most_appearances" (
  "rank" real,
  "name" text,
  "period" text,
  "games" real,
  "goals" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank for the period of 1973–89, with less than 423 games.`:
```sql
                SELECT SUM("rank") FROM "most_appearances" WHERE "period"='1973–89' AND "games"<423;
```
## Task
Generate a SQL query to answer the following question:
`What is the team 1 when Ulisses is team 2?`

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

CREATE TABLE "first_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team 1 when Ulisses is team 2?`:
```sql
                SELECT "team_1" FROM "first_round" WHERE "team_2"='ulisses';
```
## Task
Generate a SQL query to answer the following question:
`What is 2009, when Year is "Highest Mean Annual Temperature"?`

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

CREATE TABLE "temperature_records" (
  "year" text,
  "2011" text,
  "2010" text,
  "2009" text,
  "2008" text,
  "2007" text,
  "2006" text,
  "2005" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2009, when Year is "Highest Mean Annual Temperature"?`:
```sql
                SELECT "2009" FROM "temperature_records" WHERE "year"='highest mean annual temperature';
```
## Task
Generate a SQL query to answer the following question:
`How many gold values have totals over 30, bronzes over 35, and are in Swimming?`

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

CREATE TABLE "by_sport" (
  "sport" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many gold values have totals over 30, bronzes over 35, and are in Swimming?`:
```sql
                SELECT COUNT("gold") FROM "by_sport" WHERE "total">30 AND "sport"='swimming' AND "bronze">35;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest bronze value with silvers over 2, golds under 16, and in Cycling?`

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

CREATE TABLE "by_sport" (
  "sport" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest bronze value with silvers over 2, golds under 16, and in Cycling?`:
```sql
                SELECT MAX("bronze") FROM "by_sport" WHERE "silver">2 AND "sport"='cycling' AND "gold"<16;
```
## Task
Generate a SQL query to answer the following question:
`What is the total associated with Bronzes over 35?`

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

CREATE TABLE "by_sport" (
  "sport" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total associated with Bronzes over 35?`:
```sql
                SELECT "total" FROM "by_sport" WHERE "bronze">35;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest bronze value associated with golds over 0, silvers over 11, and totals of 36?`

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

CREATE TABLE "by_sport" (
  "sport" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest bronze value associated with golds over 0, silvers over 11, and totals of 36?`:
```sql
                SELECT MIN("bronze") FROM "by_sport" WHERE "gold">0 AND "total"=36 AND "silver">11;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of golds in athletics associated with over 42 silvers?`

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

CREATE TABLE "by_sport" (
  "sport" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of golds in athletics associated with over 42 silvers?`:
```sql
                SELECT AVG("gold") FROM "by_sport" WHERE "sport"='athletics' AND "silver">42;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of silvers associated with bronzes under 20, totals of 1, golds of 0, and in Water Polo?`

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

CREATE TABLE "by_sport" (
  "sport" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of silvers associated with bronzes under 20, totals of 1, golds of 0, and in Water Polo?`:
```sql
                SELECT MIN("silver") FROM "by_sport" WHERE "bronze"<20 AND "total"=1 AND "sport"='water polo' AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest pick number for Marc Pilon?`

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

CREATE TABLE "round_one" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest pick number for Marc Pilon?`:
```sql
                SELECT MIN("pick_num") FROM "round_one" WHERE "player"='marc pilon';
```
## Task
Generate a SQL query to answer the following question:
`What player was from the British Columbia college?`

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

CREATE TABLE "round_one" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player was from the British Columbia college?`:
```sql
                SELECT "player" FROM "round_one" WHERE "college"='british columbia';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest pick number for the Hamilton tiger-cats?`

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

CREATE TABLE "round_one" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest pick number for the Hamilton tiger-cats?`:
```sql
                SELECT MAX("pick_num") FROM "round_one" WHERE "cfl_team"='hamilton tiger-cats';
```
## Task
Generate a SQL query to answer the following question:
`What was the pick number for the WR position?`

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

CREATE TABLE "round_one" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the pick number for the WR position?`:
```sql
                SELECT "pick_num" FROM "round_one" WHERE "position"='wr';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Goal that has the Result of 2-0?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Goal that has the Result of 2-0?`:
```sql
                SELECT "goal" FROM "international_goals" WHERE "result"='2-0';
```
## Task
Generate a SQL query to answer the following question:
`What is Place, when Prize is "$381.030"?`

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

CREATE TABLE "top_10_prizes" (
  "rank" text,
  "event" text,
  "place" text,
  "name" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Place, when Prize is "$381.030"?`:
```sql
                SELECT "place" FROM "top_10_prizes" WHERE "prize"='$381.030';
```
## Task
Generate a SQL query to answer the following question:
`What is Rank, when Event is "LAPT3 Punta Del Este"?`

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

CREATE TABLE "top_10_prizes" (
  "rank" text,
  "event" text,
  "place" text,
  "name" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Rank, when Event is "LAPT3 Punta Del Este"?`:
```sql
                SELECT "rank" FROM "top_10_prizes" WHERE "event"='lapt3 punta del este';
```
## Task
Generate a SQL query to answer the following question:
`What is Name, when Prize is "$279.330"?`

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

CREATE TABLE "top_10_prizes" (
  "rank" text,
  "event" text,
  "place" text,
  "name" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Prize is "$279.330"?`:
```sql
                SELECT "name" FROM "top_10_prizes" WHERE "prize"='$279.330';
```
## Task
Generate a SQL query to answer the following question:
`What is Prize, when Rank is "2nd"?`

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

CREATE TABLE "top_10_prizes" (
  "rank" text,
  "event" text,
  "place" text,
  "name" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Prize, when Rank is "2nd"?`:
```sql
                SELECT "prize" FROM "top_10_prizes" WHERE "rank"='2nd';
```
## Task
Generate a SQL query to answer the following question:
`What is Rank, when Event is "LAPT4 São Paulo"?`

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

CREATE TABLE "top_10_prizes" (
  "rank" text,
  "event" text,
  "place" text,
  "name" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Rank, when Event is "LAPT4 São Paulo"?`:
```sql
                SELECT "rank" FROM "top_10_prizes" WHERE "event"='lapt4 são paulo';
```
## Task
Generate a SQL query to answer the following question:
`What is Prize, when Name is "Valdemar Kwaysser"?`

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

CREATE TABLE "top_10_prizes" (
  "rank" text,
  "event" text,
  "place" text,
  "name" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Prize, when Name is "Valdemar Kwaysser"?`:
```sql
                SELECT "prize" FROM "top_10_prizes" WHERE "name"='valdemar kwaysser';
```
## Task
Generate a SQL query to answer the following question:
`What is the bus power for the Controlnet Fieldbus?`

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

CREATE TABLE "features" (
  "fieldbus" text,
  "bus_power" text,
  "cabling_redundancy" text,
  "synchronisation" text,
  "sub_millisecond_cycle" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the bus power for the Controlnet Fieldbus?`:
```sql
                SELECT "bus_power" FROM "features" WHERE "fieldbus"='controlnet';
```
## Task
Generate a SQL query to answer the following question:
`What is the millisecond cycle for the Fieldbus?`

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

CREATE TABLE "features" (
  "fieldbus" text,
  "bus_power" text,
  "cabling_redundancy" text,
  "synchronisation" text,
  "sub_millisecond_cycle" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the millisecond cycle for the Fieldbus?`:
```sql
                SELECT "sub_millisecond_cycle" FROM "features" WHERE "fieldbus"='fieldbus';
```
## Task
Generate a SQL query to answer the following question:
`What is the synchronisation for the controlnet fieldbus?`

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

CREATE TABLE "features" (
  "fieldbus" text,
  "bus_power" text,
  "cabling_redundancy" text,
  "synchronisation" text,
  "sub_millisecond_cycle" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the synchronisation for the controlnet fieldbus?`:
```sql
                SELECT "synchronisation" FROM "features" WHERE "fieldbus"='controlnet';
```