output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "turbine_manufacturer" FROM "table1_24837750_1" WHERE "county"='Wheatland'; |
## Task
Generate a SQL query to answer the following question:
`Who was the turbine manufacturer for the Wheatland county?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24837750_1" (
"wind_farm" text,
"installed_capacity_mw" text,
"turbine_manufacturer" text,
"county" text,
"date_in_service" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the turbine manufacturer for the Wheatland county?`:
```sql
|
SELECT COUNT("turbine_manufacturer") FROM "table1_24837750_1" WHERE "installed_capacity_mw"='189'; |
## Task
Generate a SQL query to answer the following question:
`How many turbine manufacturers installed a capacity of 189 MW?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24837750_1" (
"wind_farm" text,
"installed_capacity_mw" text,
"turbine_manufacturer" text,
"county" text,
"date_in_service" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many turbine manufacturers installed a capacity of 189 MW?`:
```sql
|
SELECT "installed_capacity_mw" FROM "table1_24837750_1" WHERE "county"='Wheatland'; |
## Task
Generate a SQL query to answer the following question:
`How much capacity was installed in Wheatland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24837750_1" (
"wind_farm" text,
"installed_capacity_mw" text,
"turbine_manufacturer" text,
"county" text,
"date_in_service" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much capacity was installed in Wheatland?`:
```sql
|
SELECT "turbine_manufacturer" FROM "table1_24837750_1" WHERE "date_in_service"='2005'; |
## Task
Generate a SQL query to answer the following question:
`Who was the turbine manufacturer of the wind farm that started service on 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24837750_1" (
"wind_farm" text,
"installed_capacity_mw" text,
"turbine_manufacturer" text,
"county" text,
"date_in_service" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the turbine manufacturer of the wind farm that started service on 2005?`:
```sql
|
SELECT "date_in_service" FROM "table1_24837750_1" WHERE "installed_capacity_mw"='135'; |
## Task
Generate a SQL query to answer the following question:
`When did this wind farm started service with a capacity of 135 MW?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24837750_1" (
"wind_farm" text,
"installed_capacity_mw" text,
"turbine_manufacturer" text,
"county" text,
"date_in_service" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did this wind farm started service with a capacity of 135 MW?`:
```sql
|
SELECT "date_in_service" FROM "table1_24837750_1" WHERE "county"='Musselshell'; |
## Task
Generate a SQL query to answer the following question:
`When did the wind farm in Musselshell started service?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24837750_1" (
"wind_farm" text,
"installed_capacity_mw" text,
"turbine_manufacturer" text,
"county" text,
"date_in_service" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the wind farm in Musselshell started service?`:
```sql
|
SELECT MAX("attendance") FROM "table1_24814477_2" WHERE "game_site"='Rheinstadion'; |
## Task
Generate a SQL query to answer the following question:
`What was the largest attendance at the Rheinstadion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24814477_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the largest attendance at the Rheinstadion?`:
```sql
|
SELECT "week" FROM "table1_24814477_2" WHERE "opponent"='Amsterdam Admirals'; |
## Task
Generate a SQL query to answer the following question:
`What week did the Galaxy play the Amsterdam Admirals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24814477_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What week did the Galaxy play the Amsterdam Admirals?`:
```sql
|
SELECT "opponent" FROM "table1_24814477_2" WHERE "week"=8; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in Week 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24814477_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in Week 8?`:
```sql
|
SELECT "class_a_winner" FROM "calendar_winners" WHERE "class_c_winner"='David Haynes'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Class A winner when the Class C winner was David Haynes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar_winners" (
"round" text,
"circuit" text,
"date" text,
"class_a_winner" text,
"class_b_winner" text,
"class_c_winner" text,
"class_d_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Class A winner when the Class C winner was David Haynes?`:
```sql
|
SELECT "class_c_winner" FROM "calendar_winners" WHERE "round"='8'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Class C winner in round 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar_winners" (
"round" text,
"circuit" text,
"date" text,
"class_a_winner" text,
"class_b_winner" text,
"class_c_winner" text,
"class_d_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Class C winner in round 8?`:
```sql
|
SELECT "class_d_winner" FROM "calendar_winners" WHERE "round"='6'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Class D winner in round 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar_winners" (
"round" text,
"circuit" text,
"date" text,
"class_a_winner" text,
"class_b_winner" text,
"class_c_winner" text,
"class_d_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Class D winner in round 6?`:
```sql
|
SELECT "circuit" FROM "calendar_winners" WHERE "round"='2'; |
## Task
Generate a SQL query to answer the following question:
`What was the circuit in round 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar_winners" (
"round" text,
"circuit" text,
"date" text,
"class_a_winner" text,
"class_b_winner" text,
"class_c_winner" text,
"class_d_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the circuit in round 2?`:
```sql
|
SELECT "round" FROM "calendar_winners" WHERE "class_d_winner"='Roy Salvadori' AND "class_b_winner"='Alan Hutcheson'; |
## Task
Generate a SQL query to answer the following question:
`In which round did Roy Salvadori won Class D and Alan Hutcheson won Class B?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar_winners" (
"round" real,
"circuit" text,
"date" text,
"class_a_winner" text,
"class_b_winner" text,
"class_c_winner" text,
"class_d_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which round did Roy Salvadori won Class D and Alan Hutcheson won Class B?`:
```sql
|
SELECT "date" FROM "calendar_winners" WHERE "class_b_winner"='Alan Hutcheson' AND "round"=1; |
## Task
Generate a SQL query to answer the following question:
`When did Alan Hutcheson won Class B on round 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar_winners" (
"round" real,
"circuit" text,
"date" text,
"class_a_winner" text,
"class_b_winner" text,
"class_c_winner" text,
"class_d_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Alan Hutcheson won Class B on round 1?`:
```sql
|
SELECT "field_goals" FROM "player_stats" WHERE "player"='Stacey Thomas'; |
## Task
Generate a SQL query to answer the following question:
`How many field goals did Stacey Thomas have? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many field goals did Stacey Thomas have? `:
```sql
|
SELECT MAX("assists") FROM "player_stats" WHERE "rebounds"=121; |
## Task
Generate a SQL query to answer the following question:
`How many assists did the player who had 121 rebounds have? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many assists did the player who had 121 rebounds have? `:
```sql
|
SELECT MIN("field_goals") FROM "player_stats" WHERE "blocks"=8; |
## Task
Generate a SQL query to answer the following question:
`How many field goals did the player who had 8 blocks have? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many field goals did the player who had 8 blocks have? `:
```sql
|
SELECT MIN("assists") FROM "player_stats" WHERE "minutes"=863; |
## Task
Generate a SQL query to answer the following question:
`How many assists did the player who had 863 minutes have? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many assists did the player who had 863 minutes have? `:
```sql
|
SELECT "blocks" FROM "player_stats" WHERE "rebounds"=59; |
## Task
Generate a SQL query to answer the following question:
`How many blocks did the player who had 59 rebounds have? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many blocks did the player who had 59 rebounds have? `:
```sql
|
SELECT "opponent" FROM "table1_24852001_2" WHERE "attendance"=16115; |
## Task
Generate a SQL query to answer the following question:
`Who were the opponents that had an attendance of exactly 16115?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24852001_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents that had an attendance of exactly 16115?`:
```sql
|
SELECT "team_record" FROM "table1_24852001_2" WHERE "opponent"='Frankfurt Galaxy'; |
## Task
Generate a SQL query to answer the following question:
`What was the team record after the Frankfurt Galaxy matchup?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24852001_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team record after the Frankfurt Galaxy matchup?`:
```sql
|
SELECT "game_site" FROM "table1_24852001_2" WHERE "opponent"='Frankfurt Galaxy'; |
## Task
Generate a SQL query to answer the following question:
`What was the game site for the matchup against the Frankfurt Galaxy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24852001_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the game site for the matchup against the Frankfurt Galaxy?`:
```sql
|
SELECT COUNT("results") FROM "table1_24865763_2" WHERE "circuit"='Algarve' AND "gt1_winning_team"='No. 50 Larbre Compétition'; |
## Task
Generate a SQL query to answer the following question:
`How many results did the GT1 Winning Team No. 50 Larbre Compétition on the Algarve circuit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24865763_2" (
"rnd" real,
"circuit" text,
"lmp1_winning_team" text,
"lmp2_winning_team" text,
"flm_winning_team" text,
"gt1_winning_team" text,
"gt2_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many results did the GT1 Winning Team No. 50 Larbre Compétition on the Algarve circuit?`:
```sql
|
SELECT COUNT("lmp2_winning_team") FROM "table1_24865763_2" WHERE "gt1_winning_team"='Gabriele Gardel Patrice Goueslard Fernando Rees' AND "circuit"='Algarve'; |
## Task
Generate a SQL query to answer the following question:
`How many winning teams are there on LMP2 if Gabriele Gardel Patrice Goueslard Fernando Rees was the GT1 Winning Team on the Algarve circuit?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24865763_2" (
"rnd" real,
"circuit" text,
"lmp1_winning_team" text,
"lmp2_winning_team" text,
"flm_winning_team" text,
"gt1_winning_team" text,
"gt2_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many winning teams are there on LMP2 if Gabriele Gardel Patrice Goueslard Fernando Rees was the GT1 Winning Team on the Algarve circuit?`:
```sql
|
SELECT "gt2_winning_team" FROM "table1_24865763_2" WHERE "lmp1_winning_team"='Greg Mansell Leo Mansell'; |
## Task
Generate a SQL query to answer the following question:
`Who was the GT2 Winning Team if Greg Mansell Leo Mansell was the LMP1 Winning Team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24865763_2" (
"rnd" real,
"circuit" text,
"lmp1_winning_team" text,
"lmp2_winning_team" text,
"flm_winning_team" text,
"gt1_winning_team" text,
"gt2_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the GT2 Winning Team if Greg Mansell Leo Mansell was the LMP1 Winning Team?`:
```sql
|
SELECT MAX("rnd") FROM "table1_24865763_2" WHERE "gt2_winning_team"='Marc Lieb Richard Lietz'; |
## Task
Generate a SQL query to answer the following question:
`What was the maximum round where Marc Lieb Richard Lietz was on the GT2 Winning Team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24865763_2" (
"rnd" real,
"circuit" text,
"lmp1_winning_team" text,
"lmp2_winning_team" text,
"flm_winning_team" text,
"gt1_winning_team" text,
"gt2_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the maximum round where Marc Lieb Richard Lietz was on the GT2 Winning Team?`:
```sql
|
SELECT COUNT("lmp1_winning_team") FROM "table1_24865763_2" WHERE "rnd"=4 AND "lmp2_winning_team"='No. 42 Strakka Racing'; |
## Task
Generate a SQL query to answer the following question:
`How many won the LMP1 on round 4 if No. 42 Strakka Racing was the LMP2 Winning Team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24865763_2" (
"rnd" real,
"circuit" text,
"lmp1_winning_team" text,
"lmp2_winning_team" text,
"flm_winning_team" text,
"gt1_winning_team" text,
"gt2_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many won the LMP1 on round 4 if No. 42 Strakka Racing was the LMP2 Winning Team?`:
```sql
|
SELECT "rnd" FROM "table1_24865763_2" WHERE "lmp2_winning_team"='Mike Newton Thomas Erdos Ben Collins'; |
## Task
Generate a SQL query to answer the following question:
`In what round did Mike Newton Thomas Erdos Ben Collins won the LMP2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24865763_2" (
"rnd" real,
"circuit" text,
"lmp1_winning_team" text,
"lmp2_winning_team" text,
"flm_winning_team" text,
"gt1_winning_team" text,
"gt2_winning_team" text,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what round did Mike Newton Thomas Erdos Ben Collins won the LMP2?`:
```sql
|
SELECT MIN("blocks") FROM "player_stats" WHERE "player"='Tye''sha Fluker'; |
## Task
Generate a SQL query to answer the following question:
`How many blocks did tye'sha fluker have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many blocks did tye'sha fluker have?`:
```sql
|
SELECT MAX("steals") FROM "player_stats" WHERE "minutes"=324; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of steals for a player with 324 minutes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of steals for a player with 324 minutes?`:
```sql
|
SELECT MIN("minutes") FROM "player_stats" WHERE "steals"=47; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of minutes for a player with 47 steals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of minutes for a player with 47 steals?`:
```sql
|
SELECT "mixed_doubles" FROM "world_championships_of_the_wbf" WHERE "year"=1991; |
## Task
Generate a SQL query to answer the following question:
`Who played Mixed Doubles in 1991?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championships_of_the_wbf" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played Mixed Doubles in 1991?`:
```sql
|
SELECT "home_team" FROM "ties" WHERE "away_team"='Plymouth Argyle'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team who played plymouth argyle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ties" (
"tie_no" real,
"home_team" text,
"score_1" text,
"away_team" text,
"attendance" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team who played plymouth argyle?`:
```sql
|
SELECT "score_1" FROM "ties" WHERE "away_team"='Norwich City'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when the away team was norwich city?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ties" (
"tie_no" real,
"home_team" text,
"score_1" text,
"away_team" text,
"attendance" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the away team was norwich city?`:
```sql
|
SELECT "away_team" FROM "ties" WHERE "home_team"='Coventry City'; |
## Task
Generate a SQL query to answer the following question:
`Who played as the away team when coventry city was the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ties" (
"tie_no" real,
"home_team" text,
"score_1" text,
"away_team" text,
"attendance" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played as the away team when coventry city was the home team?`:
```sql
|
SELECT "final_score" FROM "table1_24882796_2" WHERE "opponent"='Frankfurt Galaxy'; |
## Task
Generate a SQL query to answer the following question:
`What is the final score when they played Frankfurt Galaxy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24882796_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the final score when they played Frankfurt Galaxy?`:
```sql
|
SELECT "away_team" FROM "ties" WHERE "tie_no"=11; |
## Task
Generate a SQL query to answer the following question:
`Who is the away team for tie no 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ties" (
"tie_no" real,
"home_team" text,
"score_1" text,
"away_team" text,
"attendance" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the away team for tie no 11?`:
```sql
|
SELECT "away_team" FROM "ties" WHERE "tie_no"=15; |
## Task
Generate a SQL query to answer the following question:
`Who is the away team for tie no 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ties" (
"tie_no" real,
"home_team" text,
"score_1" text,
"away_team" text,
"attendance" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the away team for tie no 15?`:
```sql
|
SELECT MAX("tie_no") FROM "ties" WHERE "attendance"=19129; |
## Task
Generate a SQL query to answer the following question:
`What is the highest tie that had 19129 attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ties" (
"tie_no" real,
"home_team" text,
"score_1" text,
"away_team" text,
"attendance" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest tie that had 19129 attendance?`:
```sql
|
SELECT "tie_no" FROM "ties" WHERE "home_team"='Stoke City'; |
## Task
Generate a SQL query to answer the following question:
`What is the tie when the home team is Stoke City?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ties" (
"tie_no" real,
"home_team" text,
"score_1" text,
"away_team" text,
"attendance" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tie when the home team is Stoke City?`:
```sql
|
SELECT "tie_no" FROM "ties" WHERE "home_team"='Orient'; |
## Task
Generate a SQL query to answer the following question:
`What tie has Orient as the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ties" (
"tie_no" real,
"home_team" text,
"score_1" text,
"away_team" text,
"attendance" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tie has Orient as the home team?`:
```sql
|
SELECT COUNT("date") FROM "ties" WHERE "tie_no"=12; |
## Task
Generate a SQL query to answer the following question:
`How many dates are there for tie number 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ties" (
"tie_no" real,
"home_team" text,
"score_1" text,
"away_team" text,
"attendance" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates are there for tie number 12?`:
```sql
|
SELECT COUNT("equipment") FROM "riders" WHERE "points"=556; |
## Task
Generate a SQL query to answer the following question:
`When 556 is the amount of points how much equipment is there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "riders" (
"position" real,
"driver_passenger" text,
"equipment" text,
"bike_no" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 556 is the amount of points how much equipment is there?`:
```sql
|
SELECT "championship" FROM "doubles_6_4_2" WHERE "score"='6–4, 5–7, 6–2'; |
## Task
Generate a SQL query to answer the following question:
`Which championship was the score 6–4, 5–7, 6–2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_6_4_2" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which championship was the score 6–4, 5–7, 6–2?`:
```sql
|
SELECT "opponents" FROM "doubles_6_4_2" WHERE "championship"='Rome'; |
## Task
Generate a SQL query to answer the following question:
`Who were the opponents in the Rome championship?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_6_4_2" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents in the Rome championship?`:
```sql
|
SELECT MAX("minutes") FROM "player_stats" WHERE "field_goals"=70; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of minutes associated with exactly 70 field goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of minutes associated with exactly 70 field goals?`:
```sql
|
SELECT MIN("field_goals") FROM "player_stats" WHERE "assists"=84; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum number of field goals associated with exactly 84 assists?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum number of field goals associated with exactly 84 assists?`:
```sql
|
SELECT "steals" FROM "player_stats" WHERE "player"='Tamika Williams'; |
## Task
Generate a SQL query to answer the following question:
`How many steals did Tamika Williams have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many steals did Tamika Williams have?`:
```sql
|
SELECT COUNT("steals") FROM "player_stats" WHERE "blocks"=1; |
## Task
Generate a SQL query to answer the following question:
`List the number of takeaways with 1 rejection.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of takeaways with 1 rejection.`:
```sql
|
SELECT COUNT("field_goals") FROM "player_stats" WHERE "player"='Tonya Edwards'; |
## Task
Generate a SQL query to answer the following question:
`How many long range shots did tonya edwards make.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many long range shots did tonya edwards make.`:
```sql
|
SELECT COUNT("field_goals") FROM "player_stats" WHERE "points"=171; |
## Task
Generate a SQL query to answer the following question:
`List the number of long range shors where the score is 171.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of long range shors where the score is 171.`:
```sql
|
SELECT "amiga_demo" FROM "the_party_demo_intro_compo_winners_1991_" WHERE "pc_demo"='Tribes ( Pulse & Melon Dezign)'; |
## Task
Generate a SQL query to answer the following question:
`Who won best amiga demo when tribes ( pulse & melon dezign) won best pc demo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_party_demo_intro_compo_winners_1991_" (
"year" text,
"amiga_demo" text,
"pc_demo" text,
"c64_demo" text,
"amiga_intro" text,
"pc_intro" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won best amiga demo when tribes ( pulse & melon dezign) won best pc demo?`:
```sql
|
SELECT "amiga_demo" FROM "the_party_demo_intro_compo_winners_1991_" WHERE "pc_demo"='Alto Knallo (Free Electric Band)'; |
## Task
Generate a SQL query to answer the following question:
`What won best amiga demo when alto knallo (free electric band) won best pc demo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_party_demo_intro_compo_winners_1991_" (
"year" text,
"amiga_demo" text,
"pc_demo" text,
"c64_demo" text,
"amiga_intro" text,
"pc_intro" text
);
### SQL
Given the database schema, here is the SQL query that answers `What won best amiga demo when alto knallo (free electric band) won best pc demo?`:
```sql
|
SELECT "pc_intro" FROM "the_party_demo_intro_compo_winners_1991_" WHERE "amiga_demo"='My Kingdom (Haujobb & Scoopex)'; |
## Task
Generate a SQL query to answer the following question:
`What won best pc intro when my kingdom (haujobb & scoopex) won best amiga demo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_party_demo_intro_compo_winners_1991_" (
"year" text,
"amiga_demo" text,
"pc_demo" text,
"c64_demo" text,
"amiga_intro" text,
"pc_intro" text
);
### SQL
Given the database schema, here is the SQL query that answers `What won best pc intro when my kingdom (haujobb & scoopex) won best amiga demo?`:
```sql
|
SELECT "pc_intro" FROM "the_party_demo_intro_compo_winners_1991_" WHERE "amiga_intro"='4k0 (Polka Brothers)'; |
## Task
Generate a SQL query to answer the following question:
`What won est pc intro when 4k0 (polka brothers) won best amiga intro?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_party_demo_intro_compo_winners_1991_" (
"year" text,
"amiga_demo" text,
"pc_demo" text,
"c64_demo" text,
"amiga_intro" text,
"pc_intro" text
);
### SQL
Given the database schema, here is the SQL query that answers `What won est pc intro when 4k0 (polka brothers) won best amiga intro?`:
```sql
|
SELECT "pc_demo" FROM "the_party_demo_intro_compo_winners_1991_" WHERE "c64_demo"='Tower Power (Camelot)'; |
## Task
Generate a SQL query to answer the following question:
`What won best pc demo when tower power (camelot) won best c64 demo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_party_demo_intro_compo_winners_1991_" (
"year" text,
"amiga_demo" text,
"pc_demo" text,
"c64_demo" text,
"amiga_intro" text,
"pc_intro" text
);
### SQL
Given the database schema, here is the SQL query that answers `What won best pc demo when tower power (camelot) won best c64 demo?`:
```sql
|
SELECT "year" FROM "the_party_demo_intro_compo_winners_1991_" WHERE "pc_intro"='FR-08: The Product ( Farbrausch )'; |
## Task
Generate a SQL query to answer the following question:
`What year did fr-08: the product ( farbrausch ) win best pc intro?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_party_demo_intro_compo_winners_1991_" (
"year" text,
"amiga_demo" text,
"pc_demo" text,
"c64_demo" text,
"amiga_intro" text,
"pc_intro" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did fr-08: the product ( farbrausch ) win best pc intro?`:
```sql
|
SELECT "title" FROM "table1_24910737_1" WHERE "u_s_viewers_millions"='8.16'; |
## Task
Generate a SQL query to answer the following question:
`What is the episode title that had a US viewership of 8.16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24910737_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode title that had a US viewership of 8.16?`:
```sql
|
SELECT "no_in_series" FROM "table1_24910737_1" WHERE "written_by"='Steve Blackman' AND "title"='\"Worlds Apart\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the number in the series written by Steve Blackman and had a title of "Worlds Apart"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24910737_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number in the series written by Steve Blackman and had a title of "Worlds Apart"?`:
```sql
|
SELECT "no_in_series" FROM "table1_24910737_1" WHERE "title"='\"Past Tense\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the number in the series that was titled "Past Tense"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24910737_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number in the series that was titled "Past Tense"?`:
```sql
|
SELECT "written_by" FROM "table1_24910737_1" WHERE "u_s_viewers_millions"='7.14'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episodes that had a viewership of 7.14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24910737_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episodes that had a viewership of 7.14?`:
```sql
|
SELECT "timeslot_est" FROM "u_s" WHERE "episode"='\"In Which Addison Finds the Magic\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the timeslot for the episode "In which Addison finds the magic"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s" (
"num" real,
"episode" text,
"air_date" text,
"timeslot_est" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the timeslot for the episode "In which Addison finds the magic"?`:
```sql
|
SELECT COUNT("episode") FROM "u_s" WHERE "rating"='8.2'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes received rating of 8.2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s" (
"num" real,
"episode" text,
"air_date" text,
"timeslot_est" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes received rating of 8.2?`:
```sql
|
SELECT "rating" FROM "u_s" WHERE "episode"='\"In Which Cooper Finds a Port In His Storm\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the rating for the episode "in which cooper finds a port in his storm"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s" (
"num" real,
"episode" text,
"air_date" text,
"timeslot_est" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rating for the episode "in which cooper finds a port in his storm"?`:
```sql
|
SELECT COUNT("share") FROM "u_s" WHERE "air_date"='October 17, 2007'; |
## Task
Generate a SQL query to answer the following question:
`How many share figures are there for the episode that aired on October 17, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s" (
"num" real,
"episode" text,
"air_date" text,
"timeslot_est" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many share figures are there for the episode that aired on October 17, 2007?`:
```sql
|
SELECT COUNT("episode") FROM "u_s" WHERE "air_date"='October 17, 2007'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes aired on October 17, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s" (
"num" real,
"episode" text,
"air_date" text,
"timeslot_est" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes aired on October 17, 2007?`:
```sql
|
SELECT COUNT("timeslot_est") FROM "u_s" WHERE "rating"='5.7'; |
## Task
Generate a SQL query to answer the following question:
`How many timeslots received a rating of 5.7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s" (
"num" real,
"episode" text,
"air_date" text,
"timeslot_est" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many timeslots received a rating of 5.7?`:
```sql
|
SELECT COUNT("written_by") FROM "table1_24910733_1" WHERE "u_s_viewers_millions"='11.21'; |
## Task
Generate a SQL query to answer the following question:
`How many writers are listed when the U.S viewers are 11.21 million?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24910733_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many writers are listed when the U.S viewers are 11.21 million?`:
```sql
|
SELECT "directed_by" FROM "table1_24910733_1" WHERE "u_s_viewers_millions"='8.44'; |
## Task
Generate a SQL query to answer the following question:
`Who is the director when there is 8.44 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24910733_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director when there is 8.44 million viewers?`:
```sql
|
SELECT "directed_by" FROM "table1_24910733_1" WHERE "written_by"='Andrea Newman'; |
## Task
Generate a SQL query to answer the following question:
`Who is the director when the writter is Andrea Newman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24910733_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director when the writter is Andrea Newman?`:
```sql
|
SELECT "title" FROM "table1_24910733_1" WHERE "written_by"='Emily Halpern'; |
## Task
Generate a SQL query to answer the following question:
`What is the title when the writer is Emily Halpern?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24910733_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title when the writer is Emily Halpern?`:
```sql
|
SELECT "directed_by" FROM "table1_24910733_1" WHERE "u_s_viewers_millions"='11.21'; |
## Task
Generate a SQL query to answer the following question:
`Who is the director when there is 11.21 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24910733_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director when there is 11.21 million viewers?`:
```sql
|
SELECT COUNT("title") FROM "table1_24910733_1" WHERE "u_s_viewers_millions"='8.44'; |
## Task
Generate a SQL query to answer the following question:
`How many titles are listed with 8.44 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24910733_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many titles are listed with 8.44 million viewers?`:
```sql
|
SELECT "air_date" FROM "u_s" WHERE "episode"='\"Triangles\"'; |
## Task
Generate a SQL query to answer the following question:
`On what date does the episode called "triangles" air`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s" (
"num" real,
"episode" text,
"air_date" text,
"timeslot_est" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date does the episode called "triangles" air`:
```sql
|
SELECT COUNT("weekly_rank_num") FROM "u_s" WHERE "episode"='\"The Parent Trap\"'; |
## Task
Generate a SQL query to answer the following question:
`When the episode called "the parent trap" airs, what is the weekly rank`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s" (
"num" real,
"episode" text,
"air_date" text,
"timeslot_est" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the episode called "the parent trap" airs, what is the weekly rank`:
```sql
|
SELECT MAX("share") FROM "u_s" WHERE "episode"='\"Sins of the Father\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the share value of the episode "sins of the father"`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s" (
"num" real,
"episode" text,
"air_date" text,
"timeslot_est" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the share value of the episode "sins of the father"`:
```sql
|
SELECT "viewers_m" FROM "u_s" WHERE "episode"='\"Blowups\"'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of viewers watched the episode "blowups"`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s" (
"num" real,
"episode" text,
"air_date" text,
"timeslot_est" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of viewers watched the episode "blowups"`:
```sql
|
SELECT COUNT("field_goals") FROM "player_stats" WHERE "points"=597; |
## Task
Generate a SQL query to answer the following question:
`How many field goals had 597 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many field goals had 597 points?`:
```sql
|
SELECT MIN("minutes") FROM "player_stats" WHERE "player"='Sue Bird'; |
## Task
Generate a SQL query to answer the following question:
`How many minutes were played by Sue Bird?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many minutes were played by Sue Bird?`:
```sql
|
SELECT MAX("rebounds") FROM "player_stats" WHERE "steals"=35; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of rebounds for players having exactly 35 steals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of rebounds for players having exactly 35 steals?`:
```sql
|
SELECT "steals" FROM "player_stats" WHERE "blocks"=3; |
## Task
Generate a SQL query to answer the following question:
`What are the numbers of steals associated with players having exactly 3 blocks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the numbers of steals associated with players having exactly 3 blocks?`:
```sql
|
SELECT COUNT("rebounds") FROM "player_stats" WHERE "points"=18; |
## Task
Generate a SQL query to answer the following question:
`How many numbers of rebounds are associated with exactly 18 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many numbers of rebounds are associated with exactly 18 points?`:
```sql
|
SELECT MAX("assists") FROM "player_stats" WHERE "player"='Anastasia Kostaki'; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of assists for players named Anastasia Kostaki?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of assists for players named Anastasia Kostaki?`:
```sql
|
SELECT MAX("steals") FROM "player_stats" WHERE "player"='Tiffani Johnson'; |
## Task
Generate a SQL query to answer the following question:
`What is Tiffani Johnson's maximum steals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tiffani Johnson's maximum steals?`:
```sql
|
SELECT "player" FROM "player_stats" WHERE "blocks"=17; |
## Task
Generate a SQL query to answer the following question:
`Which player has 17 blocks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has 17 blocks?`:
```sql
|
SELECT MIN("field_goals") FROM "player_stats" WHERE "rebounds"=84; |
## Task
Generate a SQL query to answer the following question:
`How many field goals does the player with 84 rebounds have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many field goals does the player with 84 rebounds have?`:
```sql
|
SELECT "blocks" FROM "player_stats" WHERE "minutes"=893; |
## Task
Generate a SQL query to answer the following question:
`How many blocks does the player who played 893 minutes have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many blocks does the player who played 893 minutes have?`:
```sql
|
SELECT "points" FROM "player_stats" WHERE "steals"=2; |
## Task
Generate a SQL query to answer the following question:
`How many points does the player with 2 steals have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"minutes" real,
"field_goals" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points does the player with 2 steals have?`:
```sql
|
SELECT MAX("number") FROM "list_of_boxing_septuple_or_seven_divisio"; |
## Task
Generate a SQL query to answer the following question:
`Name the most number`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_boxing_septuple_or_seven_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text,
"defenses" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most number`:
```sql
|
SELECT "titles" FROM "list_of_boxing_septuple_or_seven_divisio" WHERE "result"='TKO 11/12'; |
## Task
Generate a SQL query to answer the following question:
`Name the titles for tko 11/12`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_boxing_septuple_or_seven_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text,
"defenses" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the titles for tko 11/12`:
```sql
|
SELECT MAX("number") FROM "list_of_boxing_septuple_or_seven_divisio"; |
## Task
Generate a SQL query to answer the following question:
`Name the most number`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_boxing_septuple_or_seven_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text,
"defenses" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most number`:
```sql
|
SELECT "venue" FROM "nab_cup_and_premiership_season_results" WHERE "result_margin"='WON by 70'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game played when the result/margin was won by 70?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nab_cup_and_premiership_season_results" (
"round" text,
"opposition" text,
"time" text,
"date" text,
"home_away" text,
"venue" text,
"score" text,
"result_margin" text,
"broadcaster" text,
"tv" text,
"ladder_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played when the result/margin was won by 70?`:
```sql
|
SELECT "result_margin" FROM "nab_cup_and_premiership_season_results" WHERE "broadcaster"='Fox Sports 1' AND "venue"='MCG'; |
## Task
Generate a SQL query to answer the following question:
`What is the result/margin when fox sports 1 broadcast the game played at mcg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nab_cup_and_premiership_season_results" (
"round" text,
"opposition" text,
"time" text,
"date" text,
"home_away" text,
"venue" text,
"score" text,
"result_margin" text,
"broadcaster" text,
"tv" text,
"ladder_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result/margin when fox sports 1 broadcast the game played at mcg?`:
```sql
|
SELECT "broadcaster" FROM "nab_cup_and_premiership_season_results" WHERE "opposition"='Melbourne'; |
## Task
Generate a SQL query to answer the following question:
`Which network broadcast the game when the Western Bulldogs played melbourne?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nab_cup_and_premiership_season_results" (
"round" text,
"opposition" text,
"time" text,
"date" text,
"home_away" text,
"venue" text,
"score" text,
"result_margin" text,
"broadcaster" text,
"tv" text,
"ladder_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which network broadcast the game when the Western Bulldogs played melbourne?`:
```sql
|
SELECT "venue" FROM "nab_cup_and_premiership_season_results" WHERE "score"='14.16 (100)-12.12 (84)'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game played when the score was 14.16 (100)-12.12 (84)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nab_cup_and_premiership_season_results" (
"round" text,
"opposition" text,
"time" text,
"date" text,
"home_away" text,
"venue" text,
"score" text,
"result_margin" text,
"broadcaster" text,
"tv" text,
"ladder_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played when the score was 14.16 (100)-12.12 (84)?`:
```sql
|
SELECT "ladder_position" FROM "nab_cup_and_premiership_season_results" WHERE "score"='15.9 (99)–14.6 (90)'; |
## Task
Generate a SQL query to answer the following question:
`What was the ladder position when the score was 15.9 (99)–14.6 (90)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nab_cup_and_premiership_season_results" (
"round" text,
"opposition" text,
"time" text,
"date" text,
"home_away" text,
"venue" text,
"score" text,
"result_margin" text,
"broadcaster" text,
"tv" text,
"ladder_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the ladder position when the score was 15.9 (99)–14.6 (90)?`:
```sql
|
SELECT "date" FROM "nab_cup_and_premiership_season_results" WHERE "ladder_position"='8th' AND "opposition"='Hawthorn'; |
## Task
Generate a SQL query to answer the following question:
`On what date was the game played when the Western Bulldogs were in 8th ladder position and hawthorn was the opposing team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nab_cup_and_premiership_season_results" (
"round" text,
"opposition" text,
"time" text,
"date" text,
"home_away" text,
"venue" text,
"score" text,
"result_margin" text,
"broadcaster" text,
"tv" text,
"ladder_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the game played when the Western Bulldogs were in 8th ladder position and hawthorn was the opposing team?`:
```sql
|
SELECT "school" FROM "table1_24935743_2" WHERE "nickname"='Panthers'; |
## Task
Generate a SQL query to answer the following question:
`What school is nicknamed the panthers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24935743_2" (
"school" text,
"nickname" text,
"location" text,
"colors" text,
"type" text,
"membership_tenure" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school is nicknamed the panthers?`:
```sql
|
SELECT "location" FROM "table1_24935743_2" WHERE "school"='Jeromesville'; |
## Task
Generate a SQL query to answer the following question:
`What school is in Jeromesville?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_24935743_2" (
"school" text,
"nickname" text,
"location" text,
"colors" text,
"type" text,
"membership_tenure" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school is in Jeromesville?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.