output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT MAX("wins") FROM "torneo_apertura" WHERE "team"='Nacional'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest win for the team Nacional?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest win for the team Nacional?`:
```sql
|
SELECT MIN("conceded") FROM "torneo_apertura" WHERE "team"='12 de Octubre'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest conceded value for the team 12 De Octubre?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest conceded value for the team 12 De Octubre?`:
```sql
|
SELECT MIN("draws") FROM "torneo_apertura" WHERE "points"=21; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest draws value with 21 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest draws value with 21 points?`:
```sql
|
SELECT MAX("losses") FROM "torneo_apertura" WHERE "team"='Tacuary'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest loss for the Tacuary team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest loss for the Tacuary team?`:
```sql
|
SELECT "venue" FROM "schedule" WHERE "opponents"=51; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the venue where the opponent scored 51?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"packers_points" real,
"opponents" real,
"first_downs" real,
"record" text,
"streak" text,
"venue" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the venue where the opponent scored 51?`:
```sql
|
SELECT MIN("first_downs") FROM "schedule" WHERE "attendance"=13196; |
## Task
Generate a SQL query to answer the following question:
`How many first downs were there when the attendance was 13196?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"packers_points" real,
"opponents" real,
"first_downs" real,
"record" text,
"streak" text,
"venue" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many first downs were there when the attendance was 13196?`:
```sql
|
SELECT "game_site" FROM "schedule" WHERE "opponent"='Buffalo Bills'; |
## Task
Generate a SQL query to answer the following question:
`What was the site of the game against Buffalo Bills ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the site of the game against Buffalo Bills ?`:
```sql
|
SELECT MAX("attendance") FROM "schedule" WHERE "week"=8; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance in week 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance in week 8?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "attendance"=63995; |
## Task
Generate a SQL query to answer the following question:
`What was the date when the attendance was 63995`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date when the attendance was 63995`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "week"=4; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in week 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in week 4?`:
```sql
|
SELECT COUNT("skipper") FROM "line_honours_results_top_10" WHERE "yacht"='City Index Leopard'; |
## Task
Generate a SQL query to answer the following question:
`How many different skippers of the yacht City Index Leopard?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different skippers of the yacht City Index Leopard?`:
```sql
|
SELECT "elapsed_time_d_hh_mm_ss" FROM "line_honours_results_top_10" WHERE "yacht_type"='Reichel Pugh 55'; |
## Task
Generate a SQL query to answer the following question:
`What are all elapsed time amounts for yacht type Reichel Pugh 55?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all elapsed time amounts for yacht type Reichel Pugh 55?`:
```sql
|
SELECT "elapsed_time_d_hh_mm_ss" FROM "line_honours_results_top_10" WHERE "yacht_type"='STP 65'; |
## Task
Generate a SQL query to answer the following question:
`What are all elapsed time for yacht type STP 65?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all elapsed time for yacht type STP 65?`:
```sql
|
SELECT "race_number" FROM "line_honours_results_top_10" WHERE "sail_number"='AUS 03'; |
## Task
Generate a SQL query to answer the following question:
`If sail number is AUS 03, what are all associated race numbers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `If sail number is AUS 03, what are all associated race numbers?`:
```sql
|
SELECT "loa_metres" FROM "line_honours_results_top_10" WHERE "elapsed_time_d_hh_mm_ss"='2:17:01:05'; |
## Task
Generate a SQL query to answer the following question:
`What are all values of LOA(metres) for an elapsed time of 2:17:01:05?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all values of LOA(metres) for an elapsed time of 2:17:01:05?`:
```sql
|
SELECT "yacht" FROM "line_honours_results_top_10" WHERE "elapsed_time_d_hh_mm_ss"='2:14:12:49'; |
## Task
Generate a SQL query to answer the following question:
`When the elapsed time is 2:14:12:49, what are all yachts associated with this value?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "line_honours_results_top_10" (
"position" real,
"race_number" text,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"elapsed_time_d_hh_mm_ss" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the elapsed time is 2:14:12:49, what are all yachts associated with this value?`:
```sql
|
SELECT "location" FROM "women_kayak" WHERE "record"='1:37.071s'; |
## Task
Generate a SQL query to answer the following question:
`In what location was the fastest time 1:37.071s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_kayak" (
"distance" text,
"event" text,
"record" text,
"athletes" text,
"nationality" text,
"year" real,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what location was the fastest time 1:37.071s?`:
```sql
|
SELECT "location" FROM "women_kayak" WHERE "athletes"='Birgit Fischer'; |
## Task
Generate a SQL query to answer the following question:
`What are all the places where Birgit Fischer competed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_kayak" (
"distance" text,
"event" text,
"record" text,
"athletes" text,
"nationality" text,
"year" real,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the places where Birgit Fischer competed?`:
```sql
|
SELECT "record" FROM "women_kayak" WHERE "athletes"='Elzbieta Urbanczik'; |
## Task
Generate a SQL query to answer the following question:
`What are the records when Elzbieta Urbanczik competed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_kayak" (
"distance" text,
"event" text,
"record" text,
"athletes" text,
"nationality" text,
"year" real,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the records when Elzbieta Urbanczik competed?`:
```sql
|
SELECT COUNT("wins") FROM "torneo_apertura" WHERE "points"=17; |
## Task
Generate a SQL query to answer the following question:
`Name the number of wins for when points is 17`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of wins for when points is 17`:
```sql
|
SELECT COUNT("draws") FROM "torneo_apertura" WHERE "conceded"=25; |
## Task
Generate a SQL query to answer the following question:
`Name the number of draws for when conceded is 25`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of draws for when conceded is 25`:
```sql
|
SELECT MAX("conceded") FROM "torneo_apertura" WHERE "draws"=5 AND "position"=1; |
## Task
Generate a SQL query to answer the following question:
`Name the most conceded when draws is 5 and position is 1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most conceded when draws is 5 and position is 1`:
```sql
|
SELECT "original_air_date" FROM "table1_14889988_1" WHERE "production_code"=176265; |
## Task
Generate a SQL query to answer the following question:
`What date was the episode with production code 176265 aired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14889988_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the episode with production code 176265 aired?`:
```sql
|
SELECT "original_air_date" FROM "table1_14889988_1" WHERE "written_by"='Robert Carlock'; |
## Task
Generate a SQL query to answer the following question:
`On what dates were episodes written by Robert Carlock aired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14889988_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what dates were episodes written by Robert Carlock aired?`:
```sql
|
SELECT MAX("production_code") FROM "table1_14889988_1" WHERE "no_in_series"=229; |
## Task
Generate a SQL query to answer the following question:
`What is the production code for episode 229?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14889988_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for episode 229?`:
```sql
|
SELECT "title" FROM "table1_14889988_1" WHERE "written_by"='Robert Carlock & Dana Klein Borkow'; |
## Task
Generate a SQL query to answer the following question:
`What is the title for the episode written by Robert Carlock & Dana Klein Borkow?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14889988_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title for the episode written by Robert Carlock & Dana Klein Borkow?`:
```sql
|
SELECT "directed_by" FROM "table1_14889988_1" WHERE "production_code"=176252; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with the production code 176252?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14889988_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with the production code 176252?`:
```sql
|
SELECT "original_air_date" FROM "table1_14889988_1" WHERE "title"='\"The One Where Ross is Fine\"'; |
## Task
Generate a SQL query to answer the following question:
`What date was the episode entitled "The One Where Ross is Fine" aired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14889988_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the episode entitled "The One Where Ross is Fine" aired?`:
```sql
|
SELECT MIN("points") FROM "torneo_clausura" WHERE "scored"=15; |
## Task
Generate a SQL query to answer the following question:
`How many points when 15 is scored is considered the minimum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points when 15 is scored is considered the minimum?`:
```sql
|
SELECT MAX("points") FROM "torneo_clausura" WHERE "wins"=4; |
## Task
Generate a SQL query to answer the following question:
`When a team wins 4, how much is the Maximum amount of points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `When a team wins 4, how much is the Maximum amount of points?`:
```sql
|
SELECT COUNT("draws") FROM "torneo_clausura" WHERE "team"='Libertad'; |
## Task
Generate a SQL query to answer the following question:
`How may draws did libertad have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How may draws did libertad have?`:
```sql
|
SELECT "men_doubles" FROM "national_junior_champions" WHERE "womens_singles"='Els Baert'; |
## Task
Generate a SQL query to answer the following question:
`Name the men doubles for els baert`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_junior_champions" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"men_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the men doubles for els baert`:
```sql
|
SELECT "men_doubles" FROM "national_junior_champions" WHERE "womens_doubles"='Caroline Persyn Smids'; |
## Task
Generate a SQL query to answer the following question:
`Name the men doubles for caroline persyn smids`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_junior_champions" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"men_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the men doubles for caroline persyn smids`:
```sql
|
SELECT COUNT("men_doubles") FROM "national_junior_champions" WHERE "year"=2007; |
## Task
Generate a SQL query to answer the following question:
`Name the number of men doubles for 2007`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_junior_champions" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"men_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of men doubles for 2007`:
```sql
|
SELECT "womens_singles" FROM "past_winners" WHERE "womens_doubles"='Raina Tzvetkova Petya Nedelcheva'; |
## Task
Generate a SQL query to answer the following question:
`Name the womens singles for raina tzvetkova petya nedelcheva`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 `Name the womens singles for raina tzvetkova petya nedelcheva`:
```sql
|
SELECT COUNT("year") FROM "past_winners" WHERE "womens_doubles"='Diana Koleva Emilia Dimitrova' AND "mens_singles"='Jeliazko Valkov'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of years for womens doubles being diana koleva emilia dimitrova and jeliazko valkov`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 `Name the number of years for womens doubles being diana koleva emilia dimitrova and jeliazko valkov`:
```sql
|
SELECT "mens_singles" FROM "past_winners" WHERE "mixed_doubles"='Jeliazko Valkov Dobrinka Peneva'; |
## Task
Generate a SQL query to answer the following question:
`Name the mens singles for jeliazko valkov dobrinka peneva`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 `Name the mens singles for jeliazko valkov dobrinka peneva`:
```sql
|
SELECT "mens_singles" FROM "past_winners" WHERE "year"=1989; |
## Task
Generate a SQL query to answer the following question:
`Name the mens singles for 1989`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 `Name the mens singles for 1989`:
```sql
|
SELECT "year" FROM "past_winners" WHERE "womens_doubles"='Victoria Hristova Neli Nedialkova'; |
## Task
Generate a SQL query to answer the following question:
`Name the year for victoria hristova neli nedialkova`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 `Name the year for victoria hristova neli nedialkova`:
```sql
|
SELECT "year" FROM "past_winners" WHERE "womens_doubles"='Raina Tzvetkova Emilia Dimitrova'; |
## Task
Generate a SQL query to answer the following question:
`Name the year for womens doubles being raina tzvetkova emilia dimitrova`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 `Name the year for womens doubles being raina tzvetkova emilia dimitrova`:
```sql
|
SELECT "mens_doubles" FROM "past_winners" WHERE "womens_doubles"='Piret Hamer Helen Reino'; |
## Task
Generate a SQL query to answer the following question:
`WHAT ARE THE NAMES OF THE MENS DOUBLES WHEN THE WOMENS DOUBLES WAS PIRET HAMER HELEN REINO?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 `WHAT ARE THE NAMES OF THE MENS DOUBLES WHEN THE WOMENS DOUBLES WAS PIRET HAMER HELEN REINO?`:
```sql
|
SELECT "mens_doubles" FROM "past_winners" WHERE "womens_doubles"='Helen Reino Kai-Riin Saluste'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE NAME OF THE MENS DOUBLES PLAYER WHEN THE WOMENS DOUBLES PLAYER IS HELEN REINO KAI-RIIN SALUSTE?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 `WHAT IS THE NAME OF THE MENS DOUBLES PLAYER WHEN THE WOMENS DOUBLES PLAYER IS HELEN REINO KAI-RIIN SALUSTE?`:
```sql
|
SELECT "mixed_doubles" FROM "past_winners" WHERE "womens_singles"='Kairi Viilup'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE NAME OF THE MIXED DOUBLES PLAYER WHEN THE WOMENS SINGLE PLAYER IS KAIRI VIILUP?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 `WHAT IS THE NAME OF THE MIXED DOUBLES PLAYER WHEN THE WOMENS SINGLE PLAYER IS KAIRI VIILUP?`:
```sql
|
SELECT COUNT("year") FROM "past_winners" WHERE "mens_doubles"='Heiki Sorge Meelis Maiste'; |
## Task
Generate a SQL query to answer the following question:
`HOW MANY YEARS DID MENS DOUBLES PLAYER HEIKI SORGE MEELIS MAISTE PLAY?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 `HOW MANY YEARS DID MENS DOUBLES PLAYER HEIKI SORGE MEELIS MAISTE PLAY?`:
```sql
|
SELECT "womens_doubles" FROM "past_winners" WHERE "mens_doubles"='Charalambos Kazilas Stepan Partemian'; |
## Task
Generate a SQL query to answer the following question:
`Name the womens doubles when mens doubles is charalambos kazilas stepan partemian`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 `Name the womens doubles when mens doubles is charalambos kazilas stepan partemian`:
```sql
|
SELECT "womens_doubles" FROM "past_winners" WHERE "mixed_doubles"='Potten Ruth Scott'; |
## Task
Generate a SQL query to answer the following question:
`Name the womens doubles when mixed doubles is potten ruth scott`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 `Name the womens doubles when mixed doubles is potten ruth scott`:
```sql
|
SELECT "mens_singles" FROM "past_winners" WHERE "mens_doubles"='George Georgoudis Gerostergiou'; |
## Task
Generate a SQL query to answer the following question:
`Name the mens singles when mens doubles is george georgoudis gerostergiou`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 `Name the mens singles when mens doubles is george georgoudis gerostergiou`:
```sql
|
SELECT "womens_doubles" FROM "past_winners" WHERE "mens_doubles"='Theodoros Velkos Giorgos Patis'; |
## Task
Generate a SQL query to answer the following question:
`Name the womens doubles when mens doubles is theodoros velkos giorgos patis`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 `Name the womens doubles when mens doubles is theodoros velkos giorgos patis`:
```sql
|
SELECT MIN("year") FROM "table1_14903999_1" WHERE "mixed_doubles"='Þorvaldur Ásgeirsson Lovísa Sigurðardóttir'; |
## Task
Generate a SQL query to answer the following question:
`What was the earliest year Þorvaldur Ásgeirsson Lovísa Sigurðardóttir won mixed doubles`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14903999_1" (
"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 `What was the earliest year Þorvaldur Ásgeirsson Lovísa Sigurðardóttir won mixed doubles`:
```sql
|
SELECT "womens_doubles" FROM "table1_14903999_1" WHERE "mixed_doubles"='Magnús Ingi Helgason Tinna Helgadóttir' AND "womens_singles"='Ragna Ingólfsdóttir' AND "year"=2010; |
## Task
Generate a SQL query to answer the following question:
`Who won womens doubles the year magnús ingi helgason tinna helgadóttir won mixed doubles and ragna ingólfsdóttir won womens singles in 2010`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14903999_1" (
"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 won womens doubles the year magnús ingi helgason tinna helgadóttir won mixed doubles and ragna ingólfsdóttir won womens singles in 2010`:
```sql
|
SELECT COUNT("womens_doubles") FROM "table1_14903999_1" WHERE "mixed_doubles"='Broddi Kristjánsson Drífa Harðardóttir'; |
## Task
Generate a SQL query to answer the following question:
`How many womens doubles had champions the years broddi kristjánsson drífa harðardóttir won mixed doubles`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14903999_1" (
"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 `How many womens doubles had champions the years broddi kristjánsson drífa harðardóttir won mixed doubles`:
```sql
|
SELECT "mixed_doubles" FROM "table1_14903999_1" WHERE "mens_doubles"='Einar Jónsson Wagner Walbom' AND "mens_singles"='Wagner Walbom'; |
## Task
Generate a SQL query to answer the following question:
`Who won mixed doubles the years einar jónsson wagner walbom won mens doubles and wagner walbom won mens singles`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14903999_1" (
"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 won mixed doubles the years einar jónsson wagner walbom won mens doubles and wagner walbom won mens singles`:
```sql
|
SELECT MAX("year") FROM "table1_14903999_1" WHERE "mixed_doubles"='Árni Þór Hallgrímsson Drífa Harðardóttir'; |
## Task
Generate a SQL query to answer the following question:
`What was the last year árni þór hallgrímsson drífa harðardóttir won mixed doubles`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14903999_1" (
"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 `What was the last year árni þór hallgrímsson drífa harðardóttir won mixed doubles`:
```sql
|
SELECT "mens_singles" FROM "table1_14903999_1" WHERE "mens_doubles"='Sveinn Logi Sölvason Tryggvi Nilsen' AND "womens_singles"='Elsa Nielsen'; |
## Task
Generate a SQL query to answer the following question:
`Who won mens singles the year sveinn logi sölvason tryggvi nilsen won mens doubles and elsa nielsen won womens singles`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_14903999_1" (
"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 won mens singles the year sveinn logi sölvason tryggvi nilsen won mens doubles and elsa nielsen won womens singles`:
```sql
|
SELECT "position" FROM "torneo_clausura" WHERE "team"='Cerro Porteño'; |
## Task
Generate a SQL query to answer the following question:
`In which position is the team Cerro Porteño?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `In which position is the team Cerro Porteño?`:
```sql
|
SELECT MIN("played") FROM "torneo_clausura"; |
## Task
Generate a SQL query to answer the following question:
`How many games were played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were played?`:
```sql
|
SELECT "mixed_doubles" FROM "past_winners" WHERE "mens_doubles"='no competition'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of men's doubles when there was no competition?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 `What is the result of men's doubles when there was no competition?`:
```sql
|
SELECT "mens_singles" FROM "past_winners" WHERE "year"=1994; |
## Task
Generate a SQL query to answer the following question:
`WHo won men's singles in 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 won men's singles in 1994?`:
```sql
|
SELECT "womens_singles" FROM "past_winners" WHERE "year"=2001; |
## Task
Generate a SQL query to answer the following question:
`Who won women's singles in 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"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 won women's singles in 2001?`:
```sql
|
SELECT MIN("wins") FROM "torneo_apertura"; |
## Task
Generate a SQL query to answer the following question:
`Name the least wins`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least wins`:
```sql
|
SELECT "result" FROM "submissions" WHERE "original_title"='Γолемата Вода'; |
## Task
Generate a SQL query to answer the following question:
`is γолемата вода nominated for anything?`
### 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,
"language_s" text,
"director_s" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `is γолемата вода nominated for anything?`:
```sql
|
SELECT COUNT("year_ceremony") FROM "submissions" WHERE "original_title"='Сенки'; |
## Task
Generate a SQL query to answer the following question:
`how many years has сенки been nominated?`
### 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,
"language_s" text,
"director_s" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many years has сенки been nominated?`:
```sql
|
SELECT COUNT("director_s") FROM "submissions" WHERE "original_title"='Мајки'; |
## Task
Generate a SQL query to answer the following question:
`how many directors for the film мајки`
### 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,
"language_s" text,
"director_s" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many directors for the film мајки`:
```sql
|
SELECT "performer_2" FROM "radio_series" WHERE "episode"=5; |
## Task
Generate a SQL query to answer the following question:
`Who is the second performer in episode 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "radio_series" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the second performer in episode 5?`:
```sql
|
SELECT COUNT("date") FROM "radio_series" WHERE "performer_3"='Kate Robbins'; |
## Task
Generate a SQL query to answer the following question:
`How many times was performer 3 Kate Robbins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "radio_series" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was performer 3 Kate Robbins?`:
```sql
|
SELECT "performer_1" FROM "radio_series" WHERE "date"='30 January 1988'; |
## Task
Generate a SQL query to answer the following question:
`Who was perfomer one on 30 January 1988?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "radio_series" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was perfomer one on 30 January 1988?`:
```sql
|
SELECT "performer_4" FROM "radio_series" WHERE "performer_3"='Kate Robbins'; |
## Task
Generate a SQL query to answer the following question:
`Who was performer 4 when Kate Robbins was performer 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "radio_series" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was performer 4 when Kate Robbins was performer 3?`:
```sql
|
SELECT COUNT("episode") FROM "radio_series" WHERE "performer_4"='Jimmy Mulville'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes was Jimmy Mulville performer 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "radio_series" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes was Jimmy Mulville performer 4?`:
```sql
|
SELECT COUNT("stuart") FROM "instruments_played_by_band_members" WHERE "songs"='\"We Got Married\"'; |
## Task
Generate a SQL query to answer the following question:
`How many instruments did Stuart play on "We Got Married"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "instruments_played_by_band_members" (
"songs" text,
"paul_mc_cartney" text,
"stuart" text,
"mc_intosh" text,
"wix" text,
"whitten" text,
"linda_mc_cartney" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many instruments did Stuart play on "We Got Married"?`:
```sql
|
SELECT "general_election" FROM "in_general_elections" WHERE "votes_swing"='1.84'; |
## Task
Generate a SQL query to answer the following question:
`Which general election had a vote swing of 1.84?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in_general_elections" (
"year" text,
"general_election" text,
"seats_won" real,
"change_in_seat" real,
"pct_of_votes" text,
"votes_swing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which general election had a vote swing of 1.84?`:
```sql
|
SELECT COUNT("seats_won") FROM "in_general_elections" WHERE "pct_of_votes"='20.29'; |
## Task
Generate a SQL query to answer the following question:
`What was the total number of seats won where the % of votes is equal to 20.29?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in_general_elections" (
"year" text,
"general_election" text,
"seats_won" real,
"change_in_seat" real,
"pct_of_votes" text,
"votes_swing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number of seats won where the % of votes is equal to 20.29?`:
```sql
|
SELECT "change_in_seat" FROM "in_general_elections" WHERE "pct_of_votes"='23.75'; |
## Task
Generate a SQL query to answer the following question:
`What was the number of seat changes when the % of votes was 23.75?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in_general_elections" (
"year" text,
"general_election" text,
"seats_won" real,
"change_in_seat" real,
"pct_of_votes" text,
"votes_swing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of seat changes when the % of votes was 23.75?`:
```sql
|
SELECT "general_election" FROM "in_general_elections" WHERE "votes_swing"='1.69'; |
## Task
Generate a SQL query to answer the following question:
`Which general election had a vote swing of 1.69?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in_general_elections" (
"year" text,
"general_election" text,
"seats_won" real,
"change_in_seat" real,
"pct_of_votes" text,
"votes_swing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which general election had a vote swing of 1.69?`:
```sql
|
SELECT "votes_swing" FROM "in_general_elections" WHERE "general_election"='12th Lok Sabha'; |
## Task
Generate a SQL query to answer the following question:
`What was the vote swing for the general election of the 12th lok sabha?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "in_general_elections" (
"year" text,
"general_election" text,
"seats_won" real,
"change_in_seat" real,
"pct_of_votes" text,
"votes_swing" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the vote swing for the general election of the 12th lok sabha?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "week"=4; |
## Task
Generate a SQL query to answer the following question:
`What was the team's result in week 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team's result in week 4?`:
```sql
|
SELECT "prefix_size" FROM "subnet_and_host_counts" WHERE "network_mask"='255.255.255.252'; |
## Task
Generate a SQL query to answer the following question:
`When the network mask is 255.255.255.252 what is the prefix size?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "subnet_and_host_counts" (
"prefix_size" text,
"network_mask" text,
"available_subnets" real,
"usable_hosts_per_subnet" real,
"total_usable_hosts" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the network mask is 255.255.255.252 what is the prefix size?`:
```sql
|
SELECT MAX("available_subnets") FROM "subnet_and_host_counts"; |
## Task
Generate a SQL query to answer the following question:
`available subnets leading total is?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "subnet_and_host_counts" (
"prefix_size" text,
"network_mask" text,
"available_subnets" real,
"usable_hosts_per_subnet" real,
"total_usable_hosts" real
);
### SQL
Given the database schema, here is the SQL query that answers `available subnets leading total is?`:
```sql
|
SELECT MIN("available_subnets") FROM "subnet_and_host_counts" WHERE "network_mask"='255.255.255.128'; |
## Task
Generate a SQL query to answer the following question:
`When the network mask is 255.255.255.128 what is the lowest available subnet?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "subnet_and_host_counts" (
"prefix_size" text,
"network_mask" text,
"available_subnets" real,
"usable_hosts_per_subnet" real,
"total_usable_hosts" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the network mask is 255.255.255.128 what is the lowest available subnet?`:
```sql
|
SELECT MAX("total_usable_hosts") FROM "subnet_and_host_counts" WHERE "network_mask"='255.255.255.224'; |
## Task
Generate a SQL query to answer the following question:
`When the network mask is 255.255.255.224 what is the highest total usable host?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "subnet_and_host_counts" (
"prefix_size" text,
"network_mask" text,
"available_subnets" real,
"usable_hosts_per_subnet" real,
"total_usable_hosts" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the network mask is 255.255.255.224 what is the highest total usable host?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "date"='November 12, 1978'; |
## Task
Generate a SQL query to answer the following question:
`Who were all of the opponents when the date was November 12, 1978?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who were all of the opponents when the date was November 12, 1978?`:
```sql
|
SELECT COUNT("attendance") FROM "schedule" WHERE "date"='October 1, 1978'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of values for attendance for the date October 1, 1978?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of values for attendance for the date October 1, 1978?`:
```sql
|
SELECT MAX("attendance") FROM "schedule"; |
## Task
Generate a SQL query to answer the following question:
`What was the highest attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest attendance?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "opponent"='New York Jets'; |
## Task
Generate a SQL query to answer the following question:
`What date did the Colts play New York Jets?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the Colts play New York Jets?`:
```sql
|
SELECT COUNT("result") FROM "schedule" WHERE "attendance"=60225; |
## Task
Generate a SQL query to answer the following question:
`How many games had the attendance of 60225?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games had the attendance of 60225?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "date"='October 6, 1974'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game on October 6, 1974?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game on October 6, 1974?`:
```sql
|
SELECT "record" FROM "schedule" WHERE "date"='September 22, 1974'; |
## Task
Generate a SQL query to answer the following question:
`What was the record on September 22, 1974?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on September 22, 1974?`:
```sql
|
SELECT "bhofennum1_rk" FROM "overall_standings" WHERE "bhofennum2_rk"='231.2 (8)'; |
## Task
Generate a SQL query to answer the following question:
`What was the Bhofen #1 score and rank for the player whose Bhofen #2 score and rank was 231.2 (8)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall_standings" (
"rank" real,
"name" text,
"nationality" text,
"total_points" text,
"oberstdorf_rk" text,
"ga_pa_rk" text,
"bhofennum1_rk" text,
"bhofennum2_rk" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Bhofen #1 score and rank for the player whose Bhofen #2 score and rank was 231.2 (8)?`:
```sql
|
SELECT "bhofennum2_rk" FROM "overall_standings" WHERE "ga_pa_rk"='233.4 (16)'; |
## Task
Generate a SQL query to answer the following question:
`What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 233.4 (16)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall_standings" (
"rank" real,
"name" text,
"nationality" text,
"total_points" text,
"oberstdorf_rk" text,
"ga_pa_rk" text,
"bhofennum1_rk" text,
"bhofennum2_rk" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 233.4 (16)?`:
```sql
|
SELECT "bhofennum2_rk" FROM "overall_standings" WHERE "ga_pa_rk"='227.5 (19)'; |
## Task
Generate a SQL query to answer the following question:
`What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 227.5 (19)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall_standings" (
"rank" real,
"name" text,
"nationality" text,
"total_points" text,
"oberstdorf_rk" text,
"ga_pa_rk" text,
"bhofennum1_rk" text,
"bhofennum2_rk" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 227.5 (19)?`:
```sql
|
SELECT "total_points" FROM "overall_standings" WHERE "oberstdorf_rk"='252.6 (11)'; |
## Task
Generate a SQL query to answer the following question:
`How many points in total were scored by the player whose Oberstdork score and rank were 252.6 (11)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall_standings" (
"rank" real,
"name" text,
"nationality" text,
"total_points" text,
"oberstdorf_rk" text,
"ga_pa_rk" text,
"bhofennum1_rk" text,
"bhofennum2_rk" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points in total were scored by the player whose Oberstdork score and rank were 252.6 (11)?`:
```sql
|
SELECT MAX("week") FROM "schedule" WHERE "attendance"=74303; |
## Task
Generate a SQL query to answer the following question:
`On which week was the attendance 74303?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `On which week was the attendance 74303?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "game_site"='Tiger Stadium'; |
## Task
Generate a SQL query to answer the following question:
`On which date was the game played at Tiger Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `On which date was the game played at Tiger Stadium?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "opponent"='Dallas Cowboys'; |
## Task
Generate a SQL query to answer the following question:
`What was the final score of the game against the Dallas Cowboys?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score of the game against the Dallas Cowboys?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "date"='December 10, 1972'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the game played on December 10, 1972?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at the game played on December 10, 1972?`:
```sql
|
SELECT COUNT("french_voice_actor") FROM "list_of_voice_actors_in_the_jak_and_daxt" WHERE "spanish_voice_actor"='Javier Romano'; |
## Task
Generate a SQL query to answer the following question:
`Name the french actor with javier romano`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_voice_actors_in_the_jak_and_daxt" (
"character" text,
"french_voice_actor" text,
"italian_voice_actor" text,
"german_voice_actor" text,
"spanish_voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the french actor with javier romano`:
```sql
|
SELECT "german_voice_actor" FROM "list_of_voice_actors_in_the_jak_and_daxt" WHERE "french_voice_actor"='Alain Dorval'; |
## Task
Generate a SQL query to answer the following question:
`Name the german voice actor for alain dorval`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_voice_actors_in_the_jak_and_daxt" (
"character" text,
"french_voice_actor" text,
"italian_voice_actor" text,
"german_voice_actor" text,
"spanish_voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the german voice actor for alain dorval`:
```sql
|
SELECT "german_voice_actor" FROM "list_of_voice_actors_in_the_jak_and_daxt" WHERE "spanish_voice_actor"='Rafael Torres'; |
## Task
Generate a SQL query to answer the following question:
`Name the german voice actor for rafael torres`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_voice_actors_in_the_jak_and_daxt" (
"character" text,
"french_voice_actor" text,
"italian_voice_actor" text,
"german_voice_actor" text,
"spanish_voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the german voice actor for rafael torres`:
```sql
|
SELECT "character" FROM "list_of_voice_actors_in_the_jak_and_daxt" WHERE "french_voice_actor"='Sophie Arthuys'; |
## Task
Generate a SQL query to answer the following question:
`Name the character for sophie arthuys`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_voice_actors_in_the_jak_and_daxt" (
"character" text,
"french_voice_actor" text,
"italian_voice_actor" text,
"german_voice_actor" text,
"spanish_voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the character for sophie arthuys`:
```sql
|
SELECT "italian_voice_actor" FROM "list_of_voice_actors_in_the_jak_and_daxt" WHERE "german_voice_actor"='Dirk Fenselau'; |
## Task
Generate a SQL query to answer the following question:
`Name the italian voice actor for dirk fenselau`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_voice_actors_in_the_jak_and_daxt" (
"character" text,
"french_voice_actor" text,
"italian_voice_actor" text,
"german_voice_actor" text,
"spanish_voice_actor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the italian voice actor for dirk fenselau`:
```sql
|
SELECT "europe" FROM "appearances" WHERE "league_cup"='36 (0)'; |
## Task
Generate a SQL query to answer the following question:
`what is the Europe number for the league cup of 36 (0)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "appearances" (
"name" text,
"years" text,
"league" text,
"fa_cup" text,
"league_cup" text,
"europe" text,
"other_a" text,
"total" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the Europe number for the league cup of 36 (0)?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.