cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Fuel has an Engine of 4cyl, and a 0–100km/h, s of 11.3?`

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

CREATE TABLE "engines" (
  "name" text,
  "volume" text,
  "engine" text,
  "fuel" text,
  "output" text,
  "torque" text,
  "engine_id_code_s" text,
  "0_100km_h_s" real,
  "top_speed" text,
  "co_2" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Fuel has an Engine of 4cyl, and a 0–100km/h, s of 11.3?`:
```sql
                SELECT "fuel" FROM "engines" WHERE "engine"='4cyl' AND "0_100km_h_s"=11.3;
```
## Task
Generate a SQL query to answer the following question:
`Which Fuel has an Output of ps (kw; hp) @6000 rpm?`

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

CREATE TABLE "engines" (
  "name" text,
  "volume" text,
  "engine" text,
  "fuel" text,
  "output" text,
  "torque" text,
  "engine_id_code_s" text,
  "0_100km_h_s" real,
  "top_speed" text,
  "co_2" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Fuel has an Output of ps (kw; hp) @6000 rpm?`:
```sql
                SELECT "fuel" FROM "engines" WHERE "output"='ps (kw; hp) @6000 rpm';
```
## Task
Generate a SQL query to answer the following question:
`Which Torque has a Volume of 1896 cc, and a CO 2 of 140 g/km?`

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

CREATE TABLE "engines" (
  "name" text,
  "volume" text,
  "engine" text,
  "fuel" text,
  "output" text,
  "torque" text,
  "engine_id_code_s" text,
  "0_100km_h_s" real,
  "top_speed" text,
  "co_2" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Torque has a Volume of 1896 cc, and a CO 2 of 140 g/km?`:
```sql
                SELECT "torque" FROM "engines" WHERE "volume"='1896 cc' AND "co_2"='140 g/km';
```
## Task
Generate a SQL query to answer the following question:
`How much 0–100km/h, s has a Fuel of diesel, and a Torque of n·m (lb·ft) @1900 rpm, and an Engine ID code(s) of agr/alh?`

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

CREATE TABLE "engines" (
  "name" text,
  "volume" text,
  "engine" text,
  "fuel" text,
  "output" text,
  "torque" text,
  "engine_id_code_s" text,
  "0_100km_h_s" real,
  "top_speed" text,
  "co_2" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much 0–100km/h, s has a Fuel of diesel, and a Torque of n·m (lb·ft) @1900 rpm, and an Engine ID code(s) of agr/alh?`:
```sql
                SELECT COUNT("0_100km_h_s") FROM "engines" WHERE "fuel"='diesel' AND "torque"='n·m (lb·ft) @1900 rpm' AND "engine_id_code_s"='agr/alh';
```
## Task
Generate a SQL query to answer the following question:
`Which CO 2 has an Output of ps (kw; hp) @4000 rpm, and a 0–100km/h, s smaller than 11.1?`

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

CREATE TABLE "engines" (
  "name" text,
  "volume" text,
  "engine" text,
  "fuel" text,
  "output" text,
  "torque" text,
  "engine_id_code_s" text,
  "0_100km_h_s" real,
  "top_speed" text,
  "co_2" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which CO 2 has an Output of ps (kw; hp) @4000 rpm, and a 0–100km/h, s smaller than 11.1?`:
```sql
                SELECT "co_2" FROM "engines" WHERE "output"='ps (kw; hp) @4000 rpm' AND "0_100km_h_s"<11.1;
```
## Task
Generate a SQL query to answer the following question:
`What Venue has a Year smaller than 1986, and a Position of 6th?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Venue has a Year smaller than 1986, and a Position of 6th?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "year"<1986 AND "position"='6th';
```
## Task
Generate a SQL query to answer the following question:
`What Position has a Time of 3:01.78?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Position has a Time of 3:01.78?`:
```sql
                SELECT "position" FROM "achievements" WHERE "time"='3:01.78';
```
## Task
Generate a SQL query to answer the following question:
`What Event has a Competition of world championships?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Event has a Competition of world championships?`:
```sql
                SELECT "event" FROM "achievements" WHERE "competition"='world championships';
```
## Task
Generate a SQL query to answer the following question:
`What Time has a Year of 1984?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Time has a Year of 1984?`:
```sql
                SELECT "time" FROM "achievements" WHERE "year"=1984;
```
## Task
Generate a SQL query to answer the following question:
`What Competition has a Year smaller than 1983?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Competition has a Year smaller than 1983?`:
```sql
                SELECT "competition" FROM "achievements" WHERE "year"<1983;
```
## Task
Generate a SQL query to answer the following question:
`What is the Weight of the Senior Player with a Height of 6–10?`

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

CREATE TABLE "roster" (
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Weight of the Senior Player with a Height of 6–10?`:
```sql
                SELECT SUM("weight") FROM "roster" WHERE "year"='senior' AND "height"='6–10';
```
## Task
Generate a SQL query to answer the following question:
`What is the Year of the Player with a Weight of 230 or less from San Antonio, Texas?`

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

CREATE TABLE "roster" (
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Year of the Player with a Weight of 230 or less from San Antonio, Texas?`:
```sql
                SELECT "year" FROM "roster" WHERE "weight"<230 AND "home_town"='san antonio, texas';
```
## Task
Generate a SQL query to answer the following question:
`What is the Height of the Sophomore Guard weighing 185?`

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

CREATE TABLE "roster" (
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height of the Sophomore Guard weighing 185?`:
```sql
                SELECT "height" FROM "roster" WHERE "year"='sophomore' AND "position"='guard' AND "weight"=185;
```
## Task
Generate a SQL query to answer the following question:
`What is the Year of the Player weighing 185?`

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

CREATE TABLE "roster" (
  "name" text,
  "position" text,
  "height" text,
  "weight" real,
  "year" text,
  "home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Year of the Player weighing 185?`:
```sql
                SELECT "year" FROM "roster" WHERE "weight"=185;
```
## Task
Generate a SQL query to answer the following question:
`Which club is located in Thomson, Victoria?`

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

CREATE TABLE "former" (
  "club" text,
  "nickname" text,
  "location" text,
  "gfl_premierships" text,
  "years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club is located in Thomson, Victoria?`:
```sql
                SELECT "club" FROM "former" WHERE "location"='thomson, victoria';
```
## Task
Generate a SQL query to answer the following question:
`What is the nickname of the team who was in the GFL from 1986-1988?`

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

CREATE TABLE "former" (
  "club" text,
  "nickname" text,
  "location" text,
  "gfl_premierships" text,
  "years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nickname of the team who was in the GFL from 1986-1988?`:
```sql
                SELECT "nickname" FROM "former" WHERE "years_in_gfl"='1986-1988';
```
## Task
Generate a SQL query to answer the following question:
`Which location did the Tigers have?`

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

CREATE TABLE "former" (
  "club" text,
  "nickname" text,
  "location" text,
  "gfl_premierships" text,
  "years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location did the Tigers have?`:
```sql
                SELECT "location" FROM "former" WHERE "nickname"='tigers';
```
## Task
Generate a SQL query to answer the following question:
`What was the nickname of the team in the Geelong West Cricket & Football Club?`

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

CREATE TABLE "former" (
  "club" text,
  "nickname" text,
  "location" text,
  "gfl_premierships" text,
  "years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the nickname of the team in the Geelong West Cricket & Football Club?`:
```sql
                SELECT "nickname" FROM "former" WHERE "club"='geelong west cricket & football club';
```
## Task
Generate a SQL query to answer the following question:
`What GLF Premiership did the Magpies have?`

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

CREATE TABLE "former" (
  "club" text,
  "nickname" text,
  "location" text,
  "gfl_premierships" text,
  "years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `What GLF Premiership did the Magpies have?`:
```sql
                SELECT "gfl_premierships" FROM "former" WHERE "nickname"='magpies';
```
## Task
Generate a SQL query to answer the following question:
`What was the nickname of the team in the East Geelong club?`

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

CREATE TABLE "former" (
  "club" text,
  "nickname" text,
  "location" text,
  "gfl_premierships" text,
  "years_in_gfl" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the nickname of the team in the East Geelong club?`:
```sql
                SELECT "nickname" FROM "former" WHERE "club"='east geelong';
```
## Task
Generate a SQL query to answer the following question:
`What year has a winning finish of T27?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year has a winning finish of T27?`:
```sql
                SELECT "year_s_won" FROM "made_the_cut" WHERE "finish"='t27';
```
## Task
Generate a SQL query to answer the following question:
`What was the finish for England?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the finish for England?`:
```sql
                SELECT "finish" FROM "made_the_cut" WHERE "country"='england';
```
## Task
Generate a SQL query to answer the following question:
`What county won in 1991?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What county won in 1991?`:
```sql
                SELECT "country" FROM "made_the_cut" WHERE "year_s_won"='1991';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest total to par of +9?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest total to par of +9?`:
```sql
                SELECT MAX("total") FROM "made_the_cut" WHERE "to_par"='+9';
```
## Task
Generate a SQL query to answer the following question:
`What Status has Against of 12?`

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

CREATE TABLE "1990" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Status has Against of 12?`:
```sql
                SELECT "status" FROM "1990" WHERE "against"=12;
```
## Task
Generate a SQL query to answer the following question:
`What Venue has a Date of 17/03/1990?`

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

CREATE TABLE "1990" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Venue has a Date of 17/03/1990?`:
```sql
                SELECT "venue" FROM "1990" WHERE "date"='17/03/1990';
```
## Task
Generate a SQL query to answer the following question:
`How many weeks had an Attendance of 43,272?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks had an Attendance of 43,272?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "attendance"='43,272';
```
## Task
Generate a SQL query to answer the following question:
`Who played on december 12, 1993?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played on december 12, 1993?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='december 12, 1993';
```
## Task
Generate a SQL query to answer the following question:
`What day was United States the opposing team?`

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

CREATE TABLE "matches" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was United States the opposing team?`:
```sql
                SELECT "date" FROM "matches" WHERE "opposing_team"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What was the opposing team for the second test?`

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

CREATE TABLE "matches" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the opposing team for the second test?`:
```sql
                SELECT "opposing_team" FROM "matches" WHERE "status"='second test';
```
## Task
Generate a SQL query to answer the following question:
`What round was in canberra stadium?`

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

CREATE TABLE "club_and_player_records" (
  "team" text,
  "opponent" text,
  "score" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was in canberra stadium?`:
```sql
                SELECT "round" FROM "club_and_player_records" WHERE "venue"='canberra stadium';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue of the match with cronulla sharks as the opponent?`

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

CREATE TABLE "club_and_player_records" (
  "team" text,
  "opponent" text,
  "score" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue of the match with cronulla sharks as the opponent?`:
```sql
                SELECT "venue" FROM "club_and_player_records" WHERE "opponent"='cronulla sharks';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent at toyota stadium?`

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

CREATE TABLE "club_and_player_records" (
  "team" text,
  "opponent" text,
  "score" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent at toyota stadium?`:
```sql
                SELECT "opponent" FROM "club_and_player_records" WHERE "venue"='toyota stadium';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the match with the sydney roosters as the opponent?`

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

CREATE TABLE "club_and_player_records" (
  "team" text,
  "opponent" text,
  "score" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the match with the sydney roosters as the opponent?`:
```sql
                SELECT "score" FROM "club_and_player_records" WHERE "opponent"='sydney roosters';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue of the match with the cronulla sharks as the opponent?`

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

CREATE TABLE "club_and_player_records" (
  "team" text,
  "opponent" text,
  "score" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue of the match with the cronulla sharks as the opponent?`:
```sql
                SELECT "venue" FROM "club_and_player_records" WHERE "opponent"='cronulla sharks';
```
## Task
Generate a SQL query to answer the following question:
`What Location Attendance has a Game of 4?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Location Attendance has a Game of 4?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "game"='4';
```
## Task
Generate a SQL query to answer the following question:
`What Date has a Location Attendance of reunion arena?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Date has a Location Attendance of reunion arena?`:
```sql
                SELECT "date" FROM "game_log" WHERE "location_attendance"='reunion arena';
```
## Task
Generate a SQL query to answer the following question:
`What Record has a Location Attendance of delta center, and an Opponent of vs vancouver grizzlies?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Record has a Location Attendance of delta center, and an Opponent of vs vancouver grizzlies?`:
```sql
                SELECT "record" FROM "game_log" WHERE "location_attendance"='delta center' AND "opponent"='vs vancouver grizzlies';
```
## Task
Generate a SQL query to answer the following question:
`What Location Attendance has an Opponent of at denver nuggets?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Location Attendance has an Opponent of at denver nuggets?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "opponent"='at denver nuggets';
```
## Task
Generate a SQL query to answer the following question:
`What Record has an Opponent of vs washington wizards?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Record has an Opponent of vs washington wizards?`:
```sql
                SELECT "record" FROM "game_log" WHERE "opponent"='vs washington wizards';
```
## Task
Generate a SQL query to answer the following question:
`What Location Attendance has a Game of 14?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Location Attendance has a Game of 14?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "game"='14';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score of the game against shingo kunieda maikel scheffers when robin ammerlaan was Ronald Vink's partner?`

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

CREATE TABLE "runner_ups_5" (
  "year" real,
  "championship" text,
  "partnering" text,
  "opponents_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score of the game against shingo kunieda maikel scheffers when robin ammerlaan was Ronald Vink's partner?`:
```sql
                SELECT "score_in_final" FROM "runner_ups_5" WHERE "partnering"='robin ammerlaan' AND "opponents_in_final"='shingo kunieda maikel scheffers';
```
## Task
Generate a SQL query to answer the following question:
`What championship tournament did Ronald Vink play in with maikel scheffers as his partner in 2007 against stephane houdet nicolas peiffer?`

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

CREATE TABLE "runner_ups_5" (
  "year" real,
  "championship" text,
  "partnering" text,
  "opponents_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What championship tournament did Ronald Vink play in with maikel scheffers as his partner in 2007 against stephane houdet nicolas peiffer?`:
```sql
                SELECT "championship" FROM "runner_ups_5" WHERE "partnering"='maikel scheffers' AND "year">2007 AND "opponents_in_final"='stephane houdet nicolas peiffer';
```
## Task
Generate a SQL query to answer the following question:
`What is the screen size of the s45 (Australia only) Model with no bluetooth?`

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

CREATE TABLE "previous_models" (
  "model" text,
  "screen_size" text,
  "bluetooth" text,
  "fm_transmitter" text,
  "flash" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the screen size of the s45 (Australia only) Model with no bluetooth?`:
```sql
                SELECT "screen_size" FROM "previous_models" WHERE "bluetooth"='no' AND "model"='s45 (australia only)';
```
## Task
Generate a SQL query to answer the following question:
`Does the S90i model have bluetooth?`

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

CREATE TABLE "previous_models" (
  "model" text,
  "screen_size" text,
  "bluetooth" text,
  "fm_transmitter" text,
  "flash" text
);
### SQL
Given the database schema, here is the SQL query that answers `Does the S90i model have bluetooth?`:
```sql
                SELECT "bluetooth" FROM "previous_models" WHERE "model"='s90i';
```
## Task
Generate a SQL query to answer the following question:
`Does the s35 model have bluetooth?`

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

CREATE TABLE "previous_models" (
  "model" text,
  "screen_size" text,
  "bluetooth" text,
  "fm_transmitter" text,
  "flash" text
);
### SQL
Given the database schema, here is the SQL query that answers `Does the s35 model have bluetooth?`:
```sql
                SELECT "bluetooth" FROM "previous_models" WHERE "model"='s35';
```
## Task
Generate a SQL query to answer the following question:
`What is the height for club Havk Mladost?`

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

CREATE TABLE "croatia" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height for club Havk Mladost?`:
```sql
                SELECT "height" FROM "croatia" WHERE "club"='havk mladost';
```
## Task
Generate a SQL query to answer the following question:
`What is the height for Nikola Franković?`

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

CREATE TABLE "croatia" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height for Nikola Franković?`:
```sql
                SELECT "height" FROM "croatia" WHERE "name"='nikola franković';
```
## Task
Generate a SQL query to answer the following question:
`What is the weight of Damir Burić?`

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

CREATE TABLE "croatia" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weight of Damir Burić?`:
```sql
                SELECT "weight" FROM "croatia" WHERE "name"='damir burić';
```
## Task
Generate a SQL query to answer the following question:
`What is Total, when Rank Points is "15", and when Event is "WC Beijing"?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Total, when Rank Points is "15", and when Event is "WC Beijing"?`:
```sql
                SELECT "total" FROM "qualification" WHERE "rank_points"='15' AND "event"='wc beijing';
```
## Task
Generate a SQL query to answer the following question:
`What is Score Points, when Event is "WC Rio De Janeiro", and when Rank Points is "10"?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score Points, when Event is "WC Rio De Janeiro", and when Rank Points is "10"?`:
```sql
                SELECT "score_points" FROM "qualification" WHERE "event"='wc rio de janeiro' AND "rank_points"='10';
```
## Task
Generate a SQL query to answer the following question:
`What is Shooter, when Total is "21"?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Shooter, when Total is "21"?`:
```sql
                SELECT "shooter" FROM "qualification" WHERE "total"='21';
```
## Task
Generate a SQL query to answer the following question:
`What is Score Points, when Shooter is "Sandra Kolly ( SUI )"?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score Points, when Shooter is "Sandra Kolly ( SUI )"?`:
```sql
                SELECT "score_points" FROM "qualification" WHERE "shooter"='sandra kolly ( sui )';
```
## Task
Generate a SQL query to answer the following question:
`What is Rank Points, when Event is "WC Milan", and when Shooter is "Lalita Yauhleuskaya ( AUS )"?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Rank Points, when Event is "WC Milan", and when Shooter is "Lalita Yauhleuskaya ( AUS )"?`:
```sql
                SELECT "rank_points" FROM "qualification" WHERE "event"='wc milan' AND "shooter"='lalita yauhleuskaya ( aus )';
```
## Task
Generate a SQL query to answer the following question:
`What is Rank Points, when Total is "17", and when Shooter is "Lalita Yauhleuskaya ( AUS )"?`

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

CREATE TABLE "qualification" (
  "shooter" text,
  "event" text,
  "rank_points" text,
  "score_points" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Rank Points, when Total is "17", and when Shooter is "Lalita Yauhleuskaya ( AUS )"?`:
```sql
                SELECT "rank_points" FROM "qualification" WHERE "total"='17' AND "shooter"='lalita yauhleuskaya ( aus )';
```
## Task
Generate a SQL query to answer the following question:
`Which Artist is listed as having Top 6 in Week`

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

CREATE TABLE "list_of_performances_on" (
  "week" text,
  "theme" text,
  "song_sung" text,
  "artist" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Artist is listed as having Top 6 in Week`:
```sql
                SELECT "artist" FROM "list_of_performances_on" WHERE "week"='top 6';
```
## Task
Generate a SQL query to answer the following question:
`Which song was sung by Artist Luther Vandross in the Week Top 20?`

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

CREATE TABLE "list_of_performances_on" (
  "week" text,
  "theme" text,
  "song_sung" text,
  "artist" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which song was sung by Artist Luther Vandross in the Week Top 20?`:
```sql
                SELECT "song_sung" FROM "list_of_performances_on" WHERE "artist"='luther vandross' AND "week"='top 20';
```
## Task
Generate a SQL query to answer the following question:
`Which Artist has a Week of Top 12?`

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

CREATE TABLE "list_of_performances_on" (
  "week" text,
  "theme" text,
  "song_sung" text,
  "artist" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Artist has a Week of Top 12?`:
```sql
                SELECT "artist" FROM "list_of_performances_on" WHERE "week"='top 12';
```
## Task
Generate a SQL query to answer the following question:
`What Status does Freddie Jackson have?`

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

CREATE TABLE "list_of_performances_on" (
  "week" text,
  "theme" text,
  "song_sung" text,
  "artist" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Status does Freddie Jackson have?`:
```sql
                SELECT "status" FROM "list_of_performances_on" WHERE "artist"='freddie jackson';
```
## Task
Generate a SQL query to answer the following question:
`Which Song Sung has a Status of Eliminated?`

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

CREATE TABLE "list_of_performances_on" (
  "week" text,
  "theme" text,
  "song_sung" text,
  "artist" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Song Sung has a Status of Eliminated?`:
```sql
                SELECT "song_sung" FROM "list_of_performances_on" WHERE "status"='eliminated';
```
## Task
Generate a SQL query to answer the following question:
`What is the place of the player with a 71-69-66=206 score?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place of the player with a 71-69-66=206 score?`:
```sql
                SELECT "place" FROM "third_round" WHERE "score"='71-69-66=206';
```
## Task
Generate a SQL query to answer the following question:
`What is the place of the player with a 71-66-64=201 score?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place of the player with a 71-66-64=201 score?`:
```sql
                SELECT "place" FROM "third_round" WHERE "score"='71-66-64=201';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par of player peter senior?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par of player peter senior?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "player"='peter senior';
```
## Task
Generate a SQL query to answer the following question:
`What is Finalist, when Year is "2008"?`

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

CREATE TABLE "prize_list" (
  "year" real,
  "champion" text,
  "finalist" text,
  "score" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Finalist, when Year is "2008"?`:
```sql
                SELECT "finalist" FROM "prize_list" WHERE "year"=2008;
```
## Task
Generate a SQL query to answer the following question:
`What is Place, when Year is greater than 2006, and when Champion is "Asvel"?`

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

CREATE TABLE "prize_list" (
  "year" real,
  "champion" text,
  "finalist" text,
  "score" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Place, when Year is greater than 2006, and when Champion is "Asvel"?`:
```sql
                SELECT "place" FROM "prize_list" WHERE "year">2006 AND "champion"='asvel';
```
## Task
Generate a SQL query to answer the following question:
`What is Champion, when Year is greater than 2007, and when Finalist is "Asvel"?`

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

CREATE TABLE "prize_list" (
  "year" real,
  "champion" text,
  "finalist" text,
  "score" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Champion, when Year is greater than 2007, and when Finalist is "Asvel"?`:
```sql
                SELECT "champion" FROM "prize_list" WHERE "year">2007 AND "finalist"='asvel';
```
## Task
Generate a SQL query to answer the following question:
`What is Election, when 2nd Party is "Constituency Abolished"?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "first_member" text,
  "1st_party" text,
  "second_member" text,
  "2nd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Election, when 2nd Party is "Constituency Abolished"?`:
```sql
                SELECT "election" FROM "m_ps_1832_1885" WHERE "2nd_party"='constituency abolished';
```
## Task
Generate a SQL query to answer the following question:
`What is 2nd Party, when Election is "1865"?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "first_member" text,
  "1st_party" text,
  "second_member" text,
  "2nd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2nd Party, when Election is "1865"?`:
```sql
                SELECT "2nd_party" FROM "m_ps_1832_1885" WHERE "election"='1865';
```
## Task
Generate a SQL query to answer the following question:
`What is Election, when 2nd Party is "Conservative", and when First Member is "Edmund Antrobus"?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "first_member" text,
  "1st_party" text,
  "second_member" text,
  "2nd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Election, when 2nd Party is "Conservative", and when First Member is "Edmund Antrobus"?`:
```sql
                SELECT "election" FROM "m_ps_1832_1885" WHERE "2nd_party"='conservative' AND "first_member"='edmund antrobus';
```
## Task
Generate a SQL query to answer the following question:
`What is First Member, when Election is "1871 by-election"?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "first_member" text,
  "1st_party" text,
  "second_member" text,
  "2nd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is First Member, when Election is "1871 by-election"?`:
```sql
                SELECT "first_member" FROM "m_ps_1832_1885" WHERE "election"='1871 by-election';
```
## Task
Generate a SQL query to answer the following question:
`What is 1st Party, when First Member is "Peter John Locke King", and when Second Member is "James Watney"?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "first_member" text,
  "1st_party" text,
  "second_member" text,
  "2nd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1st Party, when First Member is "Peter John Locke King", and when Second Member is "James Watney"?`:
```sql
                SELECT "1st_party" FROM "m_ps_1832_1885" WHERE "first_member"='peter john locke king' AND "second_member"='james watney';
```
## Task
Generate a SQL query to answer the following question:
`What is Second Member, when Election is "1835"?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "first_member" text,
  "1st_party" text,
  "second_member" text,
  "2nd_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Second Member, when Election is "1835"?`:
```sql
                SELECT "second_member" FROM "m_ps_1832_1885" WHERE "election"='1835';
```
## Task
Generate a SQL query to answer the following question:
`How much Played has Goals Against of 45, and Goals For smaller than 65?`

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

CREATE TABLE "second_division_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Played has Goals Against of 45, and Goals For smaller than 65?`:
```sql
                SELECT SUM("played") FROM "second_division_final_table" WHERE "goals_against"=45 AND "goals_for"<65;
```
## Task
Generate a SQL query to answer the following question:
`How many Goals Against have a Position of 4?`

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

CREATE TABLE "second_division_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Goals Against have a Position of 4?`:
```sql
                SELECT COUNT("goals_against") FROM "second_division_final_table" WHERE "position"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest total when bronze is less than 1 and gold more than 0?`

### 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 `What is the highest total when bronze is less than 1 and gold more than 0?`:
```sql
                SELECT MAX("total") FROM "medal_table" WHERE "bronze"<1 AND "gold">0;
```
## Task
Generate a SQL query to answer the following question:
`what is the sum of bronze when the rank is 5, the nation is poland and gold is less than 0?`

### 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 `what is the sum of bronze when the rank is 5, the nation is poland and gold is less than 0?`:
```sql
                SELECT SUM("bronze") FROM "medal_table" WHERE "rank"=5 AND "nation"='poland' AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`what is the sum of silver when the rank is 3, nation is france and bronze is less than 0?`

### 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 `what is the sum of silver when the rank is 3, nation is france and bronze is less than 0?`:
```sql
                SELECT SUM("silver") FROM "medal_table" WHERE "rank"=3 AND "nation"='france' AND "bronze"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many times is the nation china and bronze more than 0?`

### 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 `How many times is the nation china and bronze more than 0?`:
```sql
                SELECT COUNT("rank") FROM "medal_table" WHERE "nation"='china' AND "bronze">0;
```
## Task
Generate a SQL query to answer the following question:
`How many times is the rank higher than 3 and bronze more than 1?`

### 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 `How many times is the rank higher than 3 and bronze more than 1?`:
```sql
                SELECT COUNT("gold") FROM "medal_table" WHERE "rank">3 AND "bronze">1;
```
## Task
Generate a SQL query to answer the following question:
`what is the least silver when bronze is 1, rank is less than 2 and gold is more than 4?`

### 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 `what is the least silver when bronze is 1, rank is less than 2 and gold is more than 4?`:
```sql
                SELECT MIN("silver") FROM "medal_table" WHERE "bronze"=1 AND "rank"<2 AND "gold">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the average value for Draws, when Against is "2177", and when Byes is less than 4?`

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

CREATE TABLE "2008_ladder_and_finals" (
  "benalla_dfl" text,
  "wins" real,
  "losses" real,
  "draws" real,
  "byes" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average value for Draws, when Against is "2177", and when Byes is less than 4?`:
```sql
                SELECT AVG("draws") FROM "2008_ladder_and_finals" WHERE "against"=2177 AND "byes"<4;
```