output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "clubs_remaining" FROM "teams" WHERE "round"='Preliminary round';
## Task Generate a SQL query to answer the following question: `How many clubs were remaining in the preliminary round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text ); ### SQL Given the database schema, here is the SQL query that answers `How many clubs were remaining in the preliminary round?`: ```sql
SELECT "round" FROM "teams" WHERE "winners_from_previous_round"='16';
## Task Generate a SQL query to answer the following question: `What was the round when there were 16 winners from the previous round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the round when there were 16 winners from the previous round?`: ```sql
SELECT "clubs_involved" FROM "teams" WHERE "round"='Second round';
## Task Generate a SQL query to answer the following question: `How many clubs were involved in the second round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "round" text, "clubs_remaining" real, "clubs_involved" real, "winners_from_previous_round" text, "new_entries_this_round" text, "leagues_entering_at_this_round" text ); ### SQL Given the database schema, here is the SQL query that answers `How many clubs were involved in the second round?`: ```sql
SELECT "town" FROM "wta_tour" WHERE "tournament"='Grand Prix De SAR La Princesse Lalla Meryem';
## Task Generate a SQL query to answer the following question: `When grand prix de sar la princesse lalla meryem is the tournament what is the town?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wta_tour" ( "week" real, "start_date" text, "type" text, "tournament" text, "surface" text, "town" text, "country" text, "continent" text, "prize_money" text ); ### SQL Given the database schema, here is the SQL query that answers `When grand prix de sar la princesse lalla meryem is the tournament what is the town?`: ```sql
SELECT "type" FROM "wta_tour" WHERE "town"='Stuttgart';
## Task Generate a SQL query to answer the following question: `When stuttgart is the town what is the type?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wta_tour" ( "week" real, "start_date" text, "type" text, "tournament" text, "surface" text, "town" text, "country" text, "continent" text, "prize_money" text ); ### SQL Given the database schema, here is the SQL query that answers `When stuttgart is the town what is the type?`: ```sql
SELECT "driver" FROM "selected_entries" WHERE "entrant"='Belgian VW Club' AND "co_driver"='Frédéric Miclotte';
## Task Generate a SQL query to answer the following question: `who is the person that is part of the belgian vw club that works with frédéric miclotte` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "selected_entries" ( "entrant" text, "constructor" text, "car" text, "driver" text, "co_driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the person that is part of the belgian vw club that works with frédéric miclotte`: ```sql
SELECT "car" FROM "selected_entries" WHERE "driver"='Mark Higgins';
## Task Generate a SQL query to answer the following question: `what is the type of vehicle driven by mark higgins` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "selected_entries" ( "entrant" text, "constructor" text, "car" text, "driver" text, "co_driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the type of vehicle driven by mark higgins`: ```sql
SELECT "entrant" FROM "selected_entries" WHERE "co_driver"='Zdeněk Hrůza';
## Task Generate a SQL query to answer the following question: `what is the entry where the other person is zdeněk hrůza` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "selected_entries" ( "entrant" text, "constructor" text, "car" text, "driver" text, "co_driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the entry where the other person is zdeněk hrůza`: ```sql
SELECT "driver" FROM "selected_entries" WHERE "co_driver"='Paulo Babo';
## Task Generate a SQL query to answer the following question: `who is the other person where the assistant is paulo babo` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "selected_entries" ( "entrant" text, "constructor" text, "car" text, "driver" text, "co_driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the other person where the assistant is paulo babo`: ```sql
SELECT "driver" FROM "selected_entries" WHERE "entrant"='Peugeot Sport Polska';
## Task Generate a SQL query to answer the following question: `what are all the people where the entries is peugeot sport polska` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "selected_entries" ( "entrant" text, "constructor" text, "car" text, "driver" text, "co_driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `what are all the people where the entries is peugeot sport polska`: ```sql
SELECT "written_by" FROM "table1_28037619_2" WHERE "u_s_viewers_million"='6.05';
## Task Generate a SQL query to answer the following question: `Who wrote the episode that had 6.05 million U.s. viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28037619_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode that had 6.05 million U.s. viewers?`: ```sql
SELECT COUNT("production_code") FROM "table1_28037619_2" WHERE "u_s_viewers_million"='4.36';
## Task Generate a SQL query to answer the following question: `How many production codes are there for the episode that had 4.36 million u.s. viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28037619_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `How many production codes are there for the episode that had 4.36 million u.s. viewers?`: ```sql
SELECT COUNT("written_by") FROM "table1_28037619_2" WHERE "u_s_viewers_million"='7.26';
## Task Generate a SQL query to answer the following question: `How many people wrote the episode that had 7.26 million u.s. viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28037619_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people wrote the episode that had 7.26 million u.s. viewers?`: ```sql
SELECT "u_s_viewers_million" FROM "table1_28037619_2" WHERE "directed_by"='Roger Young' AND "written_by"='Debra J. Fisher';
## Task Generate a SQL query to answer the following question: `How many million u.s. viewers saw the episode that was directed by roger young and written by debra j. fisher?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28037619_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `How many million u.s. viewers saw the episode that was directed by roger young and written by debra j. fisher?`: ```sql
SELECT "title" FROM "table1_28037619_2" WHERE "written_by"='David Matthews';
## Task Generate a SQL query to answer the following question: `What is the name of the episode written by David Matthews?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28037619_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the episode written by David Matthews?`: ```sql
SELECT "colors" FROM "former_members" WHERE "school"='Hudson';
## Task Generate a SQL query to answer the following question: `What are the colors of the Hudson school?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "school" text, "nickname" text, "location" text, "colors" text, "tenure" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the colors of the Hudson school?`: ```sql
SELECT "tenure" FROM "former_members" WHERE "school"='Field';
## Task Generate a SQL query to answer the following question: `When were the members tenured in the Field school?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "school" text, "nickname" text, "location" text, "colors" text, "tenure" text ); ### SQL Given the database schema, here is the SQL query that answers `When were the members tenured in the Field school?`: ```sql
SELECT COUNT("pick_num") FROM "round_one" WHERE "cfl_team"='Toronto Argonauts';
## Task Generate a SQL query to answer the following question: `How many pick# for CFL team of Toronto Argonauts?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How many pick# for CFL team of Toronto Argonauts?`: ```sql
SELECT "cfl_team" FROM "round_one" WHERE "college"='Calgary';
## Task Generate a SQL query to answer the following question: `What is every CFL team from the Calgary college?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every CFL team from the Calgary college?`: ```sql
SELECT "position" FROM "round_one" WHERE "cfl_team"='Edmonton';
## Task Generate a SQL query to answer the following question: `What is every position for the CFL Edmonton?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every position for the CFL Edmonton?`: ```sql
SELECT "cfl_team" FROM "round_one" WHERE "college"='Calgary';
## Task Generate a SQL query to answer the following question: `What is every CFL team for the college of Calgary?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every CFL team for the college of Calgary?`: ```sql
SELECT "cfl_team" FROM "round_one" WHERE "pick_num"=1;
## Task Generate a SQL query to answer the following question: `What is every CFL team with pick#1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every CFL team with pick#1?`: ```sql
SELECT "cfl_team" FROM "round_one" WHERE "player"='Mark Farraway';
## Task Generate a SQL query to answer the following question: `What is every CFL team with the player Mark Farraway?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every CFL team with the player Mark Farraway?`: ```sql
SELECT MIN("pick_num") FROM "round_five" WHERE "player"='Andy Brereton';
## Task Generate a SQL query to answer the following question: `What draft pick number was Andy Brereton?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What draft pick number was Andy Brereton?`: ```sql
SELECT "pick_num" FROM "round_five" WHERE "cfl_team"='Edmonton';
## Task Generate a SQL query to answer the following question: `What pick number was the player that was picked by Edmonton?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What pick number was the player that was picked by Edmonton?`: ```sql
SELECT "position" FROM "round_five" WHERE "cfl_team"='Saskatchewan';
## Task Generate a SQL query to answer the following question: `What position did the draft pick going to saskatchewan play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What position did the draft pick going to saskatchewan play?`: ```sql
SELECT MAX("pick_num") FROM "round_five";
## Task Generate a SQL query to answer the following question: `What is the highest numbered draft pick?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest numbered draft pick?`: ```sql
SELECT "cfl_team" FROM "round_five" WHERE "college"='York';
## Task Generate a SQL query to answer the following question: `What CFL team got the player from york?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What CFL team got the player from york?`: ```sql
SELECT COUNT("position") FROM "round_five" WHERE "player"='Trent Bagnail';
## Task Generate a SQL query to answer the following question: `How many positions does Trent Bagnail play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How many positions does Trent Bagnail play?`: ```sql
SELECT "position" FROM "round_six" WHERE "cfl_team"='Edmonton';
## Task Generate a SQL query to answer the following question: `What position was the player who was drafted by Edmonton?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What position was the player who was drafted by Edmonton?`: ```sql
SELECT "college" FROM "round_six" WHERE "position"='RB';
## Task Generate a SQL query to answer the following question: `What college did the player whose position was RB go to? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What college did the player whose position was RB go to? `: ```sql
SELECT "college" FROM "round_six" WHERE "player"='Francis Bellefroid';
## Task Generate a SQL query to answer the following question: `What college did Francis Bellefroid go to? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What college did Francis Bellefroid go to? `: ```sql
SELECT "player" FROM "round_six" WHERE "cfl_team"='Winnipeg';
## Task Generate a SQL query to answer the following question: `Which player was drafted by Winnipeg? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player was drafted by Winnipeg? `: ```sql
SELECT "college" FROM "round_six" WHERE "cfl_team"='Calgary';
## Task Generate a SQL query to answer the following question: `What college did the player who was drafted by Calgary go to?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What college did the player who was drafted by Calgary go to?`: ```sql
SELECT "height" FROM "contestants" WHERE "represent"=1;
## Task Generate a SQL query to answer the following question: `What was the height of representative #1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "represent" real, "contestant" text, "age" real, "height" text, "hometown" text, "sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the height of representative #1?`: ```sql
SELECT "contestant" FROM "contestants" WHERE "sponsor"='Yogurt Vita Slim';
## Task Generate a SQL query to answer the following question: `Which contestant was sponsored by Yogurt Vita Slim?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "represent" real, "contestant" text, "age" real, "height" text, "hometown" text, "sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `Which contestant was sponsored by Yogurt Vita Slim?`: ```sql
SELECT "height" FROM "contestants" WHERE "represent"=6;
## Task Generate a SQL query to answer the following question: `What was the height of representative #6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "represent" real, "contestant" text, "age" real, "height" text, "hometown" text, "sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the height of representative #6?`: ```sql
SELECT COUNT("written_by") FROM "table1_28081876_4" WHERE "directed_by"='Rob Schrab';
## Task Generate a SQL query to answer the following question: `how many people wrote the episode directed by rob schrab?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28081876_4" ( "series_no" real, "season_no" 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 `how many people wrote the episode directed by rob schrab?`: ```sql
SELECT "title" FROM "table1_28081876_4" WHERE "production_code"=201;
## Task Generate a SQL query to answer the following question: `name the title of the episode with production code 201` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28081876_4" ( "series_no" real, "season_no" 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 `name the title of the episode with production code 201`: ```sql
SELECT "written_by" FROM "table1_28081876_6" WHERE "original_air_date"='August 10, 2012';
## Task Generate a SQL query to answer the following question: `Who were the authors of the episode first broadcast on August 10, 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28081876_6" ( "series_no" real, "season_no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the authors of the episode first broadcast on August 10, 2012?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_28081876_6" WHERE "title"='\"Behind the Scenes\"';
## Task Generate a SQL query to answer the following question: `How many million people in the US viewed the episode titled "Behind the Scenes"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28081876_6" ( "series_no" real, "season_no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many million people in the US viewed the episode titled "Behind the Scenes"?`: ```sql
SELECT "original_air_date" FROM "table1_28081876_6" WHERE "u_s_viewers_millions"='1.57';
## Task Generate a SQL query to answer the following question: `When was originally aired the episode with an audience of 1.57 million us viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28081876_6" ( "series_no" real, "season_no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `When was originally aired the episode with an audience of 1.57 million us viewers?`: ```sql
SELECT "season_no" FROM "table1_28081876_6" WHERE "production_code"=401;
## Task Generate a SQL query to answer the following question: `What season number was assigned to the episode identified with the production code 401? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28081876_6" ( "series_no" real, "season_no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What season number was assigned to the episode identified with the production code 401? `: ```sql
SELECT MAX("total") FROM "top_assistants" WHERE "position"='DF';
## Task Generate a SQL query to answer the following question: `List the number of assists for the DF.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_assistants" ( "position" text, "number" real, "player" text, "super_league" real, "champions_league" real, "swiss_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `List the number of assists for the DF.`: ```sql
SELECT MIN("super_league") FROM "top_assistants" WHERE "champions_league"=0;
## Task Generate a SQL query to answer the following question: `List the lowest super league for a 0 champion league.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_assistants" ( "position" text, "number" real, "player" text, "super_league" real, "champions_league" real, "swiss_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `List the lowest super league for a 0 champion league.`: ```sql
SELECT MIN("total") FROM "top_assistants";
## Task Generate a SQL query to answer the following question: `What is the minimum sum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_assistants" ( "position" text, "number" real, "player" text, "super_league" real, "champions_league" real, "swiss_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the minimum sum?`: ```sql
SELECT "intermediate_sprints_classification_klasyfikacja_najaktywniejszych" FROM "category_leadership_table" WHERE "winner"='Daniel Martin';
## Task Generate a SQL query to answer the following question: `What was the intermediate sprint classification for the race whose winner was Daniel Martin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "category_leadership_table" ( "stage" real, "winner" text, "general_classification_ta_koszulka" text, "mountains_classification_klasyfikacja_g_rska" text, "intermediate_sprints_classification_klasyfikacja_najaktywniejszych" text, "points_classification_klasyfikacja_punktowa" text, "teams_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the intermediate sprint classification for the race whose winner was Daniel Martin?`: ```sql
SELECT "teams_classification" FROM "category_leadership_table" WHERE "general_classification_ta_koszulka"='Allan Davis';
## Task Generate a SQL query to answer the following question: `Which teams classification winners had a general classification winner of Allan Davis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "category_leadership_table" ( "stage" real, "winner" text, "general_classification_ta_koszulka" text, "mountains_classification_klasyfikacja_g_rska" text, "intermediate_sprints_classification_klasyfikacja_najaktywniejszych" text, "points_classification_klasyfikacja_punktowa" text, "teams_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Which teams classification winners had a general classification winner of Allan Davis?`: ```sql
SELECT "points_classification_klasyfikacja_punktowa" FROM "category_leadership_table" WHERE "teams_classification"='Lampre-Farnese';
## Task Generate a SQL query to answer the following question: `Who won the points classification when the teams classification winner was Lampre-Farnese?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "category_leadership_table" ( "stage" real, "winner" text, "general_classification_ta_koszulka" text, "mountains_classification_klasyfikacja_g_rska" text, "intermediate_sprints_classification_klasyfikacja_najaktywniejszych" text, "points_classification_klasyfikacja_punktowa" text, "teams_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the points classification when the teams classification winner was Lampre-Farnese?`: ```sql
SELECT "english_word" FROM "other_slavic_languages" WHERE "ukrainian"='Дякую (diakuju)';
## Task Generate a SQL query to answer the following question: `How do you say the ukrainian word дякую (diakuju) in English?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_slavic_languages" ( "english_word" text, "slovak" text, "czech" text, "rusyn" text, "ukrainian" text, "belarusian" text, "polish" text, "serbo_croatian" text, "bulgarian" text ); ### SQL Given the database schema, here is the SQL query that answers `How do you say the ukrainian word дякую (diakuju) in English?`: ```sql
SELECT COUNT("rusyn") FROM "other_slavic_languages" WHERE "bulgarian"='купува (kupuva)';
## Task Generate a SQL query to answer the following question: `How many words are there in rusyn for the bulgarian word купува (kupuva)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_slavic_languages" ( "english_word" text, "slovak" text, "czech" text, "rusyn" text, "ukrainian" text, "belarusian" text, "polish" text, "serbo_croatian" text, "bulgarian" text ); ### SQL Given the database schema, here is the SQL query that answers `How many words are there in rusyn for the bulgarian word купува (kupuva)?`: ```sql
SELECT "new_adherents_per_year" FROM "table1_28137918_5" WHERE "religion"='Buddhism';
## Task Generate a SQL query to answer the following question: `Name the new adherents per year for buddhism` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28137918_5" ( "religion" text, "births" real, "conversions" text, "new_adherents_per_year" real, "growth_rate" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the new adherents per year for buddhism`: ```sql
SELECT COUNT("new_adherents_per_year") FROM "table1_28137918_5" WHERE "religion"='Confucianism';
## Task Generate a SQL query to answer the following question: `Name the number of new adherents per year for confucianism` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28137918_5" ( "religion" text, "births" real, "conversions" text, "new_adherents_per_year" real, "growth_rate" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of new adherents per year for confucianism`: ```sql
SELECT MIN("births") FROM "table1_28137918_5" WHERE "conversions"='26,333';
## Task Generate a SQL query to answer the following question: `Name the least births for conversion being 26,333` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28137918_5" ( "religion" text, "births" real, "conversions" text, "new_adherents_per_year" real, "growth_rate" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the least births for conversion being 26,333`: ```sql
SELECT MIN("new_adherents_per_year") FROM "table1_28137918_5";
## Task Generate a SQL query to answer the following question: `Name the least amount of new adherents per year` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28137918_5" ( "religion" text, "births" real, "conversions" text, "new_adherents_per_year" real, "growth_rate" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the least amount of new adherents per year`: ```sql
SELECT "religion" FROM "table1_28137918_5" WHERE "growth_rate"='1.56%';
## Task Generate a SQL query to answer the following question: `Name the religion that has a growth rate of 1.56%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28137918_5" ( "religion" text, "births" real, "conversions" text, "new_adherents_per_year" real, "growth_rate" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the religion that has a growth rate of 1.56%`: ```sql
SELECT "length" FROM "current_fleet" WHERE "propulsion"='Controllable pitch propeller';
## Task Generate a SQL query to answer the following question: `What is the length when the propulsion is controllable pitch propeller?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_fleet" ( "vessel" text, "built" real, "max_speed" text, "length" text, "breadth" text, "flag" text, "propulsion" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the length when the propulsion is controllable pitch propeller?`: ```sql
SELECT "max_speed" FROM "current_fleet" WHERE "vessel"='Gallion';
## Task Generate a SQL query to answer the following question: `What is the max speed when the vessel is gallion?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_fleet" ( "vessel" text, "built" real, "max_speed" text, "length" text, "breadth" text, "flag" text, "propulsion" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the max speed when the vessel is gallion?`: ```sql
SELECT COUNT("breadth") FROM "current_fleet" WHERE "vessel"='Marianarray';
## Task Generate a SQL query to answer the following question: `How many breadth entries are there when the vessel is marianarray?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_fleet" ( "vessel" text, "built" real, "max_speed" text, "length" text, "breadth" text, "flag" text, "propulsion" text ); ### SQL Given the database schema, here is the SQL query that answers `How many breadth entries are there when the vessel is marianarray?`: ```sql
SELECT "propulsion" FROM "current_fleet" WHERE "vessel"='Marianarray';
## Task Generate a SQL query to answer the following question: `What is the propulsion when the vessel is marianarray?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_fleet" ( "vessel" text, "built" real, "max_speed" text, "length" text, "breadth" text, "flag" text, "propulsion" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the propulsion when the vessel is marianarray?`: ```sql
SELECT COUNT("breadth") FROM "current_fleet" WHERE "propulsion"='Jet';
## Task Generate a SQL query to answer the following question: `How many breadth entries are there when propulsion is jet?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_fleet" ( "vessel" text, "built" real, "max_speed" text, "length" text, "breadth" text, "flag" text, "propulsion" text ); ### SQL Given the database schema, here is the SQL query that answers `How many breadth entries are there when propulsion is jet?`: ```sql
SELECT "production_code" FROM "table1_28116528_1" WHERE "title"='\"Chuck Versus the Balcony\"';
## Task Generate a SQL query to answer the following question: `What is the production code for "chuck versus the balcony"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28116528_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the production code for "chuck versus the balcony"?`: ```sql
SELECT "title" FROM "table1_28116528_1" WHERE "production_code"='3X6306';
## Task Generate a SQL query to answer the following question: `What episode title had a production code of 3x6306?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28116528_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What episode title had a production code of 3x6306?`: ```sql
SELECT "original_air_date" FROM "table1_28116528_1" WHERE "production_code"='3X6316';
## Task Generate a SQL query to answer the following question: `What date did the episode with a production code of 3x6316 originally air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28116528_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What date did the episode with a production code of 3x6316 originally air?`: ```sql
SELECT "mens_doubles" FROM "polish_open" WHERE "womens_singles"='Wu Yang';
## Task Generate a SQL query to answer the following question: `Who won the mens doubles when wu yang won the womens singles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "polish_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the mens doubles when wu yang won the womens singles?`: ```sql
SELECT "year_location" FROM "polish_open" WHERE "womens_singles"='Fan Ying';
## Task Generate a SQL query to answer the following question: `What year and where was the tournament when fan ying won the womens singles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "polish_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `What year and where was the tournament when fan ying won the womens singles?`: ```sql
SELECT "mens_singles" FROM "polish_open" WHERE "womens_singles"='Lau Sui Fei';
## Task Generate a SQL query to answer the following question: `Who won the mens singles when lau sui fei won the womens singles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "polish_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the mens singles when lau sui fei won the womens singles?`: ```sql
SELECT "mens_doubles" FROM "polish_open" WHERE "mens_singles"='Wang Hao';
## Task Generate a SQL query to answer the following question: `Who won the mens doubles when wang hao won the mens singles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "polish_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the mens doubles when wang hao won the mens singles?`: ```sql
SELECT "mens_singles" FROM "english_open" WHERE "womens_singles"='Yoshie Takada';
## Task Generate a SQL query to answer the following question: `Who won in the men singles group in the year when Yoshie Takada won in the women singles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "english_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won in the men singles group in the year when Yoshie Takada won in the women singles?`: ```sql
SELECT "year_location" FROM "english_open" WHERE "mens_singles"='Chen Qi';
## Task Generate a SQL query to answer the following question: `When and where did Chen Qi win in men singles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "english_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `When and where did Chen Qi win in men singles?`: ```sql
SELECT "mens_singles" FROM "table1_28138035_27" WHERE "womens_doubles"='Wang Nan Zhang Yining';
## Task Generate a SQL query to answer the following question: `Who is listed under mens singles when womens has wang nan zhang yining?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28138035_27" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is listed under mens singles when womens has wang nan zhang yining?`: ```sql
SELECT COUNT("womens_singles") FROM "table1_28138035_27" WHERE "womens_doubles"='Li Xiaodan Wen Jia';
## Task Generate a SQL query to answer the following question: `How many womens singles entries are there when womens doubles is li xiaodan wen jia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28138035_27" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `How many womens singles entries are there when womens doubles is li xiaodan wen jia?`: ```sql
SELECT "womens_singles" FROM "table1_28138035_27" WHERE "year_location"='1998 Doha';
## Task Generate a SQL query to answer the following question: `Who is listed under womens singles when year location is 1998 doha?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28138035_27" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is listed under womens singles when year location is 1998 doha?`: ```sql
SELECT "mens_singles" FROM "table1_28138035_27" WHERE "year_location"='2009 Doha';
## Task Generate a SQL query to answer the following question: `Who is listed under mens singles when the year location is 2009 doha?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28138035_27" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is listed under mens singles when the year location is 2009 doha?`: ```sql
SELECT COUNT("year_location") FROM "japan_open" WHERE "womens_doubles"='Jing Junhong Li Jiawei';
## Task Generate a SQL query to answer the following question: `How many year locations are there for the womens doubles in jing junhong li jiawei?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "japan_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `How many year locations are there for the womens doubles in jing junhong li jiawei?`: ```sql
SELECT COUNT("mens_singles") FROM "japan_open" WHERE "mens_doubles"='Chen Qi Ma Lin';
## Task Generate a SQL query to answer the following question: `How many players are there for mens singles when chen qi ma lin played mens doubles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "japan_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `How many players are there for mens singles when chen qi ma lin played mens doubles?`: ```sql
SELECT "mens_doubles" FROM "japan_open" WHERE "year_location"='1999 Kobe';
## Task Generate a SQL query to answer the following question: `Who played mens doubles for the 1999 kobe tour?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "japan_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who played mens doubles for the 1999 kobe tour?`: ```sql
SELECT "year_location" FROM "japan_open" WHERE "womens_doubles"='Jing Junhong Li Jiawei';
## Task Generate a SQL query to answer the following question: `Where was the tour when jing junhong li jiawei played womens doubles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "japan_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the tour when jing junhong li jiawei played womens doubles?`: ```sql
SELECT COUNT("year_location") FROM "japan_open" WHERE "mens_doubles"='Lin Gaoyuan Wu Jiaji';
## Task Generate a SQL query to answer the following question: `How many years did lin gaoyuan wu jiaji play mens doubles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "japan_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years did lin gaoyuan wu jiaji play mens doubles?`: ```sql
SELECT COUNT("mens_doubles") FROM "japan_open" WHERE "womens_singles"='Guo Yue';
## Task Generate a SQL query to answer the following question: `How many people are shown for mens doubles when guo yue played womens singles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "japan_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people are shown for mens doubles when guo yue played womens singles?`: ```sql
SELECT "womens_singles" FROM "us_open" WHERE "mens_singles"='Jean-Michel Saive';
## Task Generate a SQL query to answer the following question: `Who won the Womens Singles in the year the Jean-Michel Saive won the Mens Singles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "us_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the Womens Singles in the year the Jean-Michel Saive won the Mens Singles?`: ```sql
SELECT "year_location" FROM "us_open" WHERE "mens_singles"='Liu Guozheng';
## Task Generate a SQL query to answer the following question: `In what year and location did Liu Guozheng win the Mens Singles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "us_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `In what year and location did Liu Guozheng win the Mens Singles?`: ```sql
SELECT "year_location" FROM "us_open" WHERE "mens_singles"='Wang Liqin';
## Task Generate a SQL query to answer the following question: `In what year and location did Wang Liqin win the Mens Singles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "us_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `In what year and location did Wang Liqin win the Mens Singles?`: ```sql
SELECT "mens_doubles" FROM "china_open" WHERE "year_location"='2006 Guangzhou';
## Task Generate a SQL query to answer the following question: `Who won the mens doubles at the 2006 guangzhou event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "china_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the mens doubles at the 2006 guangzhou event?`: ```sql
SELECT COUNT("mens_singles") FROM "china_open" WHERE "womens_doubles"='China';
## Task Generate a SQL query to answer the following question: `How many times was the womens doubles in china?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "china_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times was the womens doubles in china?`: ```sql
SELECT COUNT("womens_doubles") FROM "china_open" WHERE "womens_singles"='Li Ju' AND "mens_singles"='Wang Liqin';
## Task Generate a SQL query to answer the following question: `How many times did li ju win the womens singles and wang liqin win the mens singles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "china_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times did li ju win the womens singles and wang liqin win the mens singles?`: ```sql
SELECT "mens_singles" FROM "brazil_open" WHERE "womens_doubles"='Lee Eun-Sil Moon Hyun-Jung';
## Task Generate a SQL query to answer the following question: `Name the mens singles for lee eun-sil moon hyun-jung` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "brazil_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the mens singles for lee eun-sil moon hyun-jung`: ```sql
SELECT COUNT("womens_doubles") FROM "brazil_open" WHERE "year_location"='2011 Rio de Janeiro';
## Task Generate a SQL query to answer the following question: `Name the number of womens doubles for 2011 rio de janeiro` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "brazil_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of womens doubles for 2011 rio de janeiro`: ```sql
SELECT "year_location" FROM "brazil_open" WHERE "womens_singles"='Haruna Fukuoka';
## Task Generate a SQL query to answer the following question: `Name the year location for haruna fukuoka` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "brazil_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the year location for haruna fukuoka`: ```sql
SELECT "mens_doubles" FROM "brazil_open" WHERE "mens_singles"='Dimitrij Ovtcharov';
## Task Generate a SQL query to answer the following question: `Name the mens doubles for dimitrij ovtcharov` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "brazil_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the mens doubles for dimitrij ovtcharov`: ```sql
SELECT COUNT("womens_singles") FROM "brazil_open" WHERE "year_location"='1999 Rio de Janeiro';
## Task Generate a SQL query to answer the following question: `Name the number of womens singles for 1999 rio de janeiro` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "brazil_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of womens singles for 1999 rio de janeiro`: ```sql
SELECT "womens_doubles" FROM "brazil_open" WHERE "mens_singles"='Werner Schlager';
## Task Generate a SQL query to answer the following question: `Name the womens doubles for werner schlager` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "brazil_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the womens doubles for werner schlager`: ```sql
SELECT "womens_doubles" FROM "slovenian_open" WHERE "womens_singles"='Ding Ning';
## Task Generate a SQL query to answer the following question: `Who was the womens double winner when the womens singles winner was Ding Ning?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "slovenian_open" ( "year_location" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the womens double winner when the womens singles winner was Ding Ning?`: ```sql
SELECT "written_by" FROM "table1_28140578_1" WHERE "no_in_series"=19;
## Task Generate a SQL query to answer the following question: `Who wrote episode number 19 in the series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28140578_1" ( "no_in_series" 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 wrote episode number 19 in the series?`: ```sql
SELECT "marks" FROM "season_statistics" WHERE "tackles"=3;
## Task Generate a SQL query to answer the following question: `How many marks are there when tackles are 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_statistics" ( "year" real, "team" text, "number" real, "games" real, "kicks" real, "handballs" real, "total_disposals" real, "marks" real, "tackles" real, "goals" real, "behinds" real, "goal_accuracy_pct" text, "brownlow_medal_votes" real ); ### SQL Given the database schema, here is the SQL query that answers `How many marks are there when tackles are 3?`: ```sql
SELECT "goal_accuracy_pct" FROM "season_statistics" WHERE "total_disposals"=481;
## Task Generate a SQL query to answer the following question: `What was the goal accuracy % when the total disposals are 481?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_statistics" ( "year" real, "team" text, "number" real, "games" real, "kicks" real, "handballs" real, "total_disposals" real, "marks" real, "tackles" real, "goals" real, "behinds" real, "goal_accuracy_pct" text, "brownlow_medal_votes" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the goal accuracy % when the total disposals are 481?`: ```sql
SELECT "directed_by" FROM "table1_28140590_1" WHERE "title"='\"It''s a Wonderful Lie\"';
## Task Generate a SQL query to answer the following question: `Who directed "it's a wonderful lie"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28140590_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 "it's a wonderful lie"?`: ```sql
SELECT "original_air_date" FROM "table1_28140590_1" WHERE "production_code"=60072;
## Task Generate a SQL query to answer the following question: `What date did the episode with a production code of 60072 originally air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28140590_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 did the episode with a production code of 60072 originally air?`: ```sql
SELECT COUNT("directed_by") FROM "table1_28146944_2" WHERE "title"='\"Fail Fish\"';
## Task Generate a SQL query to answer the following question: `How many different people directed the episode titled "Fail Fish"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28146944_2" ( "no_in_series" real, "title" text, "directed_by" text, "story_storyboards_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different people directed the episode titled "Fail Fish"?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_28146944_2" WHERE "title"='\"Peopleing\"';
## Task Generate a SQL query to answer the following question: `How many millions of people in the US watched the episode titled "Peopleing"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28146944_2" ( "no_in_series" real, "title" text, "directed_by" text, "story_storyboards_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many millions of people in the US watched the episode titled "Peopleing"?`: ```sql