output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "home" FROM "chicago_black_hawks_4_detroit_red_wings_" WHERE "record"='2-3'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team in the game that led to a 2-3 series record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team in the game that led to a 2-3 series record?`:
```sql
|
SELECT "home_team" FROM "round_22" WHERE "score"='100-86'; |
## Task
Generate a SQL query to answer the following question:
`Which home team had a score of 100-86?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_22" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team had a score of 100-86?`:
```sql
|
SELECT "report" FROM "round_22" WHERE "venue"='state sports centre'; |
## Task
Generate a SQL query to answer the following question:
`Which report corresponds to the State Sports Centre?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_22" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which report corresponds to the State Sports Centre?`:
```sql
|
SELECT "away_team" FROM "round_22" WHERE "venue"='win entertainment centre'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team at the Win Entertainment Centre?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_22" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"box_score" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team at the Win Entertainment Centre?`:
```sql
|
SELECT COUNT("gain") FROM "rushing" WHERE "name"='williams, jonathan' AND "loss">3; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the total number of Gain that has the Name of williams, jonathan, and the Loss larger than 3?`
### 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 `Can you tell me the total number of Gain that has the Name of williams, jonathan, and the Loss larger than 3?`:
```sql
|
SELECT SUM("loss") FROM "rushing" WHERE "gain"=2646; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the sum of Loss that has the Gain of 2646?`
### 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 `Can you tell me the sum of Loss that has the Gain of 2646?`:
```sql
|
SELECT SUM("gain") FROM "rushing" WHERE "name"='kass, rob' AND "avg_g"<1.9; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the sum of Gain that has the Name of kass, rob, and the Avg/g smaller than 1.9?`
### 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 `Can you tell me the sum of Gain that has the Name of kass, rob, and the Avg/g smaller than 1.9?`:
```sql
|
SELECT MIN("long") FROM "rushing" WHERE "gain"=20 AND "loss"<0; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the lowest Long that has the Gain of 20, and the Loss smaller than 0?`
### 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 `Can you tell me the lowest Long that has the Gain of 20, and the Loss smaller than 0?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "attendance">'65,995' AND "stadium"='cleveland browns stadium'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game at Cleveland Browns Stadium with an attendance of 65,995?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponent_num" text,
"result" text,
"score" text,
"attendance" real,
"stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game at Cleveland Browns Stadium with an attendance of 65,995?`:
```sql
|
SELECT MAX("erp_w") FROM "translators" WHERE "call_sign"='w216bo'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest ERP W with a w216bo call sign?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest ERP W with a w216bo call sign?`:
```sql
|
SELECT "crowd" FROM "group_b" WHERE "home_team"='port adelaide' AND "away_team_score"='11.10 (76)'; |
## Task
Generate a SQL query to answer the following question:
`What kind of Crowd has a Home team of port adelaide, and a Away team score of 11.10 (76)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_b" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Crowd has a Home team of port adelaide, and a Away team score of 11.10 (76)?`:
```sql
|
SELECT SUM("crowd") FROM "group_b" WHERE "ground"='subiaco oval'; |
## Task
Generate a SQL query to answer the following question:
`What kind of Crowd has a Ground of subiaco oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_b" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Crowd has a Ground of subiaco oval?`:
```sql
|
SELECT "ground" FROM "group_b" WHERE "home_team_score"='13.14 (92)'; |
## Task
Generate a SQL query to answer the following question:
`What kind of Ground has a Home team score of 13.14 (92)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_b" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Ground has a Home team score of 13.14 (92)?`:
```sql
|
SELECT "home_team" FROM "group_b" WHERE "home_team_score"='13.14 (92)'; |
## Task
Generate a SQL query to answer the following question:
`What kind of Home team has a Home team score of 13.14 (92)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_b" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Home team has a Home team score of 13.14 (92)?`:
```sql
|
SELECT AVG("crowd") FROM "group_b" WHERE "date"='saturday, 29 january' AND "away_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`How many Crowd that has a Date on saturday, 29 january and an Away team of collingwood?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_b" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Crowd that has a Date on saturday, 29 january and an Away team of collingwood?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "week">11 AND "opponent"='arizona cardinals'; |
## Task
Generate a SQL query to answer the following question:
`On which date after week 11 was the opponent the arizona cardinals?`
### 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 `On which date after week 11 was the opponent the arizona cardinals?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "week"=15; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance during week 15?`
### 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 during week 15?`:
```sql
|
SELECT "lead" FROM "teams" WHERE "alternate"='li dongyan'; |
## Task
Generate a SQL query to answer the following question:
`What was the lead with an alternate of li dongyan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"season" text,
"skip" text,
"third" text,
"second" text,
"lead" text,
"alternate" text,
"events" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lead with an alternate of li dongyan?`:
```sql
|
SELECT "lead" FROM "teams" WHERE "season"='2007-08'; |
## Task
Generate a SQL query to answer the following question:
`Which lead had a season of 2007-08?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"season" text,
"skip" text,
"third" text,
"second" text,
"lead" text,
"alternate" text,
"events" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which lead had a season of 2007-08?`:
```sql
|
SELECT "lead" FROM "teams" WHERE "season"='2009-10'; |
## Task
Generate a SQL query to answer the following question:
`Which lead had a season of 2009-10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"season" text,
"skip" text,
"third" text,
"second" text,
"lead" text,
"alternate" text,
"events" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which lead had a season of 2009-10?`:
```sql
|
SELECT "name" FROM "routes" WHERE "saturday"='yes' AND "evening"='yes'; |
## Task
Generate a SQL query to answer the following question:
`Which Name has a Yes Saturday and a Yes Evening?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "routes" (
"name" text,
"daytime" text,
"evening" text,
"saturday" text,
"sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has a Yes Saturday and a Yes Evening?`:
```sql
|
SELECT "daytime" FROM "routes" WHERE "saturday"='yes' AND "name"='exmouth'; |
## Task
Generate a SQL query to answer the following question:
`Name the Daytime which has Saturday of yes and a Name of exmouth?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "routes" (
"name" text,
"daytime" text,
"evening" text,
"saturday" text,
"sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Daytime which has Saturday of yes and a Name of exmouth?`:
```sql
|
SELECT "evening" FROM "routes" WHERE "sunday"='no' AND "name"='s. vidal/plant express'; |
## Task
Generate a SQL query to answer the following question:
`Name the Evening that has a Sunday of no, and a Name of s. vidal/plant express?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "routes" (
"name" text,
"daytime" text,
"evening" text,
"saturday" text,
"sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Evening that has a Sunday of no, and a Name of s. vidal/plant express?`:
```sql
|
SELECT "daytime" FROM "routes" WHERE "name"='exmouth'; |
## Task
Generate a SQL query to answer the following question:
`Name the Daytime which has a Name of exmouth?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "routes" (
"name" text,
"daytime" text,
"evening" text,
"saturday" text,
"sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Daytime which has a Name of exmouth?`:
```sql
|
SELECT "saturday" FROM "routes" WHERE "sunday"='yes' AND "evening"='yes'; |
## Task
Generate a SQL query to answer the following question:
`Which Saturday has a Sunday of yes and a Evening of yes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "routes" (
"name" text,
"daytime" text,
"evening" text,
"saturday" text,
"sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Saturday has a Sunday of yes and a Evening of yes?`:
```sql
|
SELECT "saturday" FROM "routes" WHERE "name"='confederation'; |
## Task
Generate a SQL query to answer the following question:
`Which Saturday has a Name of confederation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "routes" (
"name" text,
"daytime" text,
"evening" text,
"saturday" text,
"sunday" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Saturday has a Name of confederation?`:
```sql
|
SELECT "gp_gs" FROM "college" WHERE "season"='2009'; |
## Task
Generate a SQL query to answer the following question:
`What was the GP-GS for the 2009 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "college" (
"season" text,
"gp_gs" text,
"yards" text,
"long" text,
"avg_g" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the GP-GS for the 2009 season?`:
```sql
|
SELECT "gp_gs" FROM "college" WHERE "long"='17' AND "season"='total'; |
## Task
Generate a SQL query to answer the following question:
`Which GP-GS had a long of 17 and a season of total?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "college" (
"season" text,
"gp_gs" text,
"yards" text,
"long" text,
"avg_g" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which GP-GS had a long of 17 and a season of total?`:
```sql
|
SELECT "long" FROM "college" WHERE "avg_g"='redshirt'; |
## Task
Generate a SQL query to answer the following question:
`Which Long has redshirt for its Avg/G?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "college" (
"season" text,
"gp_gs" text,
"yards" text,
"long" text,
"avg_g" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Long has redshirt for its Avg/G?`:
```sql
|
SELECT "avg_g" FROM "college" WHERE "season"='2009'; |
## Task
Generate a SQL query to answer the following question:
`What was the Av/G of the 2009 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "college" (
"season" text,
"gp_gs" text,
"yards" text,
"long" text,
"avg_g" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Av/G of the 2009 season?`:
```sql
|
SELECT "long" FROM "college" WHERE "avg_g"='5.9'; |
## Task
Generate a SQL query to answer the following question:
`For the Avg/G of 5.9, what was the long?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "college" (
"season" text,
"gp_gs" text,
"yards" text,
"long" text,
"avg_g" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the Avg/G of 5.9, what was the long?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "high_points"='d. mckey (24)' AND "score"='l 96-105'; |
## Task
Generate a SQL query to answer the following question:
`What is the Location Attendance, when High Points is "D. McKey (24)", and when Score is "L 96-105"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location Attendance, when High Points is "D. McKey (24)", and when Score is "L 96-105"?`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "game">33 AND "score"='w 132-101'; |
## Task
Generate a SQL query to answer the following question:
`What is High Rebounds, when Game is greater than 33, and when Score is "W 132-101"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is High Rebounds, when Game is greater than 33, and when Score is "W 132-101"?`:
```sql
|
SELECT "team" FROM "game_log" WHERE "game"=32; |
## Task
Generate a SQL query to answer the following question:
`What is Team, when Game is "32"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team, when Game is "32"?`:
```sql
|
SELECT SUM("game") FROM "game_log" WHERE "high_points"='d. mckey (24)' AND "team"='@ dallas mavericks'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Game, when High Points is "D. McKey (24)", and when Team is "@ Dallas Mavericks"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Game, when High Points is "D. McKey (24)", and when Team is "@ Dallas Mavericks"?`:
```sql
|
SELECT "tournament" FROM "doubles_15" WHERE "opponents"='marc lópez santiago ventura'; |
## Task
Generate a SQL query to answer the following question:
`Which Tournament has Opponents of marc lópez santiago ventura?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_15" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has Opponents of marc lópez santiago ventura?`:
```sql
|
SELECT "opponents" FROM "doubles_15" WHERE "partnering"='alessandro motti' AND "date"='12 september 2005'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponents have a Partnering of alessandro motti, and a Date of 12 september 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_15" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponents have a Partnering of alessandro motti, and a Date of 12 september 2005?`:
```sql
|
SELECT "opponents" FROM "doubles_15" WHERE "score"='6–4, 6–3'; |
## Task
Generate a SQL query to answer the following question:
`Which Opponents have a Score of 6–4, 6–3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_15" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponents have a Score of 6–4, 6–3?`:
```sql
|
SELECT "tournament" FROM "doubles_15" WHERE "surface"='hard' AND "date"='24 september 2011'; |
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a Surface of hard, and a Date of 24 september 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_15" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has a Surface of hard, and a Date of 24 september 2011?`:
```sql
|
SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "event"='gcf: strength and honor'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds did the match at GCF: Strength and Honor last?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds did the match at GCF: Strength and Honor last?`:
```sql
|
SELECT SUM("population") FROM "communities" WHERE "official_name"='saint-antoine' AND "area_km_2">6.43; |
## Task
Generate a SQL query to answer the following question:
`What is the total population for Saint-Antoine with an area squared of 6.43?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" real,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total population for Saint-Antoine with an area squared of 6.43?`:
```sql
|
SELECT "status" FROM "communities" WHERE "population">930 AND "census_ranking"='1,769 of 5,008'; |
## Task
Generate a SQL query to answer the following question:
`What is the current status of a location with a census ranking of 1,769 of 5,008 and population greater than 930?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" real,
"population" real,
"census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the current status of a location with a census ranking of 1,769 of 5,008 and population greater than 930?`:
```sql
|
SELECT SUM("february") FROM "schedule_and_results" WHERE "record"='40-15-5'; |
## Task
Generate a SQL query to answer the following question:
`How many games in February have a record of 40-15-5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games in February have a record of 40-15-5?`:
```sql
|
SELECT MIN("game") FROM "schedule_and_results" WHERE "opponent"='minnesota north stars' AND "february"<25; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest numbered game with an opponent of Minnesota North Stars earlier than February 25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest numbered game with an opponent of Minnesota North Stars earlier than February 25?`:
```sql
|
SELECT SUM("game") FROM "schedule_and_results" WHERE "opponent"='new york islanders' AND "february"<7; |
## Task
Generate a SQL query to answer the following question:
`How many games have the New York Islanders as an opponent before February 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games have the New York Islanders as an opponent before February 7?`:
```sql
|
SELECT MIN("february") FROM "schedule_and_results" WHERE "record"='37-13-4' AND "game"<54; |
## Task
Generate a SQL query to answer the following question:
`What is the earliest February date with a record of 37-13-4 in a game earlier than 54?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest February date with a record of 37-13-4 in a game earlier than 54?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "record"='2-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the game when the record is 2-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game when the record is 2-0?`:
```sql
|
SELECT AVG("game") FROM "game_log" WHERE "record"='4-1'; |
## Task
Generate a SQL query to answer the following question:
`What is the average game number when the record is 4-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average game number when the record is 4-1?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "game"=1; |
## Task
Generate a SQL query to answer the following question:
`What is the location and attendance of game 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location and attendance of game 1?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "location_attendance"='madison square garden' AND "game"<6 AND "team"='seattle'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the game located in Madison Square Garden, when the team is Seattle and the game number is less than 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game located in Madison Square Garden, when the team is Seattle and the game number is less than 6?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "score"='125-100'; |
## Task
Generate a SQL query to answer the following question:
`What is the location and attendance of the game when the score is 125-100?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location and attendance of the game when the score is 125-100?`:
```sql
|
SELECT "winning_driver" FROM "results" WHERE "year"='1956'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winning driver in 1956?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" text,
"date" text,
"circuit" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning driver in 1956?`:
```sql
|
SELECT "circuit" FROM "results" WHERE "winning_driver"='peter whitehead'; |
## Task
Generate a SQL query to answer the following question:
`Which circuit did Peter Whitehead win?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" text,
"date" text,
"circuit" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which circuit did Peter Whitehead win?`:
```sql
|
SELECT "report" FROM "results" WHERE "winning_driver"='jack brabham'; |
## Task
Generate a SQL query to answer the following question:
`What report did Jack Brabham win?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" text,
"date" text,
"circuit" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What report did Jack Brabham win?`:
```sql
|
SELECT "year" FROM "results" WHERE "circuit"='kyalami' AND "winning_constructor"='ferrari'; |
## Task
Generate a SQL query to answer the following question:
`What year did Ferrari win the Kyalami circuit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" text,
"date" text,
"circuit" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did Ferrari win the Kyalami circuit?`:
```sql
|
SELECT "circuit" FROM "results" WHERE "winning_driver"='jim clark' AND "year"='1962'; |
## Task
Generate a SQL query to answer the following question:
`Which circuit did Jim Clark win in 1962?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" text,
"date" text,
"circuit" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which circuit did Jim Clark win in 1962?`:
```sql
|
SELECT "date" FROM "international_goals" WHERE "competition"='2011 lg cup'; |
## Task
Generate a SQL query to answer the following question:
`On what Date was the 2011 LG Cup Competittion?`
### 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 `On what Date was the 2011 LG Cup Competittion?`:
```sql
|
SELECT "pick" FROM "selections" WHERE "nba_years_a"='2' AND "previous_team"='utah jazz'; |
## Task
Generate a SQL query to answer the following question:
`What is the pick for the player with 2 years in the NBA and who plays for the Utah Jazz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "selections" (
"pick" real,
"player" text,
"pos" text,
"nationality" text,
"team" text,
"previous_team" text,
"nba_years_a" text,
"career_with_the_franchise_b" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick for the player with 2 years in the NBA and who plays for the Utah Jazz?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "high_points"='carmelo anthony (26)'; |
## Task
Generate a SQL query to answer the following question:
`What was the final score for the game in which Carmelo Anthony (26) was the high points scorer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score for the game in which Carmelo Anthony (26) was the high points scorer?`:
```sql
|
SELECT "game" FROM "game_log" WHERE "high_rebounds"='chris andersen (12)'; |
## Task
Generate a SQL query to answer the following question:
`In which game number was Chris Andersen (12) the high rebounds scorer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which game number was Chris Andersen (12) the high rebounds scorer?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "team"='@ milwaukee'; |
## Task
Generate a SQL query to answer the following question:
`What was the final score for the game played against @ Milwaukee?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score for the game played against @ Milwaukee?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "team"='l.a. lakers'; |
## Task
Generate a SQL query to answer the following question:
`For the game played against the L.A. Lakers, where was the match played and what was the attendance level?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the game played against the L.A. Lakers, where was the match played and what was the attendance level?`:
```sql
|
SELECT "name" FROM "race_1_results" WHERE "laps"=50 AND "grid">9 AND "team"='jim beam racing' AND "time_retired"='+ 18.0s'; |
## Task
Generate a SQL query to answer the following question:
`What is Name, when Laps is "50", when Grid is greater than 9, when Team is "Jim Beam Racing", and when Time/Retired is "+ 18.0s"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_1_results" (
"name" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Laps is "50", when Grid is greater than 9, when Team is "Jim Beam Racing", and when Time/Retired is "+ 18.0s"?`:
```sql
|
SELECT MIN("laps") FROM "race_1_results" WHERE "grid">7 AND "name"='fabian coulthard'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Laps, when Grid is greater than 7, and when Name is "Fabian Coulthard"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_1_results" (
"name" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Laps, when Grid is greater than 7, and when Name is "Fabian Coulthard"?`:
```sql
|
SELECT "time_retired" FROM "race_1_results" WHERE "laps"<49 AND "name"='michael caruso'; |
## Task
Generate a SQL query to answer the following question:
`What is Time/Retired, when Laps is less than 49, and when Name is "Michael Caruso"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_1_results" (
"name" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Time/Retired, when Laps is less than 49, and when Name is "Michael Caruso"?`:
```sql
|
SELECT "time_retired" FROM "race_1_results" WHERE "team"='team vodafone' AND "grid">4; |
## Task
Generate a SQL query to answer the following question:
`What is Time/Retired, when Team is "Team Vodafone", and when Grid is greater than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_1_results" (
"name" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Time/Retired, when Team is "Team Vodafone", and when Grid is greater than 4?`:
```sql
|
SELECT COUNT("draw") FROM "national_final_14_march_1993" WHERE "artist"='dav mcnamara' AND "place">4; |
## Task
Generate a SQL query to answer the following question:
`What is the draw number of the Artist Dav Mcnamara and a place bigger than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_final_14_march_1993" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the draw number of the Artist Dav Mcnamara and a place bigger than 4?`:
```sql
|
SELECT "stadium" FROM "test_cricket" WHERE "runs"='144'; |
## Task
Generate a SQL query to answer the following question:
`What is the stadium name that has 144 as the runs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "test_cricket" (
"runs" text,
"match" text,
"stadium" text,
"city_country" text,
"year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the stadium name that has 144 as the runs?`:
```sql
|
SELECT "year" FROM "test_cricket" WHERE "runs"='100*'; |
## Task
Generate a SQL query to answer the following question:
`For what year was 100* runs happen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "test_cricket" (
"runs" text,
"match" text,
"stadium" text,
"city_country" text,
"year" text
);
### SQL
Given the database schema, here is the SQL query that answers `For what year was 100* runs happen?`:
```sql
|
SELECT "runs" FROM "test_cricket" WHERE "year"='2013'; |
## Task
Generate a SQL query to answer the following question:
`How many runs happened in 2013?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "test_cricket" (
"runs" text,
"match" text,
"stadium" text,
"city_country" text,
"year" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many runs happened in 2013?`:
```sql
|
SELECT "runs" FROM "test_cricket" WHERE "match"='42'; |
## Task
Generate a SQL query to answer the following question:
`With 42 as the match what are the runs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "test_cricket" (
"runs" text,
"match" text,
"stadium" text,
"city_country" text,
"year" text
);
### SQL
Given the database schema, here is the SQL query that answers `With 42 as the match what are the runs?`:
```sql
|
SELECT "match" FROM "test_cricket" WHERE "year"='2009' AND "runs"='100*'; |
## Task
Generate a SQL query to answer the following question:
`In 2009 with 100* runs, what is the match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "test_cricket" (
"runs" text,
"match" text,
"stadium" text,
"city_country" text,
"year" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 2009 with 100* runs, what is the match?`:
```sql
|
SELECT "match" FROM "test_cricket" WHERE "stadium"='stadium'; |
## Task
Generate a SQL query to answer the following question:
`When the game was played in the stadium called stadium what was the match?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "test_cricket" (
"runs" text,
"match" text,
"stadium" text,
"city_country" text,
"year" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the game was played in the stadium called stadium what was the match?`:
```sql
|
SELECT "2nd_round" FROM "round_of_16" WHERE "score"='3 - 3' AND "team_1"='fc gueugnon (d2)'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2nd round with a score of 3 - 3, and a team 1 fc gueugnon (d2)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_1" text,
"score" text,
"team_2" text,
"1st_round" text,
"2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd round with a score of 3 - 3, and a team 1 fc gueugnon (d2)?`:
```sql
|
SELECT "2nd_round" FROM "round_of_16" WHERE "score"='3 - 3' AND "team_2"='fc lorient (d2)'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2nd round with a score of 3 - 3, and a team 2 fc lorient (d2)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_1" text,
"score" text,
"team_2" text,
"1st_round" text,
"2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd round with a score of 3 - 3, and a team 2 fc lorient (d2)?`:
```sql
|
SELECT "team_1" FROM "round_of_16" WHERE "2nd_round"='0 - 1' AND "team_2"='rc lens (d1)'; |
## Task
Generate a SQL query to answer the following question:
`What team 1 has a 2nd round 0 - 1, and a team 2 rc lens (d1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_1" text,
"score" text,
"team_2" text,
"1st_round" text,
"2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team 1 has a 2nd round 0 - 1, and a team 2 rc lens (d1)?`:
```sql
|
SELECT "1st_round" FROM "round_of_16" WHERE "team_2"='paris sg (d1)'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1st round with a team 2 paris sg (d1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_1" text,
"score" text,
"team_2" text,
"1st_round" text,
"2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st round with a team 2 paris sg (d1)?`:
```sql
|
SELECT "1st_round" FROM "round_of_16" WHERE "2nd_round"='0 - 1' AND "team_1"='sco angers (d1)'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1st round with a 2nd round of 0 - 1, and team 1 sco angers (d1)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_16" (
"team_1" text,
"score" text,
"team_2" text,
"1st_round" text,
"2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st round with a 2nd round of 0 - 1, and team 1 sco angers (d1)?`:
```sql
|
SELECT "name" FROM "loaned_out" WHERE "transfer_window"='summer' AND "country"='sen'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE NAME WITH A SUMMER TRANSFER WINDOW, AND COUNTRY SEN?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loaned_out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE NAME WITH A SUMMER TRANSFER WINDOW, AND COUNTRY SEN?`:
```sql
|
SELECT "country" FROM "loaned_out" WHERE "name"='kanu'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE COUNTRY WITH NAME OF KANU?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loaned_out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE COUNTRY WITH NAME OF KANU?`:
```sql
|
SELECT "moving_to" FROM "loaned_out" WHERE "country"='bel'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE MOVING TO LOCATION WITH BEL AS COUNTRY?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loaned_out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE MOVING TO LOCATION WITH BEL AS COUNTRY?`:
```sql
|
SELECT "country" FROM "loaned_out" WHERE "transfer_window"='summer'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE COUNTRY WITH SUMMER TRANSFER WINDOW?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loaned_out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE COUNTRY WITH SUMMER TRANSFER WINDOW?`:
```sql
|
SELECT "transfer_window" FROM "loaned_out" WHERE "country"='bra'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE TRANSFER WINDOW FOR THE COUNTRY OF BRA?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "loaned_out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE TRANSFER WINDOW FOR THE COUNTRY OF BRA?`:
```sql
|
SELECT "opponentnum" FROM "schedule" WHERE "attendance"='63,659'; |
## Task
Generate a SQL query to answer the following question:
`What opponent had an attendance of 63,659?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"site" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent had an attendance of 63,659?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "date"='10/18/1947'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of 10/18/1947?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"site" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of 10/18/1947?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "date"='10/04/1947'; |
## Task
Generate a SQL query to answer the following question:
`What was the result for 10/04/1947?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"site" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for 10/04/1947?`:
```sql
|
SELECT "competition" FROM "chinese_taipei_national_football_team" WHERE "report"='aiff'; |
## Task
Generate a SQL query to answer the following question:
`Which competition has a report of AIFF?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chinese_taipei_national_football_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition has a report of AIFF?`:
```sql
|
SELECT "score" FROM "chinese_taipei_national_football_team" WHERE "report"='afc' AND "date"='april 4, 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is the score for a report of AFC on April 4, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "chinese_taipei_national_football_team" (
"date" text,
"venue" text,
"score" text,
"competition" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for a report of AFC on April 4, 2008?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "opponent"='houston oilers'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the game against the Houston Oilers?`
### 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 for the game against the Houston Oilers?`:
```sql
|
SELECT COUNT("attendance") FROM "scottish_cup" WHERE "round"='f'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended round f?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scottish_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended round f?`:
```sql
|
SELECT AVG("attendance") FROM "scottish_cup" WHERE "round"='f'; |
## Task
Generate a SQL query to answer the following question:
`How many people on average attend round f?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scottish_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people on average attend round f?`:
```sql
|
SELECT "result" FROM "scottish_cup" WHERE "round"='qf'; |
## Task
Generate a SQL query to answer the following question:
`What was the result in round qf?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scottish_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result in round qf?`:
```sql
|
SELECT "away_team" FROM "fifth_round" WHERE "home_team"='blackpool'; |
## Task
Generate a SQL query to answer the following question:
`Who played Blackpool when Blackpool was at home?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played Blackpool when Blackpool was at home?`:
```sql
|
SELECT "tie_no" FROM "fifth_round" WHERE "away_team"='arsenal'; |
## Task
Generate a SQL query to answer the following question:
`How many times did Arsenal tie when they were away?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did Arsenal tie when they were away?`:
```sql
|
SELECT "score" FROM "fifth_round" WHERE "away_team"='blackpool'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when Blackpool was away?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game when Blackpool was away?`:
```sql
|
SELECT "result" FROM "kickboxing_record" WHERE "time"='1:02'; |
## Task
Generate a SQL query to answer the following question:
`What result had a time of 1:02?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kickboxing_record" (
"result" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What result had a time of 1:02?`:
```sql
|
SELECT "time" FROM "kickboxing_record" WHERE "event"='k-1 the challenge 1999'; |
## Task
Generate a SQL query to answer the following question:
`What time was the event k-1 the challenge 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kickboxing_record" (
"result" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time was the event k-1 the challenge 1999?`:
```sql
|
SELECT "location" FROM "kickboxing_record" WHERE "method"='decision draw' AND "round"<5; |
## Task
Generate a SQL query to answer the following question:
`Where was the decision draw before round 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kickboxing_record" (
"result" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the decision draw before round 5?`:
```sql
|
SELECT "career_win_loss" FROM "singles_performance_timeline" WHERE "tournament"='hamburg'; |
## Task
Generate a SQL query to answer the following question:
`What is Career Win-Loss, when Tournament is "Hamburg"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"career_wr" text,
"career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Career Win-Loss, when Tournament is "Hamburg"?`:
```sql
|
SELECT "2004" FROM "singles_performance_timeline" WHERE "2003"='1r' AND "2006"='a'; |
## Task
Generate a SQL query to answer the following question:
`What is 2004, when 2003 is "1R", and when 2006 is "A"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"career_wr" text,
"career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2004, when 2003 is "1R", and when 2006 is "A"?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.