output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "country" FROM "table1_1949994_7" WHERE "end_date"='June 25';
## Task Generate a SQL query to answer the following question: `Where was the season that ended on June 25 located?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1949994_7" ( "no" real, "country" text, "local_title" text, "format" text, "start_date" text, "end_date" text, "episodes" text, "premiere_air_dates" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the season that ended on June 25 located?`: ```sql
SELECT "start_date" FROM "table1_1949994_7" WHERE "end_date"='July ?';
## Task Generate a SQL query to answer the following question: `When did the season that end in July ? start?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1949994_7" ( "no" real, "country" text, "local_title" text, "format" text, "start_date" text, "end_date" text, "episodes" text, "premiere_air_dates" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the season that end in July ? start?`: ```sql
SELECT "premiere_air_dates" FROM "table1_1949994_7" WHERE "format"='1 Team';
## Task Generate a SQL query to answer the following question: `When did the season with 1 team format premiere?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1949994_7" ( "no" real, "country" text, "local_title" text, "format" text, "start_date" text, "end_date" text, "episodes" text, "premiere_air_dates" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the season with 1 team format premiere?`: ```sql
SELECT "format" FROM "table1_1949994_7" WHERE "end_date"='June 25';
## Task Generate a SQL query to answer the following question: `What's the format of the season that ended on June 25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1949994_7" ( "no" real, "country" text, "local_title" text, "format" text, "start_date" text, "end_date" text, "episodes" text, "premiere_air_dates" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the format of the season that ended on June 25?`: ```sql
SELECT "premiere_air_dates" FROM "table1_1949994_7" WHERE "no"=3;
## Task Generate a SQL query to answer the following question: `What's season 3's premiere date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1949994_7" ( "no" real, "country" text, "local_title" text, "format" text, "start_date" text, "end_date" text, "episodes" text, "premiere_air_dates" text ); ### SQL Given the database schema, here is the SQL query that answers `What's season 3's premiere date?`: ```sql
SELECT "premiere_air_dates" FROM "table1_1949994_7" WHERE "country"='The Netherlands';
## Task Generate a SQL query to answer the following question: `When did the season located in the Netherlands premier?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1949994_7" ( "no" real, "country" text, "local_title" text, "format" text, "start_date" text, "end_date" text, "episodes" text, "premiere_air_dates" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the season located in the Netherlands premier?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_19501664_1" WHERE "directed_by"='Tony Phelan';
## Task Generate a SQL query to answer the following question: `Name the viewers for the episode directed by tony phelan` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19501664_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the viewers for the episode directed by tony phelan`: ```sql
SELECT "original_air_date" FROM "table1_19501664_1" WHERE "u_s_viewers_millions"='15.74';
## Task Generate a SQL query to answer the following question: `Name the original air date for 15.74 viewers` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19501664_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the original air date for 15.74 viewers`: ```sql
SELECT "title" FROM "table1_19501664_1" WHERE "u_s_viewers_millions"='18.29';
## Task Generate a SQL query to answer the following question: `Name the title for us viewers being 18.29` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19501664_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the title for us viewers being 18.29`: ```sql
SELECT "platforms" FROM "table1_19495707_1" WHERE "application"='CityEngine';
## Task Generate a SQL query to answer the following question: `Name the platforms for cityengine` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19495707_1" ( "application" text, "latest_release_date_and_version" text, "developed_by" text, "platforms" text, "mainly_used_for" text, "license" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the platforms for cityengine`: ```sql
SELECT "license" FROM "table1_19495707_1" WHERE "application"='E-on Vue';
## Task Generate a SQL query to answer the following question: `Name the license for e-on vue` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19495707_1" ( "application" text, "latest_release_date_and_version" text, "developed_by" text, "platforms" text, "mainly_used_for" text, "license" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the license for e-on vue`: ```sql
SELECT COUNT("developed_by") FROM "table1_19495707_1" WHERE "application"='Solid Edge';
## Task Generate a SQL query to answer the following question: `Name the number of developed by for solid edge` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19495707_1" ( "application" text, "latest_release_date_and_version" text, "developed_by" text, "platforms" text, "mainly_used_for" text, "license" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of developed by for solid edge`: ```sql
SELECT "license" FROM "table1_19495707_1" WHERE "latest_release_date_and_version"='2009-05-25 v 7.61';
## Task Generate a SQL query to answer the following question: `Name the license for 2009-05-25 v 7.61` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19495707_1" ( "application" text, "latest_release_date_and_version" text, "developed_by" text, "platforms" text, "mainly_used_for" text, "license" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the license for 2009-05-25 v 7.61`: ```sql
SELECT COUNT("application") FROM "table1_19495707_1" WHERE "mainly_used_for"='Modeling, Computer Aided Design, Animation';
## Task Generate a SQL query to answer the following question: `Name the number of application for modeling, computer aided design, animation` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19495707_1" ( "application" text, "latest_release_date_and_version" text, "developed_by" text, "platforms" text, "mainly_used_for" text, "license" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of application for modeling, computer aided design, animation`: ```sql
SELECT "application" FROM "table1_19495707_1" WHERE "developed_by"='Caligari Corporation';
## Task Generate a SQL query to answer the following question: `Name the application for caligari corporation` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19495707_1" ( "application" text, "latest_release_date_and_version" text, "developed_by" text, "platforms" text, "mainly_used_for" text, "license" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the application for caligari corporation`: ```sql
SELECT MIN("no") FROM "table1_1949994_8" WHERE "start_date"='June 6';
## Task Generate a SQL query to answer the following question: `What series number started production on June 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1949994_8" ( "no" real, "country" text, "local_title" text, "format" text, "start_date" text, "end_date" text, "episodes" real, "premiere_air_dates" text ); ### SQL Given the database schema, here is the SQL query that answers `What series number started production on June 6?`: ```sql
SELECT "format" FROM "table1_1949994_8" WHERE "local_title"='Fort Boyard: Ultimate Challenge';
## Task Generate a SQL query to answer the following question: `What was the production format for the series with the local title Fort Boyard: Ultimate Challenge?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1949994_8" ( "no" real, "country" text, "local_title" text, "format" text, "start_date" text, "end_date" text, "episodes" real, "premiere_air_dates" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the production format for the series with the local title Fort Boyard: Ultimate Challenge?`: ```sql
SELECT "premiere_air_dates" FROM "table1_1949994_8" WHERE "start_date"='June 16';
## Task Generate a SQL query to answer the following question: `What were the television air dates for the series that had a production start date of June 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1949994_8" ( "no" real, "country" text, "local_title" text, "format" text, "start_date" text, "end_date" text, "episodes" real, "premiere_air_dates" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the television air dates for the series that had a production start date of June 16?`: ```sql
SELECT MAX("no") FROM "table1_1949994_8" WHERE "local_title"='Fort Boyard';
## Task Generate a SQL query to answer the following question: `What series number had the local title of Fort Boyard?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1949994_8" ( "no" real, "country" text, "local_title" text, "format" text, "start_date" text, "end_date" text, "episodes" real, "premiere_air_dates" text ); ### SQL Given the database schema, here is the SQL query that answers `What series number had the local title of Fort Boyard?`: ```sql
SELECT MIN("episodes") FROM "table1_1949994_8";
## Task Generate a SQL query to answer the following question: `What was the minimum number of episodes in any of the series? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1949994_8" ( "no" real, "country" text, "local_title" text, "format" text, "start_date" text, "end_date" text, "episodes" real, "premiere_air_dates" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the minimum number of episodes in any of the series? `: ```sql
SELECT "week_num" FROM "table1_19508635_1" WHERE "theme"='The Beatles';
## Task Generate a SQL query to answer the following question: `Name the week number for the beatles` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19508635_1" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the week number for the beatles`: ```sql
SELECT "result" FROM "table1_19508635_1" WHERE "theme"='1980s';
## Task Generate a SQL query to answer the following question: `Name the result for 1980s` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19508635_1" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the result for 1980s`: ```sql
SELECT "order_num" FROM "table1_19508635_1" WHERE "theme"='1960s';
## Task Generate a SQL query to answer the following question: `Name the order number for 1960s` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19508635_1" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the order number for 1960s`: ```sql
SELECT "result" FROM "table1_19508635_1" WHERE "original_artist"='Dolly Parton';
## Task Generate a SQL query to answer the following question: `Name the result for dolly parton` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19508635_1" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the result for dolly parton`: ```sql
SELECT "song_choice" FROM "table1_19508635_1" WHERE "original_artist"='Michael Jackson';
## Task Generate a SQL query to answer the following question: `Name the song choice for michael jackson` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19508635_1" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the song choice for michael jackson`: ```sql
SELECT MAX("series_num") FROM "season_three_2011";
## Task Generate a SQL query to answer the following question: `What is the largest series number? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_three_2011" ( "series_num" real, "episode_num" real, "title" text, "written_by" text, "directed_by" text, "viewers" real, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest series number? `: ```sql
SELECT MAX("episode_num") FROM "season_three_2011" WHERE "title"='Jerusalem';
## Task Generate a SQL query to answer the following question: `What is the latest episode number with the title of Jerusalem? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_three_2011" ( "series_num" real, "episode_num" real, "title" text, "written_by" text, "directed_by" text, "viewers" real, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the latest episode number with the title of Jerusalem? `: ```sql
SELECT "original_airdate" FROM "season_three_2011" WHERE "written_by"='Michelle Offen';
## Task Generate a SQL query to answer the following question: `What was the original air date of the episode written by Michelle Offen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_three_2011" ( "series_num" real, "episode_num" real, "title" text, "written_by" text, "directed_by" text, "viewers" real, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the original air date of the episode written by Michelle Offen?`: ```sql
SELECT "title" FROM "season_three_2011" WHERE "written_by"='Vanessa Bates';
## Task Generate a SQL query to answer the following question: `What is the title of the episode written by Vanessa Bates? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_three_2011" ( "series_num" real, "episode_num" real, "title" text, "written_by" text, "directed_by" text, "viewers" real, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of the episode written by Vanessa Bates? `: ```sql
SELECT "original_airdate" FROM "season_three_2011" WHERE "title"='The Transit of Venus';
## Task Generate a SQL query to answer the following question: `What was the original air date for the episode Calle, The Transit of Venus? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_three_2011" ( "series_num" real, "episode_num" real, "title" text, "written_by" text, "directed_by" text, "viewers" real, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the original air date for the episode Calle, The Transit of Venus? `: ```sql
SELECT "completion_percentage" FROM "top_10_games_of_400_or_more_yards_by_cat" WHERE "yards_per_attempt"='Steve McNair : 2003';
## Task Generate a SQL query to answer the following question: `What is the completion percentage when yards per attempt was done by Steve McNair : 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_10_games_of_400_or_more_yards_by_cat" ( "rank" text, "rating" text, "completion_percentage" text, "touchdown_percentage" text, "yards_per_attempt" text, "total_yards" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the completion percentage when yards per attempt was done by Steve McNair : 2003?`: ```sql
SELECT "rank" FROM "top_10_games_of_400_or_more_yards_by_cat" WHERE "rating"='146.8';
## Task Generate a SQL query to answer the following question: `What rank has a rating of 146.8? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_10_games_of_400_or_more_yards_by_cat" ( "rank" text, "rating" text, "completion_percentage" text, "touchdown_percentage" text, "yards_per_attempt" text, "total_yards" text ); ### SQL Given the database schema, here is the SQL query that answers `What rank has a rating of 146.8? `: ```sql
SELECT "yards_per_attempt" FROM "top_10_games_of_400_or_more_yards_by_cat" WHERE "total_yards"='513';
## Task Generate a SQL query to answer the following question: `How many yards per attempt were there when total yards were 513?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_10_games_of_400_or_more_yards_by_cat" ( "rank" text, "rating" text, "completion_percentage" text, "touchdown_percentage" text, "yards_per_attempt" text, "total_yards" text ); ### SQL Given the database schema, here is the SQL query that answers `How many yards per attempt were there when total yards were 513?`: ```sql
SELECT MAX("series_num") FROM "season_two_2009" WHERE "written_by"='Kristen Dunphy and David Ogilvy';
## Task Generate a SQL query to answer the following question: `What is the series number for the episode written by Kristen Dunphy and David Ogilvy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_two_2009" ( "series_num" real, "episode_num" real, "title" text, "written_by" text, "directed_by" text, "viewers" real, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the series number for the episode written by Kristen Dunphy and David Ogilvy?`: ```sql
SELECT COUNT("directed_by") FROM "season_two_2009" WHERE "title"='The Lost Boy';
## Task Generate a SQL query to answer the following question: `If the title if the Lost Boy, how many directors were there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_two_2009" ( "series_num" real, "episode_num" real, "title" text, "written_by" text, "directed_by" text, "viewers" real, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `If the title if the Lost Boy, how many directors were there?`: ```sql
SELECT "title" FROM "season_two_2009" WHERE "written_by"='Michael Miller';
## Task Generate a SQL query to answer the following question: `What is the title for the episode that written by Michael Miller?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_two_2009" ( "series_num" real, "episode_num" real, "title" text, "written_by" text, "directed_by" text, "viewers" real, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title for the episode that written by Michael Miller?`: ```sql
SELECT "afc_championships" FROM "total_playoff_berths_while_in_the_afl_af" WHERE "playoff_berths"=17;
## Task Generate a SQL query to answer the following question: `If the playoff berth is 17, what is the AFC championship number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "total_playoff_berths_while_in_the_afl_af" ( "team" text, "division_titles" real, "playoff_berths" real, "afl_titles" real, "afc_championships" real, "super_bowl_championships" real ); ### SQL Given the database schema, here is the SQL query that answers `If the playoff berth is 17, what is the AFC championship number?`: ```sql
SELECT MIN("super_bowl_championships") FROM "total_playoff_berths_while_in_the_afl_af" WHERE "team"='New England Patriots';
## Task Generate a SQL query to answer the following question: `If the team in the New England Patriots, what is the super bowl championship minimum number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "total_playoff_berths_while_in_the_afl_af" ( "team" text, "division_titles" real, "playoff_berths" real, "afl_titles" real, "afc_championships" real, "super_bowl_championships" real ); ### SQL Given the database schema, here is the SQL query that answers `If the team in the New England Patriots, what is the super bowl championship minimum number?`: ```sql
SELECT MAX("afc_championships") FROM "total_playoff_berths_while_in_the_afl_af";
## Task Generate a SQL query to answer the following question: `What is the maximum number of AFC championships?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "total_playoff_berths_while_in_the_afl_af" ( "team" text, "division_titles" real, "playoff_berths" real, "afl_titles" real, "afc_championships" real, "super_bowl_championships" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum number of AFC championships?`: ```sql
SELECT COUNT("authors") FROM "table1_19523708_1" WHERE "original"='Carry On';
## Task Generate a SQL query to answer the following question: `How many authors are present when the original was Carry On?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19523708_1" ( "draw" real, "artist" text, "original" text, "english_meaning" text, "language" text, "authors" text ); ### SQL Given the database schema, here is the SQL query that answers `How many authors are present when the original was Carry On?`: ```sql
SELECT "draw" FROM "table1_19523708_1" WHERE "language"='English' AND "english_meaning"='Eyes That Never Lie';
## Task Generate a SQL query to answer the following question: `What was the draw for the english meaning Eyes that Never Lie?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19523708_1" ( "draw" real, "artist" text, "original" text, "english_meaning" text, "language" text, "authors" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the draw for the english meaning Eyes that Never Lie?`: ```sql
SELECT MAX("draw") FROM "table1_19523708_1";
## Task Generate a SQL query to answer the following question: `What is the highest draw represented?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19523708_1" ( "draw" real, "artist" text, "original" text, "english_meaning" text, "language" text, "authors" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest draw represented?`: ```sql
SELECT "artist" FROM "table1_19523708_1" WHERE "original"='Shake It, Europe';
## Task Generate a SQL query to answer the following question: `Who was the artist for the origin Shake it, Europe?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19523708_1" ( "draw" real, "artist" text, "original" text, "english_meaning" text, "language" text, "authors" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the artist for the origin Shake it, Europe?`: ```sql
SELECT COUNT("arena_capacity") FROM "teams" WHERE "head_coach"='Yuriy Korotkevich';
## Task Generate a SQL query to answer the following question: `What is the arena capacity of the arena in the town whose head coach is Yuriy Korotkevich?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "previous_season_2007_2008" text, "team" text, "town" text, "arena_capacity" text, "website" text, "head_coach" text, "foreign_players_max_2" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the arena capacity of the arena in the town whose head coach is Yuriy Korotkevich?`: ```sql
SELECT "arena_capacity" FROM "teams" WHERE "head_coach"='Roberto Serniotti';
## Task Generate a SQL query to answer the following question: `What is the arena capacity of the arena in the town whose head coach is Roberto Serniotti?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "previous_season_2007_2008" text, "team" text, "town" text, "arena_capacity" text, "website" text, "head_coach" text, "foreign_players_max_2" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the arena capacity of the arena in the town whose head coach is Roberto Serniotti?`: ```sql
SELECT "foreign_players_max_2" FROM "teams" WHERE "town"='Moscow';
## Task Generate a SQL query to answer the following question: `Who are the foreign players on team/s that play in Moscow?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "previous_season_2007_2008" text, "team" text, "town" text, "arena_capacity" text, "website" text, "head_coach" text, "foreign_players_max_2" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the foreign players on team/s that play in Moscow?`: ```sql
SELECT "previous_season_2007_2008" FROM "teams" WHERE "website"='www.novavolley.narod.ru';
## Task Generate a SQL query to answer the following question: `What are the previous season ranks of teams whose website is www.novavolley.narod.ru?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "previous_season_2007_2008" text, "team" text, "town" text, "arena_capacity" text, "website" text, "head_coach" text, "foreign_players_max_2" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the previous season ranks of teams whose website is www.novavolley.narod.ru?`: ```sql
SELECT MIN("indoor") FROM "2013_national_color_guard_competition_re" WHERE "inspection"=5;
## Task Generate a SQL query to answer the following question: `What are the minimum indoor results that have a 5 for inspection? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_national_color_guard_competition_re" ( "region" text, "wing" text, "inspection" real, "standard" real, "indoor" real, "outdoor" real, "written" real, "panel_quiz" real, "mile_run" real, "points" real, "overall" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the minimum indoor results that have a 5 for inspection? `: ```sql
SELECT MAX("written") FROM "2013_national_color_guard_competition_re" WHERE "standard"=2;
## Task Generate a SQL query to answer the following question: `What was the maximum number in written when the standard was 2? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_national_color_guard_competition_re" ( "region" text, "wing" text, "inspection" real, "standard" real, "indoor" real, "outdoor" real, "written" real, "panel_quiz" real, "mile_run" real, "points" real, "overall" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the maximum number in written when the standard was 2? `: ```sql
SELECT COUNT("points") FROM "2013_national_color_guard_competition_re" WHERE "mile_run"=3;
## Task Generate a SQL query to answer the following question: `How many point categories are there for the 3 mile run? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_national_color_guard_competition_re" ( "region" text, "wing" text, "inspection" real, "standard" real, "indoor" real, "outdoor" real, "written" real, "panel_quiz" real, "mile_run" real, "points" real, "overall" text ); ### SQL Given the database schema, here is the SQL query that answers `How many point categories are there for the 3 mile run? `: ```sql
SELECT "indoor" FROM "2013_national_color_guard_competition_re" WHERE "wing"='NJ';
## Task Generate a SQL query to answer the following question: `What is the indoor number for the NJ wing/ ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_national_color_guard_competition_re" ( "region" text, "wing" text, "inspection" real, "standard" real, "indoor" real, "outdoor" real, "written" real, "panel_quiz" real, "mile_run" real, "points" real, "overall" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the indoor number for the NJ wing/ `: ```sql
SELECT COUNT("indoor") FROM "2013_national_color_guard_competition_re" WHERE "region"='NER';
## Task Generate a SQL query to answer the following question: `What is the indoor number for the NER region? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_national_color_guard_competition_re" ( "region" text, "wing" text, "inspection" real, "standard" real, "indoor" real, "outdoor" real, "written" real, "panel_quiz" real, "mile_run" real, "points" real, "overall" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the indoor number for the NER region? `: ```sql
SELECT "winning_span" FROM "detailed_criteria" WHERE "name"='Martin Kaymer';
## Task Generate a SQL query to answer the following question: `What is the winning span of the name martin kaymer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "detailed_criteria" ( "rank" text, "name" text, "lifespan" text, "country" text, "wins" real, "majors" real, "winning_span" text, "span_years" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the winning span of the name martin kaymer?`: ```sql
SELECT "winning_span" FROM "detailed_criteria" WHERE "country"='England' AND "name"='Paul Casey';
## Task Generate a SQL query to answer the following question: `What is the winning span in the country of England with the name of paul casey?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "detailed_criteria" ( "rank" text, "name" text, "lifespan" text, "country" text, "wins" real, "majors" real, "winning_span" text, "span_years" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the winning span in the country of England with the name of paul casey?`: ```sql
SELECT "winning_span" FROM "detailed_criteria" WHERE "name"='Bernard Gallacher';
## Task Generate a SQL query to answer the following question: `What is the winning span for the name of bernard gallacher?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "detailed_criteria" ( "rank" text, "name" text, "lifespan" text, "country" text, "wins" real, "majors" real, "winning_span" text, "span_years" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the winning span for the name of bernard gallacher?`: ```sql
SELECT "winning_span" FROM "detailed_criteria" WHERE "rank"='5';
## Task Generate a SQL query to answer the following question: `What is the winning span with the rank of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "detailed_criteria" ( "rank" text, "name" text, "lifespan" text, "country" text, "wins" real, "majors" real, "winning_span" text, "span_years" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the winning span with the rank of 5?`: ```sql
SELECT COUNT("scorecard") FROM "table1_19576091_1" WHERE "date"='October 28';
## Task Generate a SQL query to answer the following question: `How many scorecards are there for the match on October 28? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19576091_1" ( "scorecard" real, "date" text, "venue" text, "team_1" text, "team_2" text, "result" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `How many scorecards are there for the match on October 28? `: ```sql
SELECT COUNT("venue") FROM "table1_19576091_1" WHERE "date"='November 6';
## Task Generate a SQL query to answer the following question: `How many venues were there for the match on November 6? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19576091_1" ( "scorecard" real, "date" text, "venue" text, "team_1" text, "team_2" text, "result" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `How many venues were there for the match on November 6? `: ```sql
SELECT "venue" FROM "table1_19576091_1" WHERE "date"='October 10';
## Task Generate a SQL query to answer the following question: `What was the venue for the match on October 10? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19576091_1" ( "scorecard" real, "date" text, "venue" text, "team_1" text, "team_2" text, "result" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the venue for the match on October 10? `: ```sql
SELECT "man_of_the_match" FROM "table1_19576091_1" WHERE "result"='Rockets won by 9 wickets';
## Task Generate a SQL query to answer the following question: `Who was the man of the match when the Rockets won by 9 wickets? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19576091_1" ( "scorecard" real, "date" text, "venue" text, "team_1" text, "team_2" text, "result" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the man of the match when the Rockets won by 9 wickets? `: ```sql
SELECT "vacator" FROM "table1_1958768_3" WHERE "district"='Wisconsin 1st';
## Task Generate a SQL query to answer the following question: `Name the vacator for wisconsin 1st` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1958768_3" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the vacator for wisconsin 1st`: ```sql
SELECT "successor" FROM "table1_1958768_3" WHERE "district"='Pennsylvania 15th';
## Task Generate a SQL query to answer the following question: `Name the successor for pennsylvania 15th` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1958768_3" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the successor for pennsylvania 15th`: ```sql
SELECT "circuit" FROM "table1_19598014_2" WHERE "challenge_winning_team"='#47 Orbit Racing';
## Task Generate a SQL query to answer the following question: `Name the circuit for #47 orbit racing ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19598014_2" ( "rnd" real, "circuit" text, "lmp1_winning_team" text, "lmp2_winning_team" text, "gt2_winning_team" text, "challenge_winning_team" text, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the circuit for #47 orbit racing `: ```sql
SELECT "gt2_winning_team" FROM "table1_19598014_2" WHERE "lmp2_winning_team"='Butch Leitzinger Marino Franchitti Ben Devlin';
## Task Generate a SQL query to answer the following question: `Name the gt2 winning team where lmp2 winning team and butch leitzinger marino franchitti ben devlin` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19598014_2" ( "rnd" real, "circuit" text, "lmp1_winning_team" text, "lmp2_winning_team" text, "gt2_winning_team" text, "challenge_winning_team" text, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the gt2 winning team where lmp2 winning team and butch leitzinger marino franchitti ben devlin`: ```sql
SELECT "lmp1_winning_team" FROM "table1_19598014_2" WHERE "rnd"=2 AND "lmp2_winning_team"='Adrian Fernández Luis Díaz';
## Task Generate a SQL query to answer the following question: `Name the lmp 1 winning team for rnd being 2 and adrian fernández luis díaz` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19598014_2" ( "rnd" real, "circuit" text, "lmp1_winning_team" text, "lmp2_winning_team" text, "gt2_winning_team" text, "challenge_winning_team" text, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the lmp 1 winning team for rnd being 2 and adrian fernández luis díaz`: ```sql
SELECT "capital" FROM "demographics" WHERE "area_km"=377930;
## Task Generate a SQL query to answer the following question: `Which capitals have an area of exactly 377930 square km?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "country" text, "area_km" real, "population" real, "population_density_per_km" real, "hdi_2011" text, "capital" text ); ### SQL Given the database schema, here is the SQL query that answers `Which capitals have an area of exactly 377930 square km?`: ```sql
SELECT COUNT("capital") FROM "demographics" WHERE "area_km"=1104;
## Task Generate a SQL query to answer the following question: `What is the total number of capitals that have an area of exactly 1104 square km?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "country" text, "area_km" real, "population" real, "population_density_per_km" real, "hdi_2011" text, "capital" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of capitals that have an area of exactly 1104 square km?`: ```sql
SELECT "capital" FROM "demographics" WHERE "population"=1339724852;
## Task Generate a SQL query to answer the following question: `What capital has a population of exactly 1339724852?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "country" text, "area_km" real, "population" real, "population_density_per_km" real, "hdi_2011" text, "capital" text ); ### SQL Given the database schema, here is the SQL query that answers `What capital has a population of exactly 1339724852?`: ```sql
SELECT COUNT("population") FROM "demographics" WHERE "capital"='Hong Kong';
## Task Generate a SQL query to answer the following question: `How many populations have a capital of Hong Kong?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "country" text, "area_km" real, "population" real, "population_density_per_km" real, "hdi_2011" text, "capital" text ); ### SQL Given the database schema, here is the SQL query that answers `How many populations have a capital of Hong Kong?`: ```sql
SELECT "male_population_2001" FROM "wise_district_demographics_http_gov_bih_" WHERE "growth_rate_1991_01"='36.16';
## Task Generate a SQL query to answer the following question: `What are all values for the male population in 2001 with a growth rate in 1991-01 of 36.16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wise_district_demographics_http_gov_bih_" ( "districts_of_bihar" text, "total_population_2001" real, "male_population_2001" real, "female_population_2001" real, "growth_rate_1981_91" text, "growth_rate_1991_01" text, "sex_ratio_1991" real, "sex_ratio_2001" real, "population_density_1991" real, "population_density_2001" real ); ### SQL Given the database schema, here is the SQL query that answers `What are all values for the male population in 2001 with a growth rate in 1991-01 of 36.16?`: ```sql
SELECT MIN("total_population_2001") FROM "wise_district_demographics_http_gov_bih_" WHERE "growth_rate_1991_01"='33.08';
## Task Generate a SQL query to answer the following question: `What is the least value for total population in 2001 with a growth rate in 1991-01 of 33.08?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wise_district_demographics_http_gov_bih_" ( "districts_of_bihar" text, "total_population_2001" real, "male_population_2001" real, "female_population_2001" real, "growth_rate_1981_91" text, "growth_rate_1991_01" text, "sex_ratio_1991" real, "sex_ratio_2001" real, "population_density_1991" real, "population_density_2001" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the least value for total population in 2001 with a growth rate in 1991-01 of 33.08?`: ```sql
SELECT "male_population_2001" FROM "wise_district_demographics_http_gov_bih_" WHERE "sex_ratio_1991"=896;
## Task Generate a SQL query to answer the following question: `What are all values for male population in 2001 when sex ratio in 1991 is 896?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wise_district_demographics_http_gov_bih_" ( "districts_of_bihar" text, "total_population_2001" real, "male_population_2001" real, "female_population_2001" real, "growth_rate_1981_91" text, "growth_rate_1991_01" text, "sex_ratio_1991" real, "sex_ratio_2001" real, "population_density_1991" real, "population_density_2001" real ); ### SQL Given the database schema, here is the SQL query that answers `What are all values for male population in 2001 when sex ratio in 1991 is 896?`: ```sql
SELECT "growth_rate_1991_01" FROM "wise_district_demographics_http_gov_bih_" WHERE "sex_ratio_2001"=937;
## Task Generate a SQL query to answer the following question: `What is every growth rate in 1991-2001 when sex ratio in 2001 is 937?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wise_district_demographics_http_gov_bih_" ( "districts_of_bihar" text, "total_population_2001" real, "male_population_2001" real, "female_population_2001" real, "growth_rate_1981_91" text, "growth_rate_1991_01" text, "sex_ratio_1991" real, "sex_ratio_2001" real, "population_density_1991" real, "population_density_2001" real ); ### SQL Given the database schema, here is the SQL query that answers `What is every growth rate in 1991-2001 when sex ratio in 2001 is 937?`: ```sql
SELECT "districts_of_bihar" FROM "wise_district_demographics_http_gov_bih_" WHERE "sex_ratio_1991"=864;
## Task Generate a SQL query to answer the following question: `What districts of Bihar have a sex ratio in 1991 of 864?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wise_district_demographics_http_gov_bih_" ( "districts_of_bihar" text, "total_population_2001" real, "male_population_2001" real, "female_population_2001" real, "growth_rate_1981_91" text, "growth_rate_1991_01" text, "sex_ratio_1991" real, "sex_ratio_2001" real, "population_density_1991" real, "population_density_2001" real ); ### SQL Given the database schema, here is the SQL query that answers `What districts of Bihar have a sex ratio in 1991 of 864?`: ```sql
SELECT "marriages_between_women" FROM "marriage_statistics" WHERE "pct_same_sex_marriages"='1.06';
## Task Generate a SQL query to answer the following question: `How many marriages between women have % same-sex marriages of 1.06?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "marriage_statistics" ( "year" text, "marriages_between_men" real, "marriages_between_women" real, "same_sex_marriages" real, "total_marriages" real, "pct_same_sex_marriages" text ); ### SQL Given the database schema, here is the SQL query that answers `How many marriages between women have % same-sex marriages of 1.06?`: ```sql
SELECT "pct_same_sex_marriages" FROM "marriage_statistics" WHERE "year"='2011';
## Task Generate a SQL query to answer the following question: `What is the % of same-sex marriages for the year of 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "marriage_statistics" ( "year" text, "marriages_between_men" real, "marriages_between_women" real, "same_sex_marriages" real, "total_marriages" real, "pct_same_sex_marriages" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the % of same-sex marriages for the year of 2011?`: ```sql
SELECT COUNT("pct_same_sex_marriages") FROM "marriage_statistics" WHERE "year"='2008';
## Task Generate a SQL query to answer the following question: `How many % same-sex marriages are there for the year 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "marriage_statistics" ( "year" text, "marriages_between_men" real, "marriages_between_women" real, "same_sex_marriages" real, "total_marriages" real, "pct_same_sex_marriages" text ); ### SQL Given the database schema, here is the SQL query that answers `How many % same-sex marriages are there for the year 2008?`: ```sql
SELECT COUNT("pct_same_sex_marriages") FROM "marriage_statistics" WHERE "marriages_between_men"=923;
## Task Generate a SQL query to answer the following question: `How many % same-sex marriages are marriages between men for 923? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "marriage_statistics" ( "year" text, "marriages_between_men" real, "marriages_between_women" real, "same_sex_marriages" real, "total_marriages" real, "pct_same_sex_marriages" text ); ### SQL Given the database schema, here is the SQL query that answers `How many % same-sex marriages are marriages between men for 923? `: ```sql
SELECT "original_air_date" FROM "table1_19632728_1" WHERE "episode_num"=2;
## Task Generate a SQL query to answer the following question: `When was the episode number 2 originally aired?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19632728_1" ( "season_num" real, "episode_num" real, "title" text, "director_s" text, "writer_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the episode number 2 originally aired?`: ```sql
SELECT "original_air_date" FROM "table1_19632728_1" WHERE "title"='\"The Parachute of Healing\"';
## Task Generate a SQL query to answer the following question: `When was the episode titled "The Parachute of Healing" originally aired?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19632728_1" ( "season_num" real, "episode_num" real, "title" text, "director_s" text, "writer_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the episode titled "The Parachute of Healing" originally aired?`: ```sql
SELECT "writer_s" FROM "table1_19632728_1" WHERE "title"='\"The Parachute of Healing\"';
## Task Generate a SQL query to answer the following question: `Who was the writer of the episode titled "The Parachute of Healing"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19632728_1" ( "season_num" real, "episode_num" real, "title" text, "director_s" text, "writer_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the writer of the episode titled "The Parachute of Healing"?`: ```sql
SELECT MAX("season_num") FROM "table1_19632728_1";
## Task Generate a SQL query to answer the following question: `What was the highest season number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_19632728_1" ( "season_num" real, "episode_num" real, "title" text, "director_s" text, "writer_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest season number?`: ```sql
SELECT "margin_of_victory" FROM "pga_tour_wins_8" WHERE "runner_s_up"='Steve Stricker';
## Task Generate a SQL query to answer the following question: `What was the margin of victory of Steve Stricker as a runner up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_8" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the margin of victory of Steve Stricker as a runner up?`: ```sql
SELECT "to_par" FROM "pga_tour_wins_8" WHERE "winning_score"='69-66-68=203';
## Task Generate a SQL query to answer the following question: `How many to par has the winning score of 69-66-68=203.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_8" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `How many to par has the winning score of 69-66-68=203.`: ```sql
SELECT MIN("no") FROM "pga_tour_wins_8" WHERE "tournament"='BMW Championship';
## Task Generate a SQL query to answer the following question: `What is the minimum number of the bmw championship tournament.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_8" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the minimum number of the bmw championship tournament.`: ```sql
SELECT COUNT("no") FROM "pga_tour_wins_8" WHERE "runner_s_up"='John Merrick';
## Task Generate a SQL query to answer the following question: `What is the total number of John Merrick as a runner up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_8" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of John Merrick as a runner up?`: ```sql
SELECT "horse" FROM "competitors_and_betting" WHERE "owner"='R. A. Scott';
## Task Generate a SQL query to answer the following question: `What horses does r. a. Scott own?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "competitors_and_betting" ( "sp" text, "number" real, "horse" text, "age" real, "handicap_st_lb" text, "jockey" text, "trainer" text, "owner" text, "colours" text, "finishing_position" text ); ### SQL Given the database schema, here is the SQL query that answers `What horses does r. a. Scott own?`: ```sql
SELECT COUNT("number") FROM "competitors_and_betting" WHERE "sp"='20/1' AND "finishing_position"='Fence 19';
## Task Generate a SQL query to answer the following question: `How many numbers have sp of 20/1 and a finishing position of fence 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "competitors_and_betting" ( "sp" text, "number" real, "horse" text, "age" real, "handicap_st_lb" text, "jockey" text, "trainer" text, "owner" text, "colours" text, "finishing_position" text ); ### SQL Given the database schema, here is the SQL query that answers `How many numbers have sp of 20/1 and a finishing position of fence 19?`: ```sql
SELECT "handicap_st_lb" FROM "competitors_and_betting" WHERE "horse"='Knowhere';
## Task Generate a SQL query to answer the following question: `Which handicap has the horse knowhere?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "competitors_and_betting" ( "sp" text, "number" real, "horse" text, "age" real, "handicap_st_lb" text, "jockey" text, "trainer" text, "owner" text, "colours" text, "finishing_position" text ); ### SQL Given the database schema, here is the SQL query that answers `Which handicap has the horse knowhere?`: ```sql
SELECT "colours" FROM "competitors_and_betting" WHERE "owner"='David Langdon';
## Task Generate a SQL query to answer the following question: `What colors does David Langdon use?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "competitors_and_betting" ( "sp" text, "number" real, "horse" text, "age" real, "handicap_st_lb" text, "jockey" text, "trainer" text, "owner" text, "colours" text, "finishing_position" text ); ### SQL Given the database schema, here is the SQL query that answers `What colors does David Langdon use?`: ```sql
SELECT "result" FROM "submissions" WHERE "film_title_used_in_nomination"='Baran';
## Task Generate a SQL query to answer the following question: `If the film title nominated is Baran, what was the result?` ### 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, "persian_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `If the film title nominated is Baran, what was the result?`: ```sql
SELECT "result" FROM "submissions" WHERE "persian_title"='میم مثل مادر';
## Task Generate a SQL query to answer the following question: `For the Persian Title میم مثل مادر, what were the results?` ### 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, "persian_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `For the Persian Title میم مثل مادر, what were the results?`: ```sql
SELECT "film_title_used_in_nomination" FROM "submissions" WHERE "persian_title"='گبه';
## Task Generate a SQL query to answer the following question: `For the Persian title گبه, What was the film title used for the nomination?` ### 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, "persian_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `For the Persian title گبه, What was the film title used for the nomination?`: ```sql
SELECT "year" FROM "buses" WHERE "transmission"='Allison B400R' AND "model"='BRT';
## Task Generate a SQL query to answer the following question: `What year had an Allison B400R transmission and a model of BRT?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "buses" ( "fleet_num" text, "year" real, "manufacture" text, "model" text, "length_ft" real, "engine" text, "transmission" text ); ### SQL Given the database schema, here is the SQL query that answers `What year had an Allison B400R transmission and a model of BRT?`: ```sql
SELECT "fleet_num" FROM "buses" WHERE "length_ft"=30;
## Task Generate a SQL query to answer the following question: `What is the fleet number when the length (ft) is 30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "buses" ( "fleet_num" text, "year" real, "manufacture" text, "model" text, "length_ft" real, "engine" text, "transmission" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fleet number when the length (ft) is 30?`: ```sql
SELECT "fleet_num" FROM "buses" WHERE "transmission"='Voith D863.4' AND "engine"='Cummins ISL';
## Task Generate a SQL query to answer the following question: `What is the fleet number when the transmission is Voith D863.4 and the engine is Cummins ISL?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "buses" ( "fleet_num" text, "year" real, "manufacture" text, "model" text, "length_ft" real, "engine" text, "transmission" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fleet number when the transmission is Voith D863.4 and the engine is Cummins ISL?`: ```sql
SELECT "year" FROM "buses" WHERE "transmission"='Voith D863.4' AND "engine"='Cummins ISM';
## Task Generate a SQL query to answer the following question: `Which year had a transmission of Voith D863.4 and a Cummins ISM engine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "buses" ( "fleet_num" text, "year" real, "manufacture" text, "model" text, "length_ft" real, "engine" text, "transmission" text ); ### SQL Given the database schema, here is the SQL query that answers `Which year had a transmission of Voith D863.4 and a Cummins ISM engine?`: ```sql
SELECT "college_junior_club_team" FROM "round_one" WHERE "player"='Ian Turnbull';
## Task Generate a SQL query to answer the following question: `Name the college/junior club team for ian turnbull` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the college/junior club team for ian turnbull`: ```sql
SELECT "position" FROM "round_three" WHERE "nhl_team"='Los Angeles Kings';
## Task Generate a SQL query to answer the following question: `Name the position for nhl team being los angeles kings` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the position for nhl team being los angeles kings`: ```sql
SELECT "nhl_team" FROM "round_three" WHERE "player"='Jeff Jacques';
## Task Generate a SQL query to answer the following question: `Name the nhl times for jeff jacques` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the nhl times for jeff jacques`: ```sql