cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who was the winner at Rest Day course?`

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

CREATE TABLE "route_and_stages" (
  "date" text,
  "course" text,
  "distance" text,
  "type" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner at Rest Day course?`:
```sql
                SELECT "winner" FROM "route_and_stages" WHERE "course"='rest day';
```
## Task
Generate a SQL query to answer the following question:
`What's the type on Sestri Levante to Riomaggiore?`

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

CREATE TABLE "route_and_stages" (
  "date" text,
  "course" text,
  "distance" text,
  "type" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the type on Sestri Levante to Riomaggiore?`:
```sql
                SELECT "type" FROM "route_and_stages" WHERE "course"='sestri levante to riomaggiore';
```
## Task
Generate a SQL query to answer the following question:
`Which player competed in 12 events?`

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

CREATE TABLE "regular_season_rankings" (
  "player" text,
  "country" text,
  "points" real,
  "events" real,
  "reset_points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player competed in 12 events?`:
```sql
                SELECT "player" FROM "regular_season_rankings" WHERE "events"=12;
```
## Task
Generate a SQL query to answer the following question:
`what is the highest finishes when the points is less than 337, the stage wins is 2 and the wins is more than 0?`

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

CREATE TABLE "constructors" (
  "constructor" text,
  "chassis" text,
  "starts" real,
  "finishes" real,
  "wins" real,
  "podiums" real,
  "stage_wins" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest finishes when the points is less than 337, the stage wins is 2 and the wins is more than 0?`:
```sql
                SELECT MAX("finishes") FROM "constructors" WHERE "points"<337 AND "stage_wins"=2 AND "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`what is the average starts when the chassis is focus rs wrc 08 and finishes is more than 27?`

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

CREATE TABLE "constructors" (
  "constructor" text,
  "chassis" text,
  "starts" real,
  "finishes" real,
  "wins" real,
  "podiums" real,
  "stage_wins" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average starts when the chassis is focus rs wrc 08 and finishes is more than 27?`:
```sql
                SELECT AVG("starts") FROM "constructors" WHERE "chassis"='focus rs wrc 08' AND "finishes">27;
```
## Task
Generate a SQL query to answer the following question:
`what is the finishes when points is more than 337 and starts is more than 26?`

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

CREATE TABLE "constructors" (
  "constructor" text,
  "chassis" text,
  "starts" real,
  "finishes" real,
  "wins" real,
  "podiums" real,
  "stage_wins" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the finishes when points is more than 337 and starts is more than 26?`:
```sql
                SELECT SUM("finishes") FROM "constructors" WHERE "points">337 AND "starts">26;
```
## Task
Generate a SQL query to answer the following question:
`what is the average starts when the podiums is more than 0, stage wins is more than 39 and points is more than 456?`

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

CREATE TABLE "constructors" (
  "constructor" text,
  "chassis" text,
  "starts" real,
  "finishes" real,
  "wins" real,
  "podiums" real,
  "stage_wins" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average starts when the podiums is more than 0, stage wins is more than 39 and points is more than 456?`:
```sql
                SELECT AVG("starts") FROM "constructors" WHERE "podiums">0 AND "stage_wins">39 AND "points">456;
```
## Task
Generate a SQL query to answer the following question:
`Which School has a Mascot of squires?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School has a Mascot of squires?`:
```sql
                SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='squires';
```
## Task
Generate a SQL query to answer the following question:
`Which School has a #/ County of 85 wabash, and an IHSAA Football Class of A, and a Mascot of norsemen?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School has a #/ County of 85 wabash, and an IHSAA Football Class of A, and a Mascot of norsemen?`:
```sql
                SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "num_county"='85 wabash' AND "ihsaa_football_class"='a' AND "mascot"='norsemen';
```
## Task
Generate a SQL query to answer the following question:
`Which IHSAA Football Class has a School of whitko?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which IHSAA Football Class has a School of whitko?`:
```sql
                SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "school"='whitko';
```
## Task
Generate a SQL query to answer the following question:
`Which IHSAA Football Class has a Location of wabash, and a School of wabash?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "num_county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which IHSAA Football Class has a Location of wabash, and a School of wabash?`:
```sql
                SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "location"='wabash' AND "school"='wabash';
```
## Task
Generate a SQL query to answer the following question:
`With a Total of more than 149, what is Davis Love III's To par?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_won" real,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `With a Total of more than 149, what is Davis Love III's To par?`:
```sql
                SELECT AVG("to_par") FROM "missed_the_cut" WHERE "player"='davis love iii' AND "total">149;
```
## Task
Generate a SQL query to answer the following question:
`What is the Total of the Player with a To par of 6 and Year won after 1993?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_won" real,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Total of the Player with a To par of 6 and Year won after 1993?`:
```sql
                SELECT MIN("total") FROM "missed_the_cut" WHERE "year_won">1993 AND "to_par"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is the Year won of Davis Love III with a Total of less than 149?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_won" real,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Year won of Davis Love III with a Total of less than 149?`:
```sql
                SELECT COUNT("year_won") FROM "missed_the_cut" WHERE "player"='davis love iii' AND "total"<149;
```
## Task
Generate a SQL query to answer the following question:
`What is the genre of the Mass Effect game?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" text,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the genre of the Mass Effect game?`:
```sql
                SELECT "genre" FROM "list_of_game_of_the_year_awards" WHERE "game"='mass effect';
```
## Task
Generate a SQL query to answer the following question:
`What is the genre of the game from 2006?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" text,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the genre of the game from 2006?`:
```sql
                SELECT "genre" FROM "list_of_game_of_the_year_awards" WHERE "year"='2006';
```
## Task
Generate a SQL query to answer the following question:
`What is the genre of the game developed by Nintendo EAD?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" text,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the genre of the game developed by Nintendo EAD?`:
```sql
                SELECT "genre" FROM "list_of_game_of_the_year_awards" WHERE "developer_s"='nintendo ead';
```
## Task
Generate a SQL query to answer the following question:
`What is the platform of the game built in 2006?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" text,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the platform of the game built in 2006?`:
```sql
                SELECT "platform_s" FROM "list_of_game_of_the_year_awards" WHERE "year"='2006';
```
## Task
Generate a SQL query to answer the following question:
`What game was developed by Ubisoft Montreal?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" text,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game was developed by Ubisoft Montreal?`:
```sql
                SELECT "game" FROM "list_of_game_of_the_year_awards" WHERE "developer_s"='ubisoft montreal';
```
## Task
Generate a SQL query to answer the following question:
`What is the genre for Portal 2?`

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

CREATE TABLE "ign" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the genre for Portal 2?`:
```sql
                SELECT "genre" FROM "ign" WHERE "game"='portal 2';
```
## Task
Generate a SQL query to answer the following question:
`Which platforms can you play Portal 2 on?`

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

CREATE TABLE "ign" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which platforms can you play Portal 2 on?`:
```sql
                SELECT "platform_s" FROM "ign" WHERE "game"='portal 2';
```
## Task
Generate a SQL query to answer the following question:
`What event had the 1500m freestyle?`

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

CREATE TABLE "men" (
  "event" text,
  "time" text,
  "date" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event had the 1500m freestyle?`:
```sql
                SELECT "meet" FROM "men" WHERE "event"='1500m freestyle';
```
## Task
Generate a SQL query to answer the following question:
`Who is from italy has 0 giro wins, 0 young rider and less than 3 maglia rosa?`

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

CREATE TABLE "individual_records" (
  "rank" text,
  "name" text,
  "country" text,
  "maglia_rosa" real,
  "giro_wins" real,
  "points" real,
  "young_rider" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is from italy has 0 giro wins, 0 young rider and less than 3 maglia rosa?`:
```sql
                SELECT "name" FROM "individual_records" WHERE "country"='italy' AND "giro_wins"=0 AND "young_rider"=0 AND "maglia_rosa"<3;
```
## Task
Generate a SQL query to answer the following question:
`what is the least maglia rosa when the rank is 108=, the country is united kingdom and young rider is less than 0?`

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

CREATE TABLE "individual_records" (
  "rank" text,
  "name" text,
  "country" text,
  "maglia_rosa" real,
  "giro_wins" real,
  "points" real,
  "young_rider" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the least maglia rosa when the rank is 108=, the country is united kingdom and young rider is less than 0?`:
```sql
                SELECT MIN("maglia_rosa") FROM "individual_records" WHERE "rank"='108=' AND "country"='united kingdom' AND "young_rider"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many bronze medals for the United Kingdom when the silver was less than 0?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many bronze medals for the United Kingdom when the silver was less than 0?`:
```sql
                SELECT AVG("bronze") FROM "medals_table" WHERE "nation"='united kingdom' AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many bronze medals for West Germany having a total more than 2?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many bronze medals for West Germany having a total more than 2?`:
```sql
                SELECT COUNT("bronze") FROM "medals_table" WHERE "total">2 AND "nation"='west germany';
```
## Task
Generate a SQL query to answer the following question:
`What is the amount of silver for rank 11 having less than 0 gold?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the amount of silver for rank 11 having less than 0 gold?`:
```sql
                SELECT MIN("silver") FROM "medals_table" WHERE "rank"='11' AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What rank is Bulgaria with less than 3 silver and more than 1 bronze?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What rank is Bulgaria with less than 3 silver and more than 1 bronze?`:
```sql
                SELECT "rank" FROM "medals_table" WHERE "silver"<3 AND "bronze">1 AND "nation"='bulgaria';
```
## Task
Generate a SQL query to answer the following question:
`What is the mountains classification when stage is 17?`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "intergiro_classification" text,
  "trofeo_fast_team" text,
  "trofeo_super_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mountains classification when stage is 17?`:
```sql
                SELECT "mountains_classification" FROM "classification_leadership_by_stage" WHERE "stage"='17';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner when points classification is Robbie Mcewen, and a Mountains classification is José Rujano?`

### 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,
  "intergiro_classification" text,
  "trofeo_fast_team" text,
  "trofeo_super_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner when points classification is Robbie Mcewen, and a Mountains classification is José Rujano?`:
```sql
                SELECT "winner" FROM "classification_leadership_by_stage" WHERE "points_classification"='robbie mcewen' AND "mountains_classification"='josé rujano';
```
## Task
Generate a SQL query to answer the following question:
`What is the Trofeo Fast Team when stage is 19?`

### 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,
  "intergiro_classification" text,
  "trofeo_fast_team" text,
  "trofeo_super_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Trofeo Fast Team when stage is 19?`:
```sql
                SELECT "trofeo_fast_team" FROM "classification_leadership_by_stage" WHERE "stage"='19';
```
## Task
Generate a SQL query to answer the following question:
`What is the points classification when the Intergiro classification is Sven Krauß, and the mountains classification is koldo gil, Trofeo Super Team is Liquigas-Bianchi, and stage is 9?`

### 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,
  "intergiro_classification" text,
  "trofeo_fast_team" text,
  "trofeo_super_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the points classification when the Intergiro classification is Sven Krauß, and the mountains classification is koldo gil, Trofeo Super Team is Liquigas-Bianchi, and stage is 9?`:
```sql
                SELECT "points_classification" FROM "classification_leadership_by_stage" WHERE "intergiro_classification"='sven krauß' AND "mountains_classification"='koldo gil' AND "trofeo_super_team"='liquigas-bianchi' AND "stage"='9';
```
## Task
Generate a SQL query to answer the following question:
`What is the Intergiro classification when the points classification is Paolo Bettini, Trofeo Super Team is Davitamon-Lotto, and the Mountains classification is José Rujano?`

### 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,
  "intergiro_classification" text,
  "trofeo_fast_team" text,
  "trofeo_super_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Intergiro classification when the points classification is Paolo Bettini, Trofeo Super Team is Davitamon-Lotto, and the Mountains classification is José Rujano?`:
```sql
                SELECT "intergiro_classification" FROM "classification_leadership_by_stage" WHERE "points_classification"='paolo bettini' AND "trofeo_super_team"='davitamon-lotto' AND "mountains_classification"='josé rujano';
```
## Task
Generate a SQL query to answer the following question:
`What is the Stage when the points classification is Danilo Di Luca, Mountains classification is José Rujano, and general classification is Danilo Di Luca?`

### 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,
  "intergiro_classification" text,
  "trofeo_fast_team" text,
  "trofeo_super_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Stage when the points classification is Danilo Di Luca, Mountains classification is José Rujano, and general classification is Danilo Di Luca?`:
```sql
                SELECT "stage" FROM "classification_leadership_by_stage" WHERE "points_classification"='danilo di luca' AND "mountains_classification"='josé rujano' AND "general_classification"='danilo di luca';
```
## Task
Generate a SQL query to answer the following question:
`What is the average GEO ID with a latitude less than 46.57958, a latitude of -102.109898 and more than 35.99 square miles of land?`

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

CREATE TABLE "c" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average GEO ID with a latitude less than 46.57958, a latitude of -102.109898 and more than 35.99 square miles of land?`:
```sql
                SELECT AVG("geo_id") FROM "c" WHERE "latitude"<46.57958 AND "longitude"=-102.109898 AND "land_sqmi">35.99;
```
## Task
Generate a SQL query to answer the following question:
`What GEO ID has a longitude of -102.693028?`

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

CREATE TABLE "c" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What GEO ID has a longitude of -102.693028?`:
```sql
                SELECT "geo_id" FROM "c" WHERE "longitude"=-102.693028;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest latitude when there are more than 0.518 square miles of water, a longitude less than -99.830606, and a population of 18?`

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

CREATE TABLE "c" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest latitude when there are more than 0.518 square miles of water, a longitude less than -99.830606, and a population of 18?`:
```sql
                SELECT MAX("latitude") FROM "c" WHERE "water_sqmi">0.518 AND "longitude"<-99.830606 AND "pop_2010"=18;
```
## Task
Generate a SQL query to answer the following question:
`What is the average lane for Australia?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average lane for Australia?`:
```sql
                SELECT AVG("lane") FROM "semifinal_1" WHERE "nationality"='australia';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank for Josefin Lillhage?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank for Josefin Lillhage?`:
```sql
                SELECT MAX("rank") FROM "semifinal_1" WHERE "name"='josefin lillhage';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the final quarter (1)?`

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

CREATE TABLE "fixtures" (
  "final" text,
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" real,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for the final quarter (1)?`:
```sql
                SELECT "attendance" FROM "fixtures" WHERE "final"='quarter (1)';
```
## Task
Generate a SQL query to answer the following question:
`What stadium had the score 1 - 1 dodd 38'?`

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

CREATE TABLE "fixtures" (
  "final" text,
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" real,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What stadium had the score 1 - 1 dodd 38'?`:
```sql
                SELECT "stadium" FROM "fixtures" WHERE "score"='1 - 1 dodd 38''';
```
## Task
Generate a SQL query to answer the following question:
`What method was used in the Pride 17 event?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What method was used in the Pride 17 event?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='pride 17';
```
## Task
Generate a SQL query to answer the following question:
`What is the Rank of the building that has a Highest floor larger than 50?`

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

CREATE TABLE "list_of_tallest_buildings" (
  "rank" real,
  "name" text,
  "height" text,
  "highest_floor" real,
  "city" text,
  "primary_use" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rank of the building that has a Highest floor larger than 50?`:
```sql
                SELECT "rank" FROM "list_of_tallest_buildings" WHERE "highest_floor">50;
```
## Task
Generate a SQL query to answer the following question:
`what is the most free when the total is 81.167 and the rank is higher than 23?`

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

CREATE TABLE "preliminary" (
  "rank" real,
  "country" text,
  "athlete" text,
  "technical" real,
  "free" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the most free when the total is 81.167 and the rank is higher than 23?`:
```sql
                SELECT MAX("free") FROM "preliminary" WHERE "total"=81.167 AND "rank">23;
```
## Task
Generate a SQL query to answer the following question:
`How many tracks have an unformatted capacity per side of 2000kb?`

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

CREATE TABLE "floppy_disk_physical_characteristics_cap" (
  "size" text,
  "density" text,
  "tracks" real,
  "coercivity" text,
  "unformatted_capacity_per_side" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tracks have an unformatted capacity per side of 2000kb?`:
```sql
                SELECT COUNT("tracks") FROM "floppy_disk_physical_characteristics_cap" WHERE "unformatted_capacity_per_side"='2000kb';
```
## Task
Generate a SQL query to answer the following question:
`What is the unformatted capacity per side if the size is 8in?`

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

CREATE TABLE "floppy_disk_physical_characteristics_cap" (
  "size" text,
  "density" text,
  "tracks" real,
  "coercivity" text,
  "unformatted_capacity_per_side" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the unformatted capacity per side if the size is 8in?`:
```sql
                SELECT "unformatted_capacity_per_side" FROM "floppy_disk_physical_characteristics_cap" WHERE "size"='8in';
```
## Task
Generate a SQL query to answer the following question:
`How many tracks have a single density?`

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

CREATE TABLE "floppy_disk_physical_characteristics_cap" (
  "size" text,
  "density" text,
  "tracks" real,
  "coercivity" text,
  "unformatted_capacity_per_side" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tracks have a single density?`:
```sql
                SELECT COUNT("tracks") FROM "floppy_disk_physical_characteristics_cap" WHERE "density"='single';
```
## Task
Generate a SQL query to answer the following question:
`What's listed for Elevatated that has Cardinalatial title of Priest of SS. XII Apostoli?`

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

CREATE TABLE "absentee_cardinals" (
  "elector" text,
  "place_of_birth" text,
  "cardinalatial_title" text,
  "elevated" text,
  "elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's listed for Elevatated that has Cardinalatial title of Priest of SS. XII Apostoli?`:
```sql
                SELECT "elevated" FROM "absentee_cardinals" WHERE "cardinalatial_title"='priest of ss. xii apostoli';
```
## Task
Generate a SQL query to answer the following question:
`What Elector has the Place of birth of San Severino?`

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

CREATE TABLE "absentee_cardinals" (
  "elector" text,
  "place_of_birth" text,
  "cardinalatial_title" text,
  "elevated" text,
  "elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Elector has the Place of birth of San Severino?`:
```sql
                SELECT "elector" FROM "absentee_cardinals" WHERE "place_of_birth"='san severino';
```
## Task
Generate a SQL query to answer the following question:
`What's the Cardinalatial Title has the Elevated of December 18, 1182, the Place of birth of Lucca, and the Electo rof Pandolfo?`

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

CREATE TABLE "absentee_cardinals" (
  "elector" text,
  "place_of_birth" text,
  "cardinalatial_title" text,
  "elevated" text,
  "elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Cardinalatial Title has the Elevated of December 18, 1182, the Place of birth of Lucca, and the Electo rof Pandolfo?`:
```sql
                SELECT "cardinalatial_title" FROM "absentee_cardinals" WHERE "elevated"='december 18, 1182' AND "place_of_birth"='lucca' AND "elector"='pandolfo';
```
## Task
Generate a SQL query to answer the following question:
`What's listed for the Elevated with a Cardinalatial title of Priest of S. Eusebio and Archbishop of Benevento?`

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

CREATE TABLE "absentee_cardinals" (
  "elector" text,
  "place_of_birth" text,
  "cardinalatial_title" text,
  "elevated" text,
  "elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's listed for the Elevated with a Cardinalatial title of Priest of S. Eusebio and Archbishop of Benevento?`:
```sql
                SELECT "elevated" FROM "absentee_cardinals" WHERE "cardinalatial_title"='priest of s. eusebio and archbishop of benevento';
```
## Task
Generate a SQL query to answer the following question:
`What Elector has the Place of Birth listed as Bavaria?`

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

CREATE TABLE "absentee_cardinals" (
  "elector" text,
  "place_of_birth" text,
  "cardinalatial_title" text,
  "elevated" text,
  "elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Elector has the Place of Birth listed as Bavaria?`:
```sql
                SELECT "elector" FROM "absentee_cardinals" WHERE "place_of_birth"='bavaria';
```
## Task
Generate a SQL query to answer the following question:
`What are the total apps that have 41 as the League apps, with total goals greater than 1?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" real,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the total apps that have 41 as the League apps, with total goals greater than 1?`:
```sql
                SELECT "total_apps" FROM "appearances_and_goals" WHERE "league_apps"='41' AND "total_goals">1;
```
## Task
Generate a SQL query to answer the following question:
`What are the average league goals that have 2 (1) as the total apps?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" real,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the average league goals that have 2 (1) as the total apps?`:
```sql
                SELECT AVG("league_goals") FROM "appearances_and_goals" WHERE "total_apps"='2 (1)';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest league goals that have barry endean as the name, wirh FA cup apps greater than 0?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" real,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest league goals that have barry endean as the name, wirh FA cup apps greater than 0?`:
```sql
                SELECT MAX("league_goals") FROM "appearances_and_goals" WHERE "name"='barry endean' AND "fa_cup_apps">0;
```
## Task
Generate a SQL query to answer the following question:
`Which school left in 1968 and has the team name of Panthers?`

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

CREATE TABLE "former_members" (
  "school" text,
  "city" text,
  "team_name" text,
  "county" text,
  "year_joined" text,
  "year_left" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school left in 1968 and has the team name of Panthers?`:
```sql
                SELECT "school" FROM "former_members" WHERE "team_name"='panthers' AND "year_left"='1968';
```
## Task
Generate a SQL query to answer the following question:
`What year did a team from North Dearborn leave?`

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

CREATE TABLE "former_members" (
  "school" text,
  "city" text,
  "team_name" text,
  "county" text,
  "year_joined" text,
  "year_left" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did a team from North Dearborn leave?`:
```sql
                SELECT "year_left" FROM "former_members" WHERE "school"='north dearborn';
```
## Task
Generate a SQL query to answer the following question:
`Which city has a school of North Vernon and a county of 40 Jennings?`

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

CREATE TABLE "former_members" (
  "school" text,
  "city" text,
  "team_name" text,
  "county" text,
  "year_joined" text,
  "year_left" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has a school of North Vernon and a county of 40 Jennings?`:
```sql
                SELECT "city" FROM "former_members" WHERE "county"='40 jennings' AND "school"='north vernon';
```
## Task
Generate a SQL query to answer the following question:
`What year did a school from Jennings County join?`

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

CREATE TABLE "former_members" (
  "school" text,
  "city" text,
  "team_name" text,
  "county" text,
  "year_joined" text,
  "year_left" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did a school from Jennings County join?`:
```sql
                SELECT "year_joined" FROM "former_members" WHERE "school"='jennings county';
```
## Task
Generate a SQL query to answer the following question:
`Which school are the Red Devils from?`

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

CREATE TABLE "former_members" (
  "school" text,
  "city" text,
  "team_name" text,
  "county" text,
  "year_joined" text,
  "year_left" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school are the Red Devils from?`:
```sql
                SELECT "school" FROM "former_members" WHERE "team_name"='red devils';
```
## Task
Generate a SQL query to answer the following question:
`Which school comes from Brookville?`

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

CREATE TABLE "former_members" (
  "school" text,
  "city" text,
  "team_name" text,
  "county" text,
  "year_joined" text,
  "year_left" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school comes from Brookville?`:
```sql
                SELECT "school" FROM "former_members" WHERE "city"='brookville';
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest rank of Lane 3?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest rank of Lane 3?`:
```sql
                SELECT MIN("rank") FROM "semifinal_1" WHERE "lane"=3;
```
## Task
Generate a SQL query to answer the following question:
`What's the highest lane of rank 4 with a time less than 24.72?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest lane of rank 4 with a time less than 24.72?`:
```sql
                SELECT MAX("lane") FROM "semifinal_1" WHERE "time"<24.72 AND "rank"=4;
```
## Task
Generate a SQL query to answer the following question:
`What's the time of Britta Steffen in a lane less than 4?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the time of Britta Steffen in a lane less than 4?`:
```sql
                SELECT SUM("time") FROM "semifinal_1" WHERE "lane"<4 AND "name"='britta steffen';
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest rank of the United States with a time less than 24.63?`

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

CREATE TABLE "semifinal_1" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest rank of the United States with a time less than 24.63?`:
```sql
                SELECT MIN("rank") FROM "semifinal_1" WHERE "nationality"='united states' AND "time"<24.63;
```
## Task
Generate a SQL query to answer the following question:
`What's the duration of the Archers with Norman Painting as an actor?`

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

CREATE TABLE "radio" (
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the duration of the Archers with Norman Painting as an actor?`:
```sql
                SELECT "duration" FROM "radio" WHERE "soap_opera"='the archers' AND "actor"='norman painting';
```
## Task
Generate a SQL query to answer the following question:
`What's the duration of the Archers with Pauline Seville acting?`

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

CREATE TABLE "radio" (
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the duration of the Archers with Pauline Seville acting?`:
```sql
                SELECT "duration" FROM "radio" WHERE "soap_opera"='the archers' AND "actor"='pauline seville';
```
## Task
Generate a SQL query to answer the following question:
`Who's the actor for the Archers having a character of Martha Woodford?`

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

CREATE TABLE "radio" (
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the actor for the Archers having a character of Martha Woodford?`:
```sql
                SELECT "actor" FROM "radio" WHERE "soap_opera"='the archers' AND "character"='martha woodford';
```
## Task
Generate a SQL query to answer the following question:
`Who's the character when Margot Boyd was acting?`

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

CREATE TABLE "radio" (
  "actor" text,
  "character" text,
  "soap_opera" text,
  "years" text,
  "duration" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the character when Margot Boyd was acting?`:
```sql
                SELECT "character" FROM "radio" WHERE "actor"='margot boyd';
```
## Task
Generate a SQL query to answer the following question:
`What were the notes for the time of 6:34.51?`

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

CREATE TABLE "heat_4" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the notes for the time of 6:34.51?`:
```sql
                SELECT "notes" FROM "heat_4" WHERE "time"='6:34.51';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank for the rowers with the time of 6:24.35?`

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

CREATE TABLE "heat_4" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank for the rowers with the time of 6:24.35?`:
```sql
                SELECT "rank" FROM "heat_4" WHERE "time"='6:24.35';
```
## Task
Generate a SQL query to answer the following question:
`Which rowers represented portugal and had notes of r?`

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

CREATE TABLE "heat_4" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rowers represented portugal and had notes of r?`:
```sql
                SELECT "rowers" FROM "heat_4" WHERE "notes"='r' AND "country"='portugal';
```
## Task
Generate a SQL query to answer the following question:
`Which rowers represented the country of portugal?`

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

CREATE TABLE "heat_4" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rowers represented the country of portugal?`:
```sql
                SELECT "rowers" FROM "heat_4" WHERE "country"='portugal';
```
## Task
Generate a SQL query to answer the following question:
`what is the average races when points is 9 and poles is less than 0?`

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

CREATE TABLE "career_statistics" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average races when points is 9 and poles is less than 0?`:
```sql
                SELECT AVG("races") FROM "career_statistics" WHERE "points"='9' AND "poles"<0;
```