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... |
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,
"win... |
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,
"dra... |
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... |
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,
... |
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,... |
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,
"recor... |
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_si... |
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" tex... |
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"... |
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... |
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,
... |
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" tex... |
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,
"s... |
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... |
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,
"ra... |
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,
"na... |
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,... |
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,... |
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"... |
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,
"dra... |
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... |
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" te... |
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" te... |
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_... |
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... |
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,... |
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,
... |
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" ... |
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"... |
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,
"los... |
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_double... |
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,
... |
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_d... |
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,... |
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... |
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,
... |
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,
"wome... |
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_d... |
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_sing... |
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" ... |
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,
... |
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" ... |
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_singl... |
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,
"w... |
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" tex... |
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_si... |
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_... |
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"... |
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 "... |
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,... |
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... |
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,... |
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" (
... |
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" ... |
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" ... |
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" ... |
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,
"wome... |
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,
"wo... |
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,
... |
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" t... |
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" t... |
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... |
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,
"pe... |
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,
... |
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,
"per... |
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... |
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" tex... |
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,
... |
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,
"ch... |
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" t... |
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,
"seat... |
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,
"ch... |
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,
... |
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... |
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,
"... |
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,
"us... |
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_ma... |
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_... |
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" t... |
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,... |
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... |
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,
... |
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,
... |
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"... |
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,
... |
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,
"na... |
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"... |
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"... |
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,
"n... |
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,
"ga... |
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"... |
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" tex... |
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" tex... |
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,
"ita... |
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,
... |
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,
... |
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,
"italia... |
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,
... |
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,
"l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.