cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What are the total number of laps for Tom Bridger?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the total number of laps for Tom Bridger?`:
```sql
                SELECT COUNT("laps") FROM "classification" WHERE "driver"='tom bridger';
```
## Task
Generate a SQL query to answer the following question:
`What are the lowest laps of Graham Hill?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the lowest laps of Graham Hill?`:
```sql
                SELECT MIN("laps") FROM "classification" WHERE "driver"='graham hill';
```
## Task
Generate a SQL query to answer the following question:
`What are the lowest laps of grid 17?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the lowest laps of grid 17?`:
```sql
                SELECT MIN("laps") FROM "classification" WHERE "grid"=17;
```
## Task
Generate a SQL query to answer the following question:
`Which Avg/G has a Gain of 16, and a Name of barnes, freddie, and a Loss smaller than 2?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Avg/G has a Gain of 16, and a Name of barnes, freddie, and a Loss smaller than 2?`:
```sql
                SELECT SUM("avg_g") FROM "rushing" WHERE "gain"=16 AND "name"='barnes, freddie' AND "loss"<2;
```
## Task
Generate a SQL query to answer the following question:
`Which average Long has a Gain smaller than 16, and a Loss smaller than 6?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which average Long has a Gain smaller than 16, and a Loss smaller than 6?`:
```sql
                SELECT AVG("long") FROM "rushing" WHERE "gain"<16 AND "loss"<6;
```
## Task
Generate a SQL query to answer the following question:
`Which Gain is the lowest one that has a Loss larger than 2, and an Avg/G larger than -6, and a Name of sheehan, tyler, and a Long larger than 11?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Gain is the lowest one that has a Loss larger than 2, and an Avg/G larger than -6, and a Name of sheehan, tyler, and a Long larger than 11?`:
```sql
                SELECT MIN("gain") FROM "rushing" WHERE "loss">2 AND "avg_g">-6 AND "name"='sheehan, tyler' AND "long">11;
```
## Task
Generate a SQL query to answer the following question:
`Which Avg/G is the lowest one that has a Long larger than 8, and a Loss smaller than 34, and a Gain larger than 16, and a Name of bullock, chris?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Avg/G is the lowest one that has a Long larger than 8, and a Loss smaller than 34, and a Gain larger than 16, and a Name of bullock, chris?`:
```sql
                SELECT MIN("avg_g") FROM "rushing" WHERE "long">8 AND "loss"<34 AND "gain">16 AND "name"='bullock, chris';
```
## Task
Generate a SQL query to answer the following question:
`Which Loss has a Name of bullock, chris, and a Long smaller than 36?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Loss has a Name of bullock, chris, and a Long smaller than 36?`:
```sql
                SELECT SUM("loss") FROM "rushing" WHERE "name"='bullock, chris' AND "long"<36;
```
## Task
Generate a SQL query to answer the following question:
`How much Long has a Loss larger than 2, and a Gain of 157, and an Avg/G smaller than 129?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Long has a Loss larger than 2, and a Gain of 157, and an Avg/G smaller than 129?`:
```sql
                SELECT SUM("long") FROM "rushing" WHERE "loss">2 AND "gain"=157 AND "avg_g"<129;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of places for a skater from Norway with fewer than 1524.9 points?`

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

CREATE TABLE "ladies_singles" (
  "rank" real,
  "name" text,
  "nation" text,
  "points" real,
  "places" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest number of places for a skater from Norway with fewer than 1524.9 points?`:
```sql
                SELECT MIN("places") FROM "ladies_singles" WHERE "nation"='norway' AND "points"<1524.9;
```
## Task
Generate a SQL query to answer the following question:
`What home has Philadelphia as the visitor, and december 4 as the date?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home has Philadelphia as the visitor, and december 4 as the date?`:
```sql
                SELECT "home" FROM "regular_season" WHERE "visitor"='philadelphia' AND "date"='december 4';
```
## Task
Generate a SQL query to answer the following question:
`What record has a decision of parent, Philadelphia as the home, with december 12 as the date?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What record has a decision of parent, Philadelphia as the home, with december 12 as the date?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "decision"='parent' AND "home"='philadelphia' AND "date"='december 12';
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a Score of 6–4, 6–2?`

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

CREATE TABLE "singles_titles" (
  "date" real,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has a Score of 6–4, 6–2?`:
```sql
                SELECT "tournament" FROM "singles_titles" WHERE "score"='6–4, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has an Opponent in the final of mehdi tahiri?`

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

CREATE TABLE "singles_titles" (
  "date" real,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has an Opponent in the final of mehdi tahiri?`:
```sql
                SELECT "score" FROM "singles_titles" WHERE "opponent_in_the_final"='mehdi tahiri';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Score of 6–3, 7–6?`

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

CREATE TABLE "singles_titles" (
  "date" real,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Score of 6–3, 7–6?`:
```sql
                SELECT SUM("date") FROM "singles_titles" WHERE "score"='6–3, 7–6';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Score of 7–6(3), 4–6, 6–2?`

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

CREATE TABLE "singles_titles" (
  "date" real,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Score of 7–6(3), 4–6, 6–2?`:
```sql
                SELECT SUM("date") FROM "singles_titles" WHERE "score"='7–6(3), 4–6, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface has a Tournament of olbia?`

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

CREATE TABLE "singles_titles" (
  "date" real,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface has a Tournament of olbia?`:
```sql
                SELECT "surface" FROM "singles_titles" WHERE "tournament"='olbia';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the week 7 game?`

### 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 `What was the attendance at the week 7 game?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week"=7;
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game after week 3 against the New York Giants?`

### 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 `What was the result of the game after week 3 against the New York Giants?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week">3 AND "opponent"='new york giants';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at the week 6 game?`

### 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 was the opponent at the week 6 game?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest loss that Jarius Wright has had where he also has had a gain bigger than 1.`

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

CREATE TABLE "rushing" (
  "name" text,
  "gp_gs" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest loss that Jarius Wright has had where he also has had a gain bigger than 1.`:
```sql
                SELECT MIN("loss") FROM "rushing" WHERE "name"='jarius wright' AND "gain">1;
```
## Task
Generate a SQL query to answer the following question:
`How much was the first place prize for the American golf classic located in Ohio?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much was the first place prize for the American golf classic located in Ohio?`:
```sql
                SELECT "1st_prize" FROM "tournament_results" WHERE "location"='ohio' AND "tournament"='american golf classic';
```
## Task
Generate a SQL query to answer the following question:
`What date was the Monsanto open located in Florida?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the Monsanto open located in Florida?`:
```sql
                SELECT "date" FROM "tournament_results" WHERE "location"='florida' AND "tournament"='monsanto open';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of Johnny Miller (7)?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of Johnny Miller (7)?`:
```sql
                SELECT "score" FROM "tournament_results" WHERE "winner"='johnny miller (7)';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of years that have divisions greater than 4?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of years that have divisions greater than 4?`:
```sql
                SELECT COUNT("year") FROM "year_by_year" WHERE "division">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest division for years earlier than 2011?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest division for years earlier than 2011?`:
```sql
                SELECT MAX("division") FROM "year_by_year" WHERE "year"<2011;
```
## Task
Generate a SQL query to answer the following question:
`In what Week were there less than 30,348 in Attendance with a Result of W 37-21?`

### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what Week were there less than 30,348 in Attendance with a Result of W 37-21?`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "attendance"<'30,348' AND "result"='w 37-21';
```
## Task
Generate a SQL query to answer the following question:
`What is the Week number on November 30, 1958 with more than 33,240 in Attendance?`

### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Week number on November 30, 1958 with more than 33,240 in Attendance?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "date"='november 30, 1958' AND "attendance">'33,240';
```
## Task
Generate a SQL query to answer the following question:
`What was the Result on November 9, 1958?`

### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Result on November 9, 1958?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='november 9, 1958';
```
## Task
Generate a SQL query to answer the following question:
`What was the Attendance on Week 8?`

### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Attendance on Week 8?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "week"=8;
```
## Task
Generate a SQL query to answer the following question:
`Which season did not qualify for UEFA competitions?`

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

CREATE TABLE "year_by_year_performance" (
  "season" text,
  "competition" text,
  "round" text,
  "against" text,
  "played" text,
  "drew" text,
  "lost" text,
  "goals_for" text,
  "goals_against" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season did not qualify for UEFA competitions?`:
```sql
                SELECT "season" FROM "year_by_year_performance" WHERE "against"='did not qualify for uefa competitions';
```
## Task
Generate a SQL query to answer the following question:
`How many games were lost that had goals against of 5?`

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

CREATE TABLE "year_by_year_performance" (
  "season" text,
  "competition" text,
  "round" text,
  "against" text,
  "played" text,
  "drew" text,
  "lost" text,
  "goals_for" text,
  "goals_against" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were lost that had goals against of 5?`:
```sql
                SELECT "lost" FROM "year_by_year_performance" WHERE "goals_against"='5';
```
## Task
Generate a SQL query to answer the following question:
`How many draws were there with goals against that did not qualify for UEFA competitions?`

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

CREATE TABLE "year_by_year_performance" (
  "season" text,
  "competition" text,
  "round" text,
  "against" text,
  "played" text,
  "drew" text,
  "lost" text,
  "goals_for" text,
  "goals_against" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many draws were there with goals against that did not qualify for UEFA competitions?`:
```sql
                SELECT "drew" FROM "year_by_year_performance" WHERE "goals_against"='did not qualify for uefa competitions';
```
## Task
Generate a SQL query to answer the following question:
`Which competition did not qualify for UEFA competitions in the 1970-71 season?`

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

CREATE TABLE "year_by_year_performance" (
  "season" text,
  "competition" text,
  "round" text,
  "against" text,
  "played" text,
  "drew" text,
  "lost" text,
  "goals_for" text,
  "goals_against" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition did not qualify for UEFA competitions in the 1970-71 season?`:
```sql
                SELECT "competition" FROM "year_by_year_performance" WHERE "lost"='did not qualify for uefa competitions' AND "season"='1970-71';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance in texas stadium?`

### 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,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance in texas stadium?`:
```sql
                SELECT SUM("attendance") FROM "schedule" WHERE "venue"='texas stadium';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team score for the team that has a home field of the Telstra Dome?`

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

CREATE TABLE "round_22" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team score for the team that has a home field of the Telstra Dome?`:
```sql
                SELECT "home_team_score" FROM "round_22" WHERE "ground"='telstra dome';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the home team score of 6.5 (41)?`

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

CREATE TABLE "round_22" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the home team score of 6.5 (41)?`:
```sql
                SELECT "date" FROM "round_22" WHERE "home_team_score"='6.5 (41)';
```
## Task
Generate a SQL query to answer the following question:
`Which home team had an away team of the Brisbane Lions?`

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

CREATE TABLE "round_22" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team had an away team of the Brisbane Lions?`:
```sql
                SELECT "home_team" FROM "round_22" WHERE "away_team"='brisbane lions';
```
## Task
Generate a SQL query to answer the following question:
`What is the report for the team with a home ground of MCG and a home team score of 6.5 (41)?`

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

CREATE TABLE "round_22" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the report for the team with a home ground of MCG and a home team score of 6.5 (41)?`:
```sql
                SELECT "report" FROM "round_22" WHERE "ground"='mcg' AND "home_team_score"='6.5 (41)';
```
## Task
Generate a SQL query to answer the following question:
`What was the sensor with a resolution of 355x288 for a Naturalpoint Trackir 3?`

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

CREATE TABLE "comparison_of_some_cameras_compatible_wi" (
  "camera" text,
  "sensor_resolution" text,
  "sensor" text,
  "output" text,
  "cpu_usage" text,
  "ir_le_ds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the sensor with a resolution of 355x288 for a Naturalpoint Trackir 3?`:
```sql
                SELECT "sensor" FROM "comparison_of_some_cameras_compatible_wi" WHERE "sensor_resolution"='355x288' AND "camera"='naturalpoint trackir 3';
```
## Task
Generate a SQL query to answer the following question:
`What was the sensor resolution with a minimal CPU usage for a naturalpoint trackir 3 pro?`

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

CREATE TABLE "comparison_of_some_cameras_compatible_wi" (
  "camera" text,
  "sensor_resolution" text,
  "sensor" text,
  "output" text,
  "cpu_usage" text,
  "ir_le_ds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the sensor resolution with a minimal CPU usage for a naturalpoint trackir 3 pro?`:
```sql
                SELECT "sensor_resolution" FROM "comparison_of_some_cameras_compatible_wi" WHERE "cpu_usage"='minimal' AND "camera"='naturalpoint trackir 3 pro';
```
## Task
Generate a SQL query to answer the following question:
`What was the output with no IR LEDs?`

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

CREATE TABLE "comparison_of_some_cameras_compatible_wi" (
  "camera" text,
  "sensor_resolution" text,
  "sensor" text,
  "output" text,
  "cpu_usage" text,
  "ir_le_ds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the output with no IR LEDs?`:
```sql
                SELECT "output" FROM "comparison_of_some_cameras_compatible_wi" WHERE "ir_le_ds"='no';
```
## Task
Generate a SQL query to answer the following question:
`What sensor has a resolution of 640x480 with small CPU usage, jpeg compressed output and a camera of sony playstation eyetoy?`

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

CREATE TABLE "comparison_of_some_cameras_compatible_wi" (
  "camera" text,
  "sensor_resolution" text,
  "sensor" text,
  "output" text,
  "cpu_usage" text,
  "ir_le_ds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What sensor has a resolution of 640x480 with small CPU usage, jpeg compressed output and a camera of sony playstation eyetoy?`:
```sql
                SELECT "sensor" FROM "comparison_of_some_cameras_compatible_wi" WHERE "sensor_resolution"='640x480' AND "cpu_usage"='small' AND "output"='jpeg compressed' AND "camera"='sony playstation eyetoy';
```
## Task
Generate a SQL query to answer the following question:
`What is the max speed of the unit with an 8+4 quantity built before 1971?`

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

CREATE TABLE "diesel_multiple_units" (
  "type" text,
  "numbers" text,
  "year_built" real,
  "quantity_built" text,
  "power_horsepower" real,
  "max_speed_km_h" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the max speed of the unit with an 8+4 quantity built before 1971?`:
```sql
                SELECT SUM("max_speed_km_h") FROM "diesel_multiple_units" WHERE "quantity_built"='8+4' AND "year_built"<1971;
```
## Task
Generate a SQL query to answer the following question:
`What is the numbers of the thn unit with a power greater than 220?`

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

CREATE TABLE "diesel_multiple_units" (
  "type" text,
  "numbers" text,
  "year_built" real,
  "quantity_built" text,
  "power_horsepower" real,
  "max_speed_km_h" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the numbers of the thn unit with a power greater than 220?`:
```sql
                SELECT "numbers" FROM "diesel_multiple_units" WHERE "power_horsepower">220 AND "type"='thn';
```
## Task
Generate a SQL query to answer the following question:
`What is the power of the unit built after 1995?`

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

CREATE TABLE "diesel_multiple_units" (
  "type" text,
  "numbers" text,
  "year_built" real,
  "quantity_built" text,
  "power_horsepower" real,
  "max_speed_km_h" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power of the unit built after 1995?`:
```sql
                SELECT SUM("power_horsepower") FROM "diesel_multiple_units" WHERE "year_built">1995;
```
## Task
Generate a SQL query to answer the following question:
`Week larger than 6, and a Date of november 22, 1959 had what result?`

### 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,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Week larger than 6, and a Date of november 22, 1959 had what result?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week">6 AND "date"='november 22, 1959';
```
## Task
Generate a SQL query to answer the following question:
`Result of w 21–7 had what average week?`

### 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,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Result of w 21–7 had what average week?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "result"='w 21–7';
```
## Task
Generate a SQL query to answer the following question:
`Date of november 29, 1959 had what lowest attendance?`

### 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,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Date of november 29, 1959 had what lowest attendance?`:
```sql
                SELECT MIN("attendance") FROM "schedule" WHERE "date"='november 29, 1959';
```
## Task
Generate a SQL query to answer the following question:
`Week that has a Date of december 5, 1959 had what week?`

### 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,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Week that has a Date of december 5, 1959 had what week?`:
```sql
                SELECT "week" FROM "schedule" WHERE "date"='december 5, 1959';
```
## Task
Generate a SQL query to answer the following question:
`Which Game has an Opponent of @ carolina hurricanes?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has an Opponent of @ carolina hurricanes?`:
```sql
                SELECT SUM("game") FROM "schedule_and_results" WHERE "opponent"='@ carolina hurricanes';
```
## Task
Generate a SQL query to answer the following question:
`How many games have a November of 10?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games have a November of 10?`:
```sql
                SELECT COUNT("game") FROM "schedule_and_results" WHERE "november"=10;
```
## Task
Generate a SQL query to answer the following question:
`Which Game has a November of 22?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a November of 22?`:
```sql
                SELECT SUM("game") FROM "schedule_and_results" WHERE "november"=22;
```
## Task
Generate a SQL query to answer the following question:
`What is the mean year of marriage when her age was more than 19 and his age was 30?`

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

CREATE TABLE "chart_the_eight_wives" (
  "year_of_marriage" real,
  "name" text,
  "her_age" real,
  "his_age" real,
  "num_of_children" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mean year of marriage when her age was more than 19 and his age was 30?`:
```sql
                SELECT AVG("year_of_marriage") FROM "chart_the_eight_wives" WHERE "her_age">19 AND "his_age"=30;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest figure for her age when the year of marriage is before 1853, the number of children is less than 8, and the bride was Eliza Maria Partridge?`

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

CREATE TABLE "chart_the_eight_wives" (
  "year_of_marriage" real,
  "name" text,
  "her_age" real,
  "his_age" real,
  "num_of_children" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest figure for her age when the year of marriage is before 1853, the number of children is less than 8, and the bride was Eliza Maria Partridge?`:
```sql
                SELECT MIN("her_age") FROM "chart_the_eight_wives" WHERE "year_of_marriage"<1853 AND "num_of_children"<8 AND "name"='eliza maria partridge';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of her age figures where his age is less than 33, the bride was diontha walker, and the number of children was less than 0?`

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

CREATE TABLE "chart_the_eight_wives" (
  "year_of_marriage" real,
  "name" text,
  "her_age" real,
  "his_age" real,
  "num_of_children" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of her age figures where his age is less than 33, the bride was diontha walker, and the number of children was less than 0?`:
```sql
                SELECT SUM("her_age") FROM "chart_the_eight_wives" WHERE "his_age"<33 AND "name"='diontha walker' AND "num_of_children"<0;
```
## Task
Generate a SQL query to answer the following question:
`How much Lost has an Against larger than 19, and a Drawn smaller than 1?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Lost has an Against larger than 19, and a Drawn smaller than 1?`:
```sql
                SELECT SUM("lost") FROM "torneio_rio_s_o_paulo" WHERE "against">19 AND "drawn"<1;
```
## Task
Generate a SQL query to answer the following question:
`Which Played has a Lost of 3, and an Against of 23?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Played has a Lost of 3, and an Against of 23?`:
```sql
                SELECT AVG("played") FROM "torneio_rio_s_o_paulo" WHERE "lost"=3 AND "against"=23;
```
## Task
Generate a SQL query to answer the following question:
`Which Played is the highest one that has an Against smaller than 18, and Points smaller than 10?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Played is the highest one that has an Against smaller than 18, and Points smaller than 10?`:
```sql
                SELECT MAX("played") FROM "torneio_rio_s_o_paulo" WHERE "against"<18 AND "points"<10;
```
## Task
Generate a SQL query to answer the following question:
`Which Against is the highest one that has a Drawn larger than 1, and a Team of corinthians, and a Played smaller than 7?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Against is the highest one that has a Drawn larger than 1, and a Team of corinthians, and a Played smaller than 7?`:
```sql
                SELECT MAX("against") FROM "torneio_rio_s_o_paulo" WHERE "drawn">1 AND "team"='corinthians' AND "played"<7;
```
## Task
Generate a SQL query to answer the following question:
`What opponent has october less than 20, and 8 for points?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent has october less than 20, and 8 for points?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "october"<20 AND "points"=8;
```
## Task
Generate a SQL query to answer the following question:
`What position does Drew Callander play?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Drew Callander play?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "player"='drew callander';
```
## Task
Generate a SQL query to answer the following question:
`What round did Ray Kurpis play?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round did Ray Kurpis play?`:
```sql
                SELECT "round" FROM "draft_picks" WHERE "player"='ray kurpis';
```
## Task
Generate a SQL query to answer the following question:
`Which Built by has a Name of northern jaeger?`

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

CREATE TABLE "american_seafoods_company_fleet" (
  "name" text,
  "length" text,
  "tonnage" real,
  "built_by" text,
  "year" real,
  "engines" text,
  "horsepowers" real,
  "former_names" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Built by has a Name of northern jaeger?`:
```sql
                SELECT "built_by" FROM "american_seafoods_company_fleet" WHERE "name"='northern jaeger';
```
## Task
Generate a SQL query to answer the following question:
`How many Horsepowers have a Year smaller than 1974, and a Tonnage of 4437?`

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

CREATE TABLE "american_seafoods_company_fleet" (
  "name" text,
  "length" text,
  "tonnage" real,
  "built_by" text,
  "year" real,
  "engines" text,
  "horsepowers" real,
  "former_names" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Horsepowers have a Year smaller than 1974, and a Tonnage of 4437?`:
```sql
                SELECT SUM("horsepowers") FROM "american_seafoods_company_fleet" WHERE "year"<1974 AND "tonnage"=4437;
```
## Task
Generate a SQL query to answer the following question:
`When was the 2014 fifa world cup qualification?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the 2014 fifa world cup qualification?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "competition"='2014 fifa world cup qualification';
```
## Task
Generate a SQL query to answer the following question:
`When was the date of an event at Tokyo venue?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the date of an event at Tokyo venue?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "venue"='tokyo';
```
## Task
Generate a SQL query to answer the following question:
`What city did Yugoslavia play against Poland in?`

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

CREATE TABLE "1980" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city did Yugoslavia play against Poland in?`:
```sql
                SELECT "city" FROM "1980" WHERE "opponent"='poland';
```
## Task
Generate a SQL query to answer the following question:
`What day did Yugoslavia play Luxembourg?`

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

CREATE TABLE "1980" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day did Yugoslavia play Luxembourg?`:
```sql
                SELECT "date" FROM "1980" WHERE "opponent"='luxembourg';
```
## Task
Generate a SQL query to answer the following question:
`What type of game was played in Ljubljana?`

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

CREATE TABLE "1980" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of game was played in Ljubljana?`:
```sql
                SELECT "type_of_game" FROM "1980" WHERE "city"='ljubljana';
```
## Task
Generate a SQL query to answer the following question:
`What's the result of the game played in Belgrade?`

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

CREATE TABLE "1980" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the result of the game played in Belgrade?`:
```sql
                SELECT "results" FROM "1980" WHERE "city"='belgrade';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on March 23?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on March 23?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "date"='march 23';
```
## Task
Generate a SQL query to answer the following question:
`When the Vancouver Canucks were visiting, what was the record when the score was 4-2?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Vancouver Canucks were visiting, what was the record when the score was 4-2?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "score"='4-2' AND "visitor"='vancouver canucks';
```
## Task
Generate a SQL query to answer the following question:
`Which Partner has a Score of 6–7, 7–6, 6–7?`

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

CREATE TABLE "doubles_9_6_titles_3_runner_ups" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Partner has a Score of 6–7, 7–6, 6–7?`:
```sql
                SELECT "partner" FROM "doubles_9_6_titles_3_runner_ups" WHERE "score"='6–7, 7–6, 6–7';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Date of 13 april 1997?`

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

CREATE TABLE "doubles_9_6_titles_3_runner_ups" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Date of 13 april 1997?`:
```sql
                SELECT "score" FROM "doubles_9_6_titles_3_runner_ups" WHERE "date"='13 april 1997';
```
## Task
Generate a SQL query to answer the following question:
`Which Partner has a Score of 7–6, 6–3?`

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

CREATE TABLE "doubles_9_6_titles_3_runner_ups" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Partner has a Score of 7–6, 6–3?`:
```sql
                SELECT "partner" FROM "doubles_9_6_titles_3_runner_ups" WHERE "score"='7–6, 6–3';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Tournament of bmw open?`

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

CREATE TABLE "doubles_9_6_titles_3_runner_ups" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Tournament of bmw open?`:
```sql
                SELECT "date" FROM "doubles_9_6_titles_3_runner_ups" WHERE "tournament"='bmw open';
```
## Task
Generate a SQL query to answer the following question:
`Which Partner has a Tournament of catella swedish open?`

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

CREATE TABLE "doubles_9_6_titles_3_runner_ups" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Partner has a Tournament of catella swedish open?`:
```sql
                SELECT "partner" FROM "doubles_9_6_titles_3_runner_ups" WHERE "tournament"='catella swedish open';
```