output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT MAX("rank") FROM "top_goalscorers" WHERE "u_17_goals"=7 AND "player"='cesc fàbregas'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Rank, when U-17 Goals is "7", and when Player is "Cesc Fàbregas"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_goalscorers" (
"rank" real,
"player" text,
"club_s" text,
"year_s" text,
"u_17_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Rank, when U-17 Goals is "7", and when Player is "Cesc Fàbregas"?`:
```sql
|
SELECT MAX("rank") FROM "top_goalscorers" WHERE "u_17_goals"=9; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Rank, when U-17 Goals is "9"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_goalscorers" (
"rank" real,
"player" text,
"club_s" text,
"year_s" text,
"u_17_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Rank, when U-17 Goals is "9"?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "result"='draw'; |
## Task
Generate a SQL query to answer the following question:
`What Competition has a Result of Draw?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Competition has a Result of Draw?`:
```sql
|
SELECT "date" FROM "international_goals" WHERE "score"='1–2'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date of the Competition with a Score of 1–2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the Competition with a Score of 1–2?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "venue"='new delhi' AND "result"='loss'; |
## Task
Generate a SQL query to answer the following question:
`What New Delhi Competition has a Result of Loss?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What New Delhi Competition has a Result of Loss?`:
```sql
|
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "record"='1-5'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds in the event when record is 1-5?`
### 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 in the event when record is 1-5?`:
```sql
|
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "round">1 AND "record"='42-27-10'; |
## Task
Generate a SQL query to answer the following question:
`Who is the opponent when there is a win in round greater than 1 and the record is 42-27-10?`
### 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 `Who is the opponent when there is a win in round greater than 1 and the record is 42-27-10?`:
```sql
|
SELECT "team_e" FROM "co_hort_teams" WHERE "team_f"='jason manning'; |
## Task
Generate a SQL query to answer the following question:
`Who is team E when Jason Manning is Team F?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "co_hort_teams" (
"team_a" text,
"team_c" text,
"team_d" text,
"team_e" text,
"team_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is team E when Jason Manning is Team F?`:
```sql
|
SELECT "team_a" FROM "co_hort_teams" WHERE "team_c"='wilma hofschneider-david'; |
## Task
Generate a SQL query to answer the following question:
`Who is Team A when wilma hofschneider-david is team C?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "co_hort_teams" (
"team_a" text,
"team_c" text,
"team_d" text,
"team_e" text,
"team_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is Team A when wilma hofschneider-david is team C?`:
```sql
|
SELECT "team_f" FROM "co_hort_teams" WHERE "team_a"='aida gagaring'; |
## Task
Generate a SQL query to answer the following question:
`Who is team f when Aida Gagaring is team A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "co_hort_teams" (
"team_a" text,
"team_c" text,
"team_d" text,
"team_e" text,
"team_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is team f when Aida Gagaring is team A?`:
```sql
|
SELECT "team_d" FROM "co_hort_teams" WHERE "team_c"='carmen ada'; |
## Task
Generate a SQL query to answer the following question:
`Who is Team D when Carmen Ada is team C?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "co_hort_teams" (
"team_a" text,
"team_c" text,
"team_d" text,
"team_e" text,
"team_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is Team D when Carmen Ada is team C?`:
```sql
|
SELECT "team_e" FROM "co_hort_teams" WHERE "team_d"='aaron solloway'; |
## Task
Generate a SQL query to answer the following question:
`Who is team e when Aaron Solloway is team D?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "co_hort_teams" (
"team_a" text,
"team_c" text,
"team_d" text,
"team_e" text,
"team_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is team e when Aaron Solloway is team D?`:
```sql
|
SELECT "team_c" FROM "co_hort_teams" WHERE "team_e"='dhez javier'; |
## Task
Generate a SQL query to answer the following question:
`Who is team c when dhez javier is team e?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "co_hort_teams" (
"team_a" text,
"team_c" text,
"team_d" text,
"team_e" text,
"team_f" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is team c when dhez javier is team e?`:
```sql
|
SELECT "country" FROM "final_round" WHERE "to_par"='+5'; |
## Task
Generate a SQL query to answer the following question:
`What was the country of the player at +5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the country of the player at +5?`:
```sql
|
SELECT "player" FROM "final_round" WHERE "to_par"='+4'; |
## Task
Generate a SQL query to answer the following question:
`Which player finished at +4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player finished at +4?`:
```sql
|
SELECT "to_par" FROM "final_round" WHERE "player"='bert yancey'; |
## Task
Generate a SQL query to answer the following question:
`What was Bert Yancey's finishing score to par?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Bert Yancey's finishing score to par?`:
```sql
|
SELECT "bachelorette" FROM "bachelorettes" WHERE "winner"='ian mckee'; |
## Task
Generate a SQL query to answer the following question:
`Who was the bachelorette of the season where ian mckee was the winner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bachelorettes" (
"season" real,
"premiered" text,
"bachelorette" text,
"profile" text,
"winner" text,
"runner_s_up" text,
"proposal" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the bachelorette of the season where ian mckee was the winner?`:
```sql
|
SELECT MIN("season") FROM "bachelorettes" WHERE "profile"='advertising account manager'; |
## Task
Generate a SQL query to answer the following question:
`What is the earliest season with an advertising account manager profile?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bachelorettes" (
"season" real,
"premiered" text,
"bachelorette" text,
"profile" text,
"winner" text,
"runner_s_up" text,
"proposal" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest season with an advertising account manager profile?`:
```sql
|
SELECT "bachelorette" FROM "bachelorettes" WHERE "premiered"='may 24, 2010'; |
## Task
Generate a SQL query to answer the following question:
`Who is the bachelorette of the season that premiered on May 24, 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bachelorettes" (
"season" real,
"premiered" text,
"bachelorette" text,
"profile" text,
"winner" text,
"runner_s_up" text,
"proposal" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the bachelorette of the season that premiered on May 24, 2010?`:
```sql
|
SELECT "bachelorette" FROM "bachelorettes" WHERE "season">8; |
## Task
Generate a SQL query to answer the following question:
`Who is the bachelorette after season 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "bachelorettes" (
"season" real,
"premiered" text,
"bachelorette" text,
"profile" text,
"winner" text,
"runner_s_up" text,
"proposal" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the bachelorette after season 8?`:
```sql
|
SELECT "win_pct" FROM "record_by_conference" WHERE "num_of_bids"=2 AND "conference"='west coast'; |
## Task
Generate a SQL query to answer the following question:
`When the conference is west coast and the number of bids are at 2, what's the percentage of games won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "record_by_conference" (
"conference" text,
"num_of_bids" real,
"record" text,
"win_pct" text,
"round_of_32" text,
"sweet_sixteen" text,
"elite_eight" text,
"final_four" text,
"championship_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the conference is west coast and the number of bids are at 2, what's the percentage of games won?`:
```sql
|
SELECT "championship_game" FROM "record_by_conference" WHERE "win_pct"='.429'; |
## Task
Generate a SQL query to answer the following question:
`If a team had a percentage of games won recorded as .429, what Championship Game was played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "record_by_conference" (
"conference" text,
"num_of_bids" real,
"record" text,
"win_pct" text,
"round_of_32" text,
"sweet_sixteen" text,
"elite_eight" text,
"final_four" text,
"championship_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `If a team had a percentage of games won recorded as .429, what Championship Game was played?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "week"=3; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance for the game in Week 3?`
### 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 for the game in Week 3?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "opponent"='green bay packers'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the opponent the Green Bay Packers?`
### 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 what date was the opponent the Green Bay Packers?`:
```sql
|
SELECT "term_start" FROM "1912_1914" WHERE "name"='ismail qemali bej'; |
## Task
Generate a SQL query to answer the following question:
`When did Ismail Qemali Bej's term start?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1912_1914" (
"name" text,
"born_died" text,
"term_start" text,
"term_end" text,
"political_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Ismail Qemali Bej's term start?`:
```sql
|
SELECT "term_end" FROM "1912_1914" WHERE "name"='fejzi bej alizoti'; |
## Task
Generate a SQL query to answer the following question:
`When did Fejzi Bej Alizoti's term end?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1912_1914" (
"name" text,
"born_died" text,
"term_start" text,
"term_end" text,
"political_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Fejzi Bej Alizoti's term end?`:
```sql
|
SELECT "term_end" FROM "1912_1914" WHERE "term_start"='28 november 1912'; |
## Task
Generate a SQL query to answer the following question:
`When did the term end for the person who started their term on 28 November 1912?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1912_1914" (
"name" text,
"born_died" text,
"term_start" text,
"term_end" text,
"political_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the term end for the person who started their term on 28 November 1912?`:
```sql
|
SELECT "term_start" FROM "1912_1914" WHERE "name"='fejzi bej alizoti'; |
## Task
Generate a SQL query to answer the following question:
`When did Fejzi Bej Alizoti's term start?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1912_1914" (
"name" text,
"born_died" text,
"term_start" text,
"term_end" text,
"political_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Fejzi Bej Alizoti's term start?`:
```sql
|
SELECT SUM("points_1") FROM "final_table" WHERE "team"='gainsborough trinity' AND "played">46; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Points 1, when Team is "Gainsborough Trinity", and when Played is greater than 46?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Points 1, when Team is "Gainsborough Trinity", and when Played is greater than 46?`:
```sql
|
SELECT COUNT("points_1") FROM "final_table" WHERE "lost"<20 AND "goals_for">92; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Points 1, when Lost is less than 20, and when Goals For is greater than 92?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Points 1, when Lost is less than 20, and when Goals For is greater than 92?`:
```sql
|
SELECT COUNT("position") FROM "final_table" WHERE "played"<46; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Position, when Played is less than 46?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Position, when Played is less than 46?`:
```sql
|
SELECT "location" FROM "radio" WHERE "frequency"='102.5 fm'; |
## Task
Generate a SQL query to answer the following question:
`Which Location has a Frequency of 102.5 fm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"location" text,
"name_format" text,
"owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location has a Frequency of 102.5 fm?`:
```sql
|
SELECT "call_sign" FROM "radio" WHERE "frequency"='102.5 fm'; |
## Task
Generate a SQL query to answer the following question:
`Which Call sign has a Frequency of 102.5 fm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"location" text,
"name_format" text,
"owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Call sign has a Frequency of 102.5 fm?`:
```sql
|
SELECT "owner" FROM "radio" WHERE "name_format"='105.3 kool fm - hot adult contemporary'; |
## Task
Generate a SQL query to answer the following question:
`Which Owner has a Name / Format of 105.3 kool fm - hot adult contemporary?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"location" text,
"name_format" text,
"owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Owner has a Name / Format of 105.3 kool fm - hot adult contemporary?`:
```sql
|
SELECT "location" FROM "radio" WHERE "call_sign"='cjtw-fm'; |
## Task
Generate a SQL query to answer the following question:
`Which Location has a Call sign of cjtw-fm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"location" text,
"name_format" text,
"owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location has a Call sign of cjtw-fm?`:
```sql
|
SELECT "frequency" FROM "radio" WHERE "owner"='rogers communications rogers radio' AND "call_sign"='cikz-fm'; |
## Task
Generate a SQL query to answer the following question:
`Which Frequency has an Owner of rogers communications rogers radio, and a Call sign of cikz-fm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"location" text,
"name_format" text,
"owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Frequency has an Owner of rogers communications rogers radio, and a Call sign of cikz-fm?`:
```sql
|
SELECT MIN("laps") FROM "superbike_race_1_classification" WHERE "rider"='vittorio iannuzzo'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest laps that Vittorio Iannuzzo completed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest laps that Vittorio Iannuzzo completed?`:
```sql
|
SELECT "time" FROM "superbike_race_1_classification" WHERE "laps"=14; |
## Task
Generate a SQL query to answer the following question:
`What is the total time that it took for the driver to finish 14 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total time that it took for the driver to finish 14 laps?`:
```sql
|
SELECT "grid" FROM "superbike_race_1_classification" WHERE "bike"='kawasaki zx-10r' AND "rider"='régis laconi'; |
## Task
Generate a SQL query to answer the following question:
`What is the Grid of Régis Laconi's bike that is a Kawasaki zx-10r?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Grid of Régis Laconi's bike that is a Kawasaki zx-10r?`:
```sql
|
SELECT "bike" FROM "superbike_race_1_classification" WHERE "grid"<9 AND "time"='+7.764'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the bike that has a grid number smaller than 9 with a time of +7.764?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the bike that has a grid number smaller than 9 with a time of +7.764?`:
```sql
|
SELECT "elector" FROM "cardinal_electors" WHERE "nationality"='french' AND "elevated"='1288, may 16'; |
## Task
Generate a SQL query to answer the following question:
`Who was the French Elector Elevated on 1288, May 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"order" text,
"title" text,
"elevated" text,
"elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the French Elector Elevated on 1288, May 16?`:
```sql
|
SELECT "elector" FROM "cardinal_electors" WHERE "title"='titulus s. cecilia'; |
## Task
Generate a SQL query to answer the following question:
`What Elector has the Title of Titulus S. Cecilia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"order" text,
"title" text,
"elevated" text,
"elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Elector has the Title of Titulus S. Cecilia?`:
```sql
|
SELECT "nationality" FROM "cardinal_electors" WHERE "title"='deacon of s. maria in via lata'; |
## Task
Generate a SQL query to answer the following question:
`What is the Nationality of the Deacon of S. Maria in Via Lata?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"order" text,
"title" text,
"elevated" text,
"elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Nationality of the Deacon of S. Maria in Via Lata?`:
```sql
|
SELECT "title" FROM "cardinal_electors" WHERE "elector"='giovanni boccamazza'; |
## Task
Generate a SQL query to answer the following question:
`What is the Title of Elector Giovanni Boccamazza?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"order" text,
"title" text,
"elevated" text,
"elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Title of Elector Giovanni Boccamazza?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "date">27 AND "opponent"='st. louis blues'; |
## Task
Generate a SQL query to answer the following question:
`What was the record for the date above 27 and an opponent of the St. Louis Blues?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"decision" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record for the date above 27 and an opponent of the St. Louis Blues?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "game">31 AND "date">30; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent for a game over 31 and a date over 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"decision" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent for a game over 31 and a date over 30?`:
```sql
|
SELECT "issue_date_s" FROM "see_also" WHERE "artist"='jennifer lopez'; |
## Task
Generate a SQL query to answer the following question:
`What date did the song by jennifer lopez get issued?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" text,
"song" text,
"artist" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the song by jennifer lopez get issued?`:
```sql
|
SELECT "song" FROM "see_also" WHERE "volume_issue"='68:20-24'; |
## Task
Generate a SQL query to answer the following question:
`What song came from volume:issue 68:20-24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" text,
"song" text,
"artist" text
);
### SQL
Given the database schema, here is the SQL query that answers `What song came from volume:issue 68:20-24?`:
```sql
|
SELECT COUNT("gold") FROM "2008_summer_olympics_medal_table" WHERE "bronze"=2 AND "rank"='61' AND "total">3; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of gold medals when there were 2 bronze medals, a total of more than 3 medals and ranked 61?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_summer_olympics_medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of gold medals when there were 2 bronze medals, a total of more than 3 medals and ranked 61?`:
```sql
|
SELECT AVG("total") FROM "2008_summer_olympics_medal_table" WHERE "bronze"=4 AND "silver">2 AND "gold"<7; |
## Task
Generate a SQL query to answer the following question:
`What is the average total number of medals when there were 4 bronze, more than 2 silver, and less than 7 gold medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_summer_olympics_medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average total number of medals when there were 4 bronze, more than 2 silver, and less than 7 gold medals?`:
```sql
|
SELECT MIN("episode") FROM "series_1_2008_ratings" WHERE "original_airdate"='8 june 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest episode number with an original airdate on 8 June 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1_2008_ratings" (
"episode" real,
"original_airdate" text,
"timeslot_approx" text,
"viewers_millions" real,
"nightly_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest episode number with an original airdate on 8 June 2008?`:
```sql
|
SELECT "no_4" FROM "female_names" WHERE "no_9"='natalie'; |
## Task
Generate a SQL query to answer the following question:
`Who was number 4 when Natalie was number 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was number 4 when Natalie was number 9?`:
```sql
|
SELECT "no_7" FROM "female_names" WHERE "no_5"='olivia' AND "no_2"='emma'; |
## Task
Generate a SQL query to answer the following question:
`Who was number 7 when Olivia was number 5 and Emma was number 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was number 7 when Olivia was number 5 and Emma was number 2?`:
```sql
|
SELECT "no_5" FROM "female_names" WHERE "no_8"='chloe' AND "no_2"='olivia' AND "no_1"='emma' AND "no_4"='ava'; |
## Task
Generate a SQL query to answer the following question:
`When Chloe was number 8, Olivia was number 2, Emma was number 1, and Ava was number 4, who was number 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "female_names" (
"region_year" text,
"no_1" text,
"no_2" text,
"no_3" text,
"no_4" text,
"no_5" text,
"no_6" text,
"no_7" text,
"no_8" text,
"no_9" text,
"no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Chloe was number 8, Olivia was number 2, Emma was number 1, and Ava was number 4, who was number 5?`:
```sql
|
SELECT "platform" FROM "proprietary" WHERE "company"='surfstats software'; |
## Task
Generate a SQL query to answer the following question:
`What platform is the company Surfstats Software?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "proprietary" (
"name" text,
"company" text,
"platform" text,
"latest_stable_release" text,
"price_in_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What platform is the company Surfstats Software?`:
```sql
|
SELECT "price_in_usd" FROM "proprietary" WHERE "company"='tealeaf'; |
## Task
Generate a SQL query to answer the following question:
`What is the USD price for Tealeaf?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "proprietary" (
"name" text,
"company" text,
"platform" text,
"latest_stable_release" text,
"price_in_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the USD price for Tealeaf?`:
```sql
|
SELECT "platform" FROM "proprietary" WHERE "latest_stable_release"='5.0.3'; |
## Task
Generate a SQL query to answer the following question:
`What is the platform for the latest release 5.0.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "proprietary" (
"name" text,
"company" text,
"platform" text,
"latest_stable_release" text,
"price_in_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the platform for the latest release 5.0.3?`:
```sql
|
SELECT "platform" FROM "proprietary" WHERE "latest_stable_release"='8.4'; |
## Task
Generate a SQL query to answer the following question:
`What is the platform for the latest release 8.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "proprietary" (
"name" text,
"company" text,
"platform" text,
"latest_stable_release" text,
"price_in_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the platform for the latest release 8.4?`:
```sql
|
SELECT MIN("assists") FROM "hockey_canada" WHERE "games_played">5; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest amount of assists for more than 5 games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "hockey_canada" (
"event" text,
"games_played" real,
"goals" real,
"assists" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest amount of assists for more than 5 games?`:
```sql
|
SELECT MAX("points") FROM "hockey_canada" WHERE "assists"<5 AND "goals"<2; |
## Task
Generate a SQL query to answer the following question:
`What is the highest amount of points with less than 5 assists and less than 2 goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "hockey_canada" (
"event" text,
"games_played" real,
"goals" real,
"assists" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest amount of points with less than 5 assists and less than 2 goals?`:
```sql
|
SELECT AVG("points") FROM "hockey_canada" WHERE "games_played"<5; |
## Task
Generate a SQL query to answer the following question:
`How many points on average are there for less than 5 games played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "hockey_canada" (
"event" text,
"games_played" real,
"goals" real,
"assists" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points on average are there for less than 5 games played?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "result"='w 17-0'; |
## Task
Generate a SQL query to answer the following question:
`Which opponent has w 17-0 as the 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,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has w 17-0 as the result?`:
```sql
|
SELECT "country" FROM "destinations" WHERE "airport"='narita international airport'; |
## Task
Generate a SQL query to answer the following question:
`Which country has the Narita International Airport?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has the Narita International Airport?`:
```sql
|
SELECT "iata" FROM "destinations" WHERE "icao"='wipp'; |
## Task
Generate a SQL query to answer the following question:
`What is the IATA when the ICAO is wipp?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IATA when the ICAO is wipp?`:
```sql
|
SELECT "airport" FROM "destinations" WHERE "icao"='rpvi'; |
## Task
Generate a SQL query to answer the following question:
`Which airport's ICAO is rpvi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which airport's ICAO is rpvi?`:
```sql
|
SELECT "country" FROM "destinations" WHERE "iata"='ika'; |
## Task
Generate a SQL query to answer the following question:
`Which country's IATA is ika?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country's IATA is ika?`:
```sql
|
SELECT "icao" FROM "destinations" WHERE "airport"='yangon international airport'; |
## Task
Generate a SQL query to answer the following question:
`What is the ICAO for the Yangon International Airport?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO for the Yangon International Airport?`:
```sql
|
SELECT "icao" FROM "destinations" WHERE "iata"='tgg'; |
## Task
Generate a SQL query to answer the following question:
`What is the ICAO when the IATA is tgg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO when the IATA is tgg?`:
```sql
|
SELECT "date" FROM "torneo_descentralizado_1966_present" WHERE "venue"='estadio alejandro villanueva' AND "season">2003 AND "competition_round"='torneo apertura' AND "winner"='universitario'; |
## Task
Generate a SQL query to answer the following question:
`On what date did Universitario win the Torneo Apertura round after 2003 at Estadio Alejandro Villanueva?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_descentralizado_1966_present" (
"season" real,
"date" text,
"score" text,
"winner" text,
"venue" text,
"competition_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did Universitario win the Torneo Apertura round after 2003 at Estadio Alejandro Villanueva?`:
```sql
|
SELECT "director" FROM "submissions" WHERE "primary_language_s"='azerbaijani' AND "original_title"='buta'; |
## Task
Generate a SQL query to answer the following question:
`What is Director, when Primary Language(s) is "Azerbaijani", and when Original Title is "Buta"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"primary_language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Director, when Primary Language(s) is "Azerbaijani", and when Original Title is "Buta"?`:
```sql
|
SELECT "film_title_used_in_nomination" FROM "submissions" WHERE "primary_language_s"='azerbaijani, russian'; |
## Task
Generate a SQL query to answer the following question:
`What is Film Title Used In Nomination, when Primary Language(s) is "Azerbaijani, Russian"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"primary_language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Film Title Used In Nomination, when Primary Language(s) is "Azerbaijani, Russian"?`:
```sql
|
SELECT "result" FROM "submissions" WHERE "original_title"='qala'; |
## Task
Generate a SQL query to answer the following question:
`What is Result, when Original Title is "Qala"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"primary_language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Result, when Original Title is "Qala"?`:
```sql
|
SELECT "primary_language_s" FROM "submissions" WHERE "director"='ilgar safat category:articles with hcards'; |
## Task
Generate a SQL query to answer the following question:
`What is Primary Language(s), when Director is "Ilgar Safat Category:Articles With hCards"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"primary_language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Primary Language(s), when Director is "Ilgar Safat Category:Articles With hCards"?`:
```sql
|
SELECT "year_ceremony" FROM "submissions" WHERE "director"='farid gumbatov category:articles with hcards'; |
## Task
Generate a SQL query to answer the following question:
`What is Year (Ceremony), when Director is "Farid Gumbatov Category:Articles With hCards"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"primary_language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Year (Ceremony), when Director is "Farid Gumbatov Category:Articles With hCards"?`:
```sql
|
SELECT "director" FROM "submissions" WHERE "original_title"='sahə'; |
## Task
Generate a SQL query to answer the following question:
`What is Director, when Original Title is "Sahə"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"primary_language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Director, when Original Title is "Sahə"?`:
```sql
|
SELECT "home" FROM "playoffs" WHERE "decision"='conklin'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Home team that had a decider of Conklin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Home team that had a decider of Conklin?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "game"=71; |
## Task
Generate a SQL query to answer the following question:
`Game 71 was played against what team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Game 71 was played against what team?`:
```sql
|
SELECT MAX("game") FROM "game_log" WHERE "opponent"='new york knickerbockers'; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum game that was played against the New York Knickerbockers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum game that was played against the New York Knickerbockers?`:
```sql
|
SELECT "game" FROM "game_log" WHERE "date"='march 19'; |
## Task
Generate a SQL query to answer the following question:
`What was the number of game that was played on March 19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of game that was played on March 19?`:
```sql
|
SELECT AVG("rank") FROM "tournament_summary" WHERE "points">12; |
## Task
Generate a SQL query to answer the following question:
`What is the average rank for more than 12 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_summary" (
"rank" real,
"team" text,
"played" real,
"wins" real,
"losses" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank for more than 12 points?`:
```sql
|
SELECT SUM("rank") FROM "tournament_summary" WHERE "played"<6; |
## Task
Generate a SQL query to answer the following question:
`What is the rank for less than 6 plays?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_summary" (
"rank" real,
"team" text,
"played" real,
"wins" real,
"losses" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank for less than 6 plays?`:
```sql
|
SELECT "nationality" FROM "draft_picks" WHERE "round"=3 AND "college"='mercer'; |
## Task
Generate a SQL query to answer the following question:
`For the draft pick from round 3 out of Mercer College what is the nationality?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the draft pick from round 3 out of Mercer College what is the nationality?`:
```sql
|
SELECT "player" FROM "draft_picks" WHERE "college"='oral roberts'; |
## Task
Generate a SQL query to answer the following question:
`Who was the draft pick that went to college at Oral Roberts?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the draft pick that went to college at Oral Roberts?`:
```sql
|
SELECT MIN("points") FROM "race" WHERE "grid">5 AND "time_retired"='fire'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest point total when the grid is larger than 5 and the time/retired is fire?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest point total when the grid is larger than 5 and the time/retired is fire?`:
```sql
|
SELECT "time_retired" FROM "race" WHERE "grid">16 AND "driver"='nelson philippe'; |
## Task
Generate a SQL query to answer the following question:
`When Nelson Philippe drove with a grid larger than 16, what was the timre/retired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `When Nelson Philippe drove with a grid larger than 16, what was the timre/retired?`:
```sql
|
SELECT "time_retired" FROM "moto_gp_classification" WHERE "grid"<9 AND "laps"=21 AND "rider"='jeremy mcwilliams'; |
## Task
Generate a SQL query to answer the following question:
`What was the time of the race that was on a grid smaller than 9 with jeremy mcwilliams as the rider doing 21 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time of the race that was on a grid smaller than 9 with jeremy mcwilliams as the rider doing 21 laps?`:
```sql
|
SELECT MIN("grid") FROM "moto_gp_classification" WHERE "laps">21; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest grid number that a race took place doing more than 21 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest grid number that a race took place doing more than 21 laps?`:
```sql
|
SELECT COUNT("grid") FROM "moto_gp_classification" WHERE "time_retired"='34:22.335'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of grids where there were races that had a time of 34:22.335?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of grids where there were races that had a time of 34:22.335?`:
```sql
|
SELECT "rank" FROM "results" WHERE "final"='5:18.85'; |
## Task
Generate a SQL query to answer the following question:
`Which rank has final with 5:18.85?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"rank" text,
"team" text,
"run_1" text,
"run_2" text,
"run_3" text,
"final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rank has final with 5:18.85?`:
```sql
|
SELECT "final" FROM "results" WHERE "rank"='10'; |
## Task
Generate a SQL query to answer the following question:
`Which final has rank of 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"rank" text,
"team" text,
"run_1" text,
"run_2" text,
"run_3" text,
"final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which final has rank of 10?`:
```sql
|
SELECT "final" FROM "results" WHERE "run_3"='1:19.49'; |
## Task
Generate a SQL query to answer the following question:
`Which final has a run of 1:19.49?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"rank" text,
"team" text,
"run_1" text,
"run_2" text,
"run_3" text,
"final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which final has a run of 1:19.49?`:
```sql
|
SELECT "run_2" FROM "results" WHERE "final"='5:24.47'; |
## Task
Generate a SQL query to answer the following question:
`Which run 2 with final of 5:24.47?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"rank" text,
"team" text,
"run_1" text,
"run_2" text,
"run_3" text,
"final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which run 2 with final of 5:24.47?`:
```sql
|
SELECT "team" FROM "results" WHERE "run_1"='1:17.44'; |
## Task
Generate a SQL query to answer the following question:
`Which team has run 1 of 1:17.44?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"rank" text,
"team" text,
"run_1" text,
"run_2" text,
"run_3" text,
"final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has run 1 of 1:17.44?`:
```sql
|
SELECT "team" FROM "results" WHERE "run_3"='1:20.77'; |
## Task
Generate a SQL query to answer the following question:
`Which team has run 3 of 1:20.77?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"rank" text,
"team" text,
"run_1" text,
"run_2" text,
"run_3" text,
"final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has run 3 of 1:20.77?`:
```sql
|
SELECT "home_team" FROM "third_round_proper" WHERE "away_team"='manchester city'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team when Manchester City was the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"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 was the home team when Manchester City was the away team?`:
```sql
|
SELECT "score" FROM "third_round_proper" WHERE "home_team"='stockport county'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when the home team was Stockport County?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"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 when the home team was Stockport County?`:
```sql
|
SELECT "tie_no" FROM "third_round_proper" WHERE "away_team"='barnsley'; |
## Task
Generate a SQL query to answer the following question:
`What is the Tie Number when Barnsley was the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"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 is the Tie Number when Barnsley was the away team?`:
```sql
|
SELECT "score" FROM "october" WHERE "date"='october 22, 1976'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game that took place on october 22, 1976?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "october" (
"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 of the game that took place on october 22, 1976?`:
```sql
|
SELECT "score" FROM "october" WHERE "record"='2-2'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game where the record was 2-2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "october" (
"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 of the game where the record was 2-2?`:
```sql
|
SELECT "home" FROM "october" WHERE "record"='2-4'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team in the game with a record of 2-4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "october" (
"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 with a record of 2-4?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.