cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What day withdrawn is associated with fleet numbers of 12, 25, 42–46, 50, 70–71, 74–77, 106–107, 129?`

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

CREATE TABLE "great_northern_railway" (
  "class" text,
  "type" text,
  "fleet_numbers" text,
  "quantity_made" real,
  "date_made" text,
  "1958_ci" text,
  "1958_uta" text,
  "date_withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day withdrawn is associated with fleet numbers of 12, 25, 42–46, 50, 70–71, 74–77, 106–107, 129?`:
```sql
                SELECT "date_withdrawn" FROM "great_northern_railway" WHERE "fleet_numbers"='12, 25, 42–46, 50, 70–71, 74–77, 106–107, 129';
```
## Task
Generate a SQL query to answer the following question:
`Which player has a score of 74-74-73-70=291?`

### 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,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has a score of 74-74-73-70=291?`:
```sql
                SELECT "player" FROM "final_leaderboard" WHERE "score"='74-74-73-70=291';
```
## Task
Generate a SQL query to answer the following question:
`What is the average earnings of a United States player who had a score of 72-68-74-72=286?`

### 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,
  "earnings" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average earnings of a United States player who had a score of 72-68-74-72=286?`:
```sql
                SELECT AVG("earnings") FROM "final_leaderboard" WHERE "country"='united states' AND "score"='72-68-74-72=286';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the game that had a loss of Mercker (3-1)?`

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

CREATE TABLE "september" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at the game that had a loss of Mercker (3-1)?`:
```sql
                SELECT "attendance" FROM "september" WHERE "loss"='mercker (3-1)';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the game that had a loss of Ayala (6-12)?`

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

CREATE TABLE "september" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at the game that had a loss of Ayala (6-12)?`:
```sql
                SELECT "attendance" FROM "september" WHERE "loss"='ayala (6-12)';
```
## Task
Generate a SQL query to answer the following question:
`What was the loss of the game that had a score of 9-7?`

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

CREATE TABLE "september" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the loss of the game that had a score of 9-7?`:
```sql
                SELECT "loss" FROM "september" WHERE "score"='9-7';
```
## Task
Generate a SQL query to answer the following question:
`What was the loss of the game attended by 14,691?`

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

CREATE TABLE "september" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the loss of the game attended by 14,691?`:
```sql
                SELECT "loss" FROM "september" WHERE "attendance"='14,691';
```
## Task
Generate a SQL query to answer the following question:
`What was the loss of the game attended by 29,704?`

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

CREATE TABLE "september" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the loss of the game attended by 29,704?`:
```sql
                SELECT "loss" FROM "september" WHERE "attendance"='29,704';
```
## Task
Generate a SQL query to answer the following question:
`What is the Winner, when the Location is Clemson, SC, and when the Date is November 17, 2012?`

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

CREATE TABLE "game_results" (
  "date" text,
  "winner" text,
  "score" text,
  "location" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Winner, when the Location is Clemson, SC, and when the Date is November 17, 2012?`:
```sql
                SELECT "winner" FROM "game_results" WHERE "location"='clemson, sc' AND "date"='november 17, 2012';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location, when the Score is 38-29?`

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

CREATE TABLE "game_results" (
  "date" text,
  "winner" text,
  "score" text,
  "location" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location, when the Score is 38-29?`:
```sql
                SELECT "location" FROM "game_results" WHERE "score"='38-29';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location, when the Score is 35-31?`

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

CREATE TABLE "game_results" (
  "date" text,
  "winner" text,
  "score" text,
  "location" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location, when the Score is 35-31?`:
```sql
                SELECT "location" FROM "game_results" WHERE "score"='35-31';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score, when the Location is Clemson, SC, when the Winner is Clemson, and when the Date is November 11, 2006?`

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

CREATE TABLE "game_results" (
  "date" text,
  "winner" text,
  "score" text,
  "location" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score, when the Location is Clemson, SC, when the Winner is Clemson, and when the Date is November 11, 2006?`:
```sql
                SELECT "score" FROM "game_results" WHERE "location"='clemson, sc' AND "winner"='clemson' AND "date"='november 11, 2006';
```
## Task
Generate a SQL query to answer the following question:
`What year did finish 1st in LMP1 class?`

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

CREATE TABLE "complete_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 `What year did finish 1st in LMP1 class?`:
```sql
                SELECT AVG("year") FROM "complete_24_hours_of_le_mans_results" WHERE "class"='lmp1' AND "class_pos"='1st';
```
## Task
Generate a SQL query to answer the following question:
`What was the game result on November 16, 1969?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the game result on November 16, 1969?`:
```sql
                SELECT "result" FROM "regular_season" WHERE "date"='november 16, 1969';
```
## Task
Generate a SQL query to answer the following question:
`What is the general classification of stage 3`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the general classification of stage 3`:
```sql
                SELECT "general_classification" FROM "classification_leadership_by_stage" WHERE "stage"='3';
```
## Task
Generate a SQL query to answer the following question:
`How many points did lech piasecki, stephen roche, and carrera jeans-vagabond have?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did lech piasecki, stephen roche, and carrera jeans-vagabond have?`:
```sql
                SELECT "points_classification" FROM "classification_leadership_by_stage" WHERE "young_rider_classification"='lech piasecki' AND "general_classification"='stephen roche' AND "winner"='carrera jeans-vagabond';
```
## Task
Generate a SQL query to answer the following question:
`What venue was the 11 September 2012 game?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue was the 11 September 2012 game?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "date"='11 september 2012';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Decile for a school with a roll smaller than 3?`

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

CREATE TABLE "kaikoura_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Decile for a school with a roll smaller than 3?`:
```sql
                SELECT MIN("decile") FROM "kaikoura_district" WHERE "roll"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the Gender of students at a school with a Decile of 5 and a Roll of 90?`

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

CREATE TABLE "kaikoura_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Gender of students at a school with a Decile of 5 and a Roll of 90?`:
```sql
                SELECT "gender" FROM "kaikoura_district" WHERE "decile"=5 AND "roll"=90;
```
## Task
Generate a SQL query to answer the following question:
`Name the Years of schools with a Roll Larger than 23 and a Decile greater than 5.`

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

CREATE TABLE "kaikoura_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Years of schools with a Roll Larger than 23 and a Decile greater than 5.`:
```sql
                SELECT "years" FROM "kaikoura_district" WHERE "roll">23 AND "decile">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Rolls of State schools in Hapuku with a Decile greater than 4?`

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

CREATE TABLE "kaikoura_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Rolls of State schools in Hapuku with a Decile greater than 4?`:
```sql
                SELECT COUNT("roll") FROM "kaikoura_district" WHERE "authority"='state' AND "area"='hapuku' AND "decile">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the D45 associated with a D42 of r 22?`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D45 associated with a D42 of r 22?`:
```sql
                SELECT "d_45" FROM "senate_composition_before_the_elections" WHERE "d_42"='r 22';
```
## Task
Generate a SQL query to answer the following question:
`What is the D43 associated with a D41 of r 21?`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D43 associated with a D41 of r 21?`:
```sql
                SELECT "d_43" FROM "senate_composition_before_the_elections" WHERE "d_41"='r 21';
```
## Task
Generate a SQL query to answer the following question:
`What is the D42 associated with a D47 of d 27?`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D42 associated with a D47 of d 27?`:
```sql
                SELECT "d_42" FROM "senate_composition_before_the_elections" WHERE "d_47"='d 27';
```
## Task
Generate a SQL query to answer the following question:
`What is the D43 associated with a D41 of r 16?`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D43 associated with a D41 of r 16?`:
```sql
                SELECT "d_43" FROM "senate_composition_before_the_elections" WHERE "d_41"='r 16';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for the game when the loss was hargan (14–13)?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the game when the loss was hargan (14–13)?`:
```sql
                SELECT "record" FROM "game_log" WHERE "loss"='hargan (14–13)';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for the game with a score of 7–5?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the game with a score of 7–5?`:
```sql
                SELECT "record" FROM "game_log" WHERE "score"='7–5';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game with  loss of Aker (3–8)?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game with  loss of Aker (3–8)?`:
```sql
                SELECT "date" FROM "game_log" WHERE "loss"='aker (3–8)';
```
## Task
Generate a SQL query to answer the following question:
`What team was the opponent when the score was 7–1?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was the opponent when the score was 7–1?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "score"='7–1';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the opponent was the Orioles and the loss shows morehead (5–4)?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the opponent was the Orioles and the loss shows morehead (5–4)?`:
```sql
                SELECT "score" FROM "game_log" WHERE "opponent"='orioles' AND "loss"='morehead (5–4)';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponent with a record of 60-61`

### 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 opponent with a record of 60-61`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "record"='60-61';
```
## Task
Generate a SQL query to answer the following question:
`Who had a perfection percentage of 77.96%?`

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

CREATE TABLE "final_results_2007_fai_world_grand_prix" (
  "rank" real,
  "name" text,
  "nationality" text,
  "score" text,
  "perfection" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a perfection percentage of 77.96%?`:
```sql
                SELECT "name" FROM "final_results_2007_fai_world_grand_prix" WHERE "perfection"='77.96%';
```
## Task
Generate a SQL query to answer the following question:
`What was the rank of Svetlana Fedorenko?`

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

CREATE TABLE "final_results_2007_fai_world_grand_prix" (
  "rank" real,
  "name" text,
  "nationality" text,
  "score" text,
  "perfection" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank of Svetlana Fedorenko?`:
```sql
                SELECT "rank" FROM "final_results_2007_fai_world_grand_prix" WHERE "name"='svetlana fedorenko';
```
## Task
Generate a SQL query to answer the following question:
`Who had a perfection percentage of 73.24%?`

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

CREATE TABLE "final_results_2007_fai_world_grand_prix" (
  "rank" real,
  "name" text,
  "nationality" text,
  "score" text,
  "perfection" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a perfection percentage of 73.24%?`:
```sql
                SELECT "name" FROM "final_results_2007_fai_world_grand_prix" WHERE "perfection"='73.24%';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game on June 1?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game on June 1?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='june 1';
```
## Task
Generate a SQL query to answer the following question:
`What was the score against andrei pavel?`

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

CREATE TABLE "futures_and_challengers_singles_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score against andrei pavel?`:
```sql
                SELECT "score" FROM "futures_and_challengers_singles_titles" WHERE "opponent"='andrei pavel';
```
## Task
Generate a SQL query to answer the following question:
`When was the tournament of bologna?`

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

CREATE TABLE "futures_and_challengers_singles_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the tournament of bologna?`:
```sql
                SELECT "date" FROM "futures_and_challengers_singles_titles" WHERE "tournament"='bologna';
```
## Task
Generate a SQL query to answer the following question:
`Who played on clay and had a score of 6–1, 7–6?`

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

CREATE TABLE "futures_and_challengers_singles_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played on clay and had a score of 6–1, 7–6?`:
```sql
                SELECT "opponent" FROM "futures_and_challengers_singles_titles" WHERE "surface"='clay' AND "score"='6–1, 7–6';
```
## Task
Generate a SQL query to answer the following question:
`Who played on clay on 3 march 2012?`

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

CREATE TABLE "futures_and_challengers_singles_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played on clay on 3 march 2012?`:
```sql
                SELECT "opponent" FROM "futures_and_challengers_singles_titles" WHERE "surface"='clay' AND "date"='3 march 2012';
```
## Task
Generate a SQL query to answer the following question:
`What was the score against fabrice martin?`

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

CREATE TABLE "futures_and_challengers_singles_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score against fabrice martin?`:
```sql
                SELECT "score" FROM "futures_and_challengers_singles_titles" WHERE "opponent"='fabrice martin';
```
## Task
Generate a SQL query to answer the following question:
`What was the surface of the score of 7–5, 3–6, 7–6?`

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

CREATE TABLE "futures_and_challengers_singles_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface of the score of 7–5, 3–6, 7–6?`:
```sql
                SELECT "surface" FROM "futures_and_challengers_singles_titles" WHERE "score"='7–5, 3–6, 7–6';
```
## Task
Generate a SQL query to answer the following question:
`What's the Order with an Elector of Marino Bulcani?`

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

CREATE TABLE "cardinal_electors" (
  "elector" text,
  "order" text,
  "title" text,
  "elevated" text,
  "elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Order with an Elector of Marino Bulcani?`:
```sql
                SELECT "order" FROM "cardinal_electors" WHERE "elector"='marino bulcani';
```
## Task
Generate a SQL query to answer the following question:
`What's the Elevator that has Elevated: 1378, September 18, an Order of Cardinal-Priest, and an Elector of Poncello Orsini?`

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

CREATE TABLE "cardinal_electors" (
  "elector" text,
  "order" text,
  "title" text,
  "elevated" text,
  "elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Elevator that has Elevated: 1378, September 18, an Order of Cardinal-Priest, and an Elector of Poncello Orsini?`:
```sql
                SELECT "elevator" FROM "cardinal_electors" WHERE "elevated"='1378, september 18' AND "order"='cardinal-priest' AND "elector"='poncello orsini';
```
## Task
Generate a SQL query to answer the following question:
`What is listed as the Elector with the Title of Deacon of S. Maria in Domnica?`

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

CREATE TABLE "cardinal_electors" (
  "elector" text,
  "order" text,
  "title" text,
  "elevated" text,
  "elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed as the Elector with the Title of Deacon of S. Maria in Domnica?`:
```sql
                SELECT "elector" FROM "cardinal_electors" WHERE "title"='deacon of s. maria in domnica';
```
## Task
Generate a SQL query to answer the following question:
`What's listed for the Elevated category that has an Order of Cardinal-Bishop?`

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

CREATE TABLE "cardinal_electors" (
  "elector" text,
  "order" text,
  "title" text,
  "elevated" text,
  "elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's listed for the Elevated category that has an Order of Cardinal-Bishop?`:
```sql
                SELECT "elevated" FROM "cardinal_electors" WHERE "order"='cardinal-bishop';
```
## Task
Generate a SQL query to answer the following question:
`The Milford School has what Division Record?`

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

CREATE TABLE "2006_regular_season_football_standings" (
  "school" text,
  "team" text,
  "division_record" text,
  "overall_record" text,
  "season_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Milford School has what Division Record?`:
```sql
                SELECT "division_record" FROM "2006_regular_season_football_standings" WHERE "school"='milford';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the School of the Sussex Tech's Team?`

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

CREATE TABLE "2006_regular_season_football_standings" (
  "school" text,
  "team" text,
  "division_record" text,
  "overall_record" text,
  "season_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the School of the Sussex Tech's Team?`:
```sql
                SELECT "team" FROM "2006_regular_season_football_standings" WHERE "school"='sussex tech';
```
## Task
Generate a SQL query to answer the following question:
`What was Arnold Palmer's score in the tournamnet?`

### 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_us" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Arnold Palmer's score in the tournamnet?`:
```sql
                SELECT "score" FROM "final_leaderboard" WHERE "player"='arnold palmer';
```
## Task
Generate a SQL query to answer the following question:
`What the name of Peter White's party?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What the name of Peter White's party?`:
```sql
                SELECT "party" FROM "see_also" WHERE "member"='peter white';
```
## Task
Generate a SQL query to answer the following question:
`What term did an Electorate of indi have in office?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What term did an Electorate of indi have in office?`:
```sql
                SELECT "term_in_office" FROM "see_also" WHERE "electorate"='indi';
```
## Task
Generate a SQL query to answer the following question:
`What term did hon ralph hunt serve in office?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What term did hon ralph hunt serve in office?`:
```sql
                SELECT "term_in_office" FROM "see_also" WHERE "member"='hon ralph hunt';
```
## Task
Generate a SQL query to answer the following question:
`What party is Peter Fisher from Vic serve in office?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What party is Peter Fisher from Vic serve in office?`:
```sql
                SELECT "party" FROM "see_also" WHERE "state"='vic' AND "member"='peter fisher';
```
## Task
Generate a SQL query to answer the following question:
`How many laps were done in 2012?`

### 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 `How many laps were done in 2012?`:
```sql
                SELECT SUM("laps") FROM "24_hours_of_le_mans_results" WHERE "year"=2012;
```
## Task
Generate a SQL query to answer the following question:
`On what day was the score of 1–6 6–1 3–6 achieved?`

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

CREATE TABLE "singles_6_6" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what day was the score of 1–6 6–1 3–6 achieved?`:
```sql
                SELECT "date" FROM "singles_6_6" WHERE "score"='1–6 6–1 3–6';
```
## Task
Generate a SQL query to answer the following question:
`Name the average gold for czech republic and bronze less than 1 when total is less than 14`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average gold for czech republic and bronze less than 1 when total is less than 14`:
```sql
                SELECT AVG("gold") FROM "medal_table" WHERE "total"<14 AND "bronze"<1 AND "nation"='czech republic';
```
## Task
Generate a SQL query to answer the following question:
`Name the highest rank when silver is 4 and bronze is less than 3`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the highest rank when silver is 4 and bronze is less than 3`:
```sql
                SELECT MAX("rank") FROM "medal_table" WHERE "silver"=4 AND "bronze"<3;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of total for bronze of 4 and silver more than 6`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of total for bronze of 4 and silver more than 6`:
```sql
                SELECT COUNT("total") FROM "medal_table" WHERE "bronze"=4 AND "silver">6;
```
## Task
Generate a SQL query to answer the following question:
`When the Surface was Carpet (i), what was the Outcome?`

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

CREATE TABLE "doubles_19_5_14" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Surface was Carpet (i), what was the Outcome?`:
```sql
                SELECT "outcome" FROM "doubles_19_5_14" WHERE "surface"='carpet (i)';
```
## Task
Generate a SQL query to answer the following question:
`What is the draw number of the song with a place lower than 6 and more than 38 votes?`

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

CREATE TABLE "eurolaul_26_january_2002" (
  "draw" real,
  "artist" text,
  "song" text,
  "votes" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the draw number of the song with a place lower than 6 and more than 38 votes?`:
```sql
                SELECT SUM("draw") FROM "eurolaul_26_january_2002" WHERE "place">6 AND "votes">38;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of votes Sahlene with a place below 1 has?`

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

CREATE TABLE "eurolaul_26_january_2002" (
  "draw" real,
  "artist" text,
  "song" text,
  "votes" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of votes Sahlene with a place below 1 has?`:
```sql
                SELECT COUNT("votes") FROM "eurolaul_26_january_2002" WHERE "artist"='sahlene' AND "place">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest place of the song with 38 votes and a draw great than 3?`

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

CREATE TABLE "eurolaul_26_january_2002" (
  "draw" real,
  "artist" text,
  "song" text,
  "votes" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest place of the song with 38 votes and a draw great than 3?`:
```sql
                SELECT MAX("place") FROM "eurolaul_26_january_2002" WHERE "votes"=38 AND "draw">3;
```
## Task
Generate a SQL query to answer the following question:
`How many votes did Yvetta Kadakas & Ivo Linna, who had less than 4 draws, have?`

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

CREATE TABLE "eurolaul_26_january_2002" (
  "draw" real,
  "artist" text,
  "song" text,
  "votes" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did Yvetta Kadakas & Ivo Linna, who had less than 4 draws, have?`:
```sql
                SELECT SUM("votes") FROM "eurolaul_26_january_2002" WHERE "draw"<4 AND "artist"='yvetta kadakas & ivo linna';
```
## Task
Generate a SQL query to answer the following question:
`What year was there a finish of 3?`

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

CREATE TABLE "indianapolis_500" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" text,
  "finish" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was there a finish of 3?`:
```sql
                SELECT "year" FROM "indianapolis_500" WHERE "finish"='3';
```
## Task
Generate a SQL query to answer the following question:
`What year was the start 33?`

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

CREATE TABLE "indianapolis_500" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" text,
  "finish" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the start 33?`:
```sql
                SELECT SUM("year") FROM "indianapolis_500" WHERE "start"='33';
```
## Task
Generate a SQL query to answer the following question:
`When was there a team of Simon and the start was 3?`

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

CREATE TABLE "indianapolis_500" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" text,
  "finish" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was there a team of Simon and the start was 3?`:
```sql
                SELECT "year" FROM "indianapolis_500" WHERE "team"='simon' AND "start"='3';
```
## Task
Generate a SQL query to answer the following question:
`What's the name of the 1985 city with a Spire (m) of 105, and a Roof (m) smaller than 96?`

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

CREATE TABLE "completed" (
  "rank" real,
  "city" text,
  "roof_m" real,
  "spire_m" text,
  "floors" real,
  "built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of the 1985 city with a Spire (m) of 105, and a Roof (m) smaller than 96?`:
```sql
                SELECT "city" FROM "completed" WHERE "spire_m"='105' AND "roof_m"<96 AND "built"=1985;
```
## Task
Generate a SQL query to answer the following question:
`What's the average number of floors that were built in 2004, and have a roof (m) of 106?`

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

CREATE TABLE "completed" (
  "rank" real,
  "city" text,
  "roof_m" real,
  "spire_m" text,
  "floors" real,
  "built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average number of floors that were built in 2004, and have a roof (m) of 106?`:
```sql
                SELECT AVG("floors") FROM "completed" WHERE "built"=2004 AND "roof_m"=106;
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of floors built after 2006, and have a rank of 12?`

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

CREATE TABLE "completed" (
  "rank" real,
  "city" text,
  "roof_m" real,
  "spire_m" text,
  "floors" real,
  "built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of floors built after 2006, and have a rank of 12?`:
```sql
                SELECT SUM("floors") FROM "completed" WHERE "built">2006 AND "rank"=12;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of attendance for H/A values of "n"?`

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

CREATE TABLE "league_cup" (
  "date" text,
  "round" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of attendance for H/A values of "n"?`:
```sql
                SELECT SUM("attendance") FROM "league_cup" WHERE "h_a"='n';
```
## Task
Generate a SQL query to answer the following question:
`Name the score which has opponent of stefano galvani`

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

CREATE TABLE "singles" (
  "outcome" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score which has opponent of stefano galvani`:
```sql
                SELECT "score" FROM "singles" WHERE "opponent"='stefano galvani';
```
## Task
Generate a SQL query to answer the following question:
`Name the score with opponent of javier genaro-martinez`

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

CREATE TABLE "singles" (
  "outcome" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score with opponent of javier genaro-martinez`:
```sql
                SELECT "score" FROM "singles" WHERE "opponent"='javier genaro-martinez';
```
## Task
Generate a SQL query to answer the following question:
`Name the outcome for dunlop world challenge`

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

CREATE TABLE "singles" (
  "outcome" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the outcome for dunlop world challenge`:
```sql
                SELECT "outcome" FROM "singles" WHERE "tournament"='dunlop world challenge';
```
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team on December 6?`

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

CREATE TABLE "1998" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visiting team on December 6?`:
```sql
                SELECT "visiting_team" FROM "1998" WHERE "date"='december 6';
```
## Task
Generate a SQL query to answer the following question:
`Who was the host team on October 4?`

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

CREATE TABLE "1998" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the host team on October 4?`:
```sql
                SELECT "host_team" FROM "1998" WHERE "date"='october 4';
```
## Task
Generate a SQL query to answer the following question:
`In New Zealand, what's the value that has an unknown date and is an energy business?`

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

CREATE TABLE "list_of_subsidiaries" (
  "date" text,
  "company" text,
  "business" text,
  "country" text,
  "value_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `In New Zealand, what's the value that has an unknown date and is an energy business?`:
```sql
                SELECT "value_usd" FROM "list_of_subsidiaries" WHERE "date"='unknown' AND "business"='energy' AND "country"='new zealand';
```
## Task
Generate a SQL query to answer the following question:
`What company has an unknown date and is an energy business?`

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

CREATE TABLE "list_of_subsidiaries" (
  "date" text,
  "company" text,
  "business" text,
  "country" text,
  "value_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What company has an unknown date and is an energy business?`:
```sql
                SELECT "company" FROM "list_of_subsidiaries" WHERE "business"='energy' AND "date"='unknown';
```
## Task
Generate a SQL query to answer the following question:
`In the United Kingdom, what company has an unknown date and is an energy business?`

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

CREATE TABLE "list_of_subsidiaries" (
  "date" text,
  "company" text,
  "business" text,
  "country" text,
  "value_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the United Kingdom, what company has an unknown date and is an energy business?`:
```sql
                SELECT "company" FROM "list_of_subsidiaries" WHERE "business"='energy' AND "date"='unknown' AND "country"='united kingdom';
```
## Task
Generate a SQL query to answer the following question:
`For the United Kingdom, what's the date?`

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

CREATE TABLE "list_of_subsidiaries" (
  "date" text,
  "company" text,
  "business" text,
  "country" text,
  "value_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the United Kingdom, what's the date?`:
```sql
                SELECT "date" FROM "list_of_subsidiaries" WHERE "country"='united kingdom';
```
## Task
Generate a SQL query to answer the following question:
`For the Enernoc Australia Pty Ltd, what's the country with an unknown date?`

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

CREATE TABLE "list_of_subsidiaries" (
  "date" text,
  "company" text,
  "business" text,
  "country" text,
  "value_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the Enernoc Australia Pty Ltd, what's the country with an unknown date?`:
```sql
                SELECT "country" FROM "list_of_subsidiaries" WHERE "date"='unknown' AND "company"='enernoc australia pty ltd';
```
## Task
Generate a SQL query to answer the following question:
`Which date is associated with a venue of Luxembourg?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date is associated with a venue of Luxembourg?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "venue"='luxembourg';
```