output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "outcome" FROM "doubles_7_2_titles_5_runners_up" WHERE "championship"='Zurich';
## Task Generate a SQL query to answer the following question: `Name the outcome for zurich` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_7_2_titles_5_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the outcome for zurich`: ```sql
SELECT COUNT("surface") FROM "doubles_7_2_titles_5_runners_up" WHERE "score"='4-6, 2-6';
## Task Generate a SQL query to answer the following question: `Name the number of surfaces for 4-6, 2-6` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_7_2_titles_5_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of surfaces for 4-6, 2-6`: ```sql
SELECT MIN("08_09_gp_jgp_2nd") FROM "pairs" WHERE "07_08_gp_jgp_best"=223;
## Task Generate a SQL query to answer the following question: `What is the least 08-09 gp/jgp 2nd was when the 07-08 gp/jgp best is 223?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pairs" ( "rank" real, "ws_points" real, "name" text, "country" text, "08_09_i_o_best" real, "08_09_gp_jgp_best" real, "08_09_gp_jgp_2nd" real, "08_09_oi_best" real, "08_09_oi_2nd" real, "07_08_i_o_best" real, "07_08_gp_jgp_best" real, "07_08_gp_jgp_2nd" real, "07_08_oi_best" real, "07_08_oi_2nd" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the least 08-09 gp/jgp 2nd was when the 07-08 gp/jgp best is 223?`: ```sql
SELECT MIN("08_09_i_o_best") FROM "pairs";
## Task Generate a SQL query to answer the following question: `What is the least 08-09 i/o best?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pairs" ( "rank" real, "ws_points" real, "name" text, "country" text, "08_09_i_o_best" real, "08_09_gp_jgp_best" real, "08_09_gp_jgp_2nd" real, "08_09_oi_best" real, "08_09_oi_2nd" real, "07_08_i_o_best" real, "07_08_gp_jgp_best" real, "07_08_gp_jgp_2nd" real, "07_08_oi_best" real, "07_08_oi_2nd" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the least 08-09 i/o best?`: ```sql
SELECT COUNT("rank") FROM "pairs" WHERE "name"='Keauna McLaughlin / Rockne Brubaker';
## Task Generate a SQL query to answer the following question: `How many times is keauna mclaughlin / rockne brubaker ranked?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pairs" ( "rank" real, "ws_points" real, "name" text, "country" text, "08_09_i_o_best" real, "08_09_gp_jgp_best" real, "08_09_gp_jgp_2nd" real, "08_09_oi_best" real, "08_09_oi_2nd" real, "07_08_i_o_best" real, "07_08_gp_jgp_best" real, "07_08_gp_jgp_2nd" real, "07_08_oi_best" real, "07_08_oi_2nd" real ); ### SQL Given the database schema, here is the SQL query that answers `How many times is keauna mclaughlin / rockne brubaker ranked?`: ```sql
SELECT "sprint_classification" FROM "jersey_progress" WHERE "aggressive_rider"='Michael Barry';
## Task Generate a SQL query to answer the following question: `Name the sprint classification for michael barry` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jersey_progress" ( "stage_winner" text, "general_classification" text, "sprint_classification" text, "mountains_classification" text, "youth_classification" text, "aggressive_rider" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the sprint classification for michael barry`: ```sql
SELECT "youth_classification" FROM "jersey_progress" WHERE "aggressive_rider"='Michael Barry';
## Task Generate a SQL query to answer the following question: `Name the youth classification for michael barry` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jersey_progress" ( "stage_winner" text, "general_classification" text, "sprint_classification" text, "mountains_classification" text, "youth_classification" text, "aggressive_rider" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the youth classification for michael barry`: ```sql
SELECT "mountains_classification" FROM "jersey_progress" WHERE "aggressive_rider"='Bradley White';
## Task Generate a SQL query to answer the following question: `Name the mountains classification for bradley white` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jersey_progress" ( "stage_winner" text, "general_classification" text, "sprint_classification" text, "mountains_classification" text, "youth_classification" text, "aggressive_rider" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the mountains classification for bradley white`: ```sql
SELECT "max_downstream_throughput_mbit_s" FROM "profiles" WHERE "profile"='8b';
## Task Generate a SQL query to answer the following question: `List all mbit/s with profiles of 8b.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "profiles" ( "profile" text, "bandwidth_m_hz" text, "number_of_carriers" real, "carrier_bandwidth_k_hz" text, "power_d_bm" text, "max_downstream_throughput_mbit_s" real ); ### SQL Given the database schema, here is the SQL query that answers `List all mbit/s with profiles of 8b.`: ```sql
SELECT "bandwidth_m_hz" FROM "profiles" WHERE "profile"='8b';
## Task Generate a SQL query to answer the following question: `What are the mhz when the profile is 8b?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "profiles" ( "profile" text, "bandwidth_m_hz" text, "number_of_carriers" real, "carrier_bandwidth_k_hz" text, "power_d_bm" text, "max_downstream_throughput_mbit_s" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the mhz when the profile is 8b?`: ```sql
SELECT "max_downstream_throughput_mbit_s" FROM "profiles" WHERE "power_d_bm"='+17.5';
## Task Generate a SQL query to answer the following question: `What are the highest mbit/s when the dbm is +17.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "profiles" ( "profile" text, "bandwidth_m_hz" text, "number_of_carriers" real, "carrier_bandwidth_k_hz" text, "power_d_bm" text, "max_downstream_throughput_mbit_s" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the highest mbit/s when the dbm is +17.5?`: ```sql
SELECT "power_d_bm" FROM "profiles" WHERE "profile"='8a';
## Task Generate a SQL query to answer the following question: `List all dbm's when profiles are 8a.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "profiles" ( "profile" text, "bandwidth_m_hz" text, "number_of_carriers" real, "carrier_bandwidth_k_hz" text, "power_d_bm" text, "max_downstream_throughput_mbit_s" real ); ### SQL Given the database schema, here is the SQL query that answers `List all dbm's when profiles are 8a.`: ```sql
SELECT MIN("number_of_carriers") FROM "profiles";
## Task Generate a SQL query to answer the following question: `What is the lowest number of carriers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "profiles" ( "profile" text, "bandwidth_m_hz" text, "number_of_carriers" real, "carrier_bandwidth_k_hz" text, "power_d_bm" text, "max_downstream_throughput_mbit_s" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest number of carriers?`: ```sql
SELECT "directed_by" FROM "table1_23958944_5" WHERE "no_by_season"=21;
## Task Generate a SQL query to answer the following question: `Who directed episode 21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23958944_5" ( "no_by_series" real, "no_by_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_number" real, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed episode 21?`: ```sql
SELECT "no_by_series" FROM "table1_23958944_5" WHERE "title"='\"Pandora\"';
## Task Generate a SQL query to answer the following question: `What is the series number of the episode "Pandora"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23958944_5" ( "no_by_series" real, "no_by_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_number" real, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the series number of the episode "Pandora"?`: ```sql
SELECT MIN("no_by_season") FROM "table1_23958944_5" WHERE "u_s_viewers_in_millions"='10.81';
## Task Generate a SQL query to answer the following question: `What episode was watched by 10.81 million US viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23958944_5" ( "no_by_series" real, "no_by_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_number" real, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What episode was watched by 10.81 million US viewers?`: ```sql
SELECT COUNT("no_by_season") FROM "table1_23958944_5" WHERE "title"='\"Cops & Robbers\"';
## Task Generate a SQL query to answer the following question: `How many episodes are titled "Cops & Robbers"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23958944_5" ( "no_by_series" real, "no_by_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_number" real, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes are titled "Cops & Robbers"?`: ```sql
SELECT "title" FROM "table1_23958944_5" WHERE "directed_by"='Bryan Spicer' AND "written_by"='Terence Paul Winter';
## Task Generate a SQL query to answer the following question: `What episode is directed by Bryan Spicer and written by Terence Paul Winter?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23958944_5" ( "no_by_series" real, "no_by_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_number" real, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What episode is directed by Bryan Spicer and written by Terence Paul Winter?`: ```sql
SELECT "no_by_series" FROM "table1_23958944_6" WHERE "no_by_season"=19;
## Task Generate a SQL query to answer the following question: `Name the number of series for 19` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23958944_6" ( "no_by_series" real, "no_by_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_number" real, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of series for 19`: ```sql
SELECT "u_s_viewers_in_millions" FROM "table1_23958944_6" WHERE "production_number"=520;
## Task Generate a SQL query to answer the following question: `Name the viewers for 520` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23958944_6" ( "no_by_series" real, "no_by_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_number" real, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the viewers for 520`: ```sql
SELECT COUNT("written_by") FROM "table1_23958944_2" WHERE "no_by_series"=8;
## Task Generate a SQL query to answer the following question: `How many different writers have written the episode with series number 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23958944_2" ( "no_by_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_number" real, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different writers have written the episode with series number 8?`: ```sql
SELECT "directed_by" FROM "table1_23958944_2" WHERE "title"='\"Hell Hath No Fury\"';
## Task Generate a SQL query to answer the following question: `Who is the director of the episode titled "Hell hath no fury"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23958944_2" ( "no_by_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_number" real, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the director of the episode titled "Hell hath no fury"?`: ```sql
SELECT "directed_by" FROM "table1_23958944_2" WHERE "title"='\"Ghosts\"';
## Task Generate a SQL query to answer the following question: `Who directed the episode titled "Ghosts"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23958944_2" ( "no_by_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_number" real, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode titled "Ghosts"?`: ```sql
SELECT "title" FROM "table1_23958944_2" WHERE "production_number"=103;
## Task Generate a SQL query to answer the following question: `What's the title of the episode with production number 103?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23958944_2" ( "no_by_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_number" real, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the title of the episode with production number 103?`: ```sql
SELECT "original_air_date" FROM "table1_23958944_2" WHERE "title"='\"Hell Hath No Fury\"';
## Task Generate a SQL query to answer the following question: `When did the episode titled "Hell hath no fury" air for the first time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23958944_2" ( "no_by_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_number" real, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the episode titled "Hell hath no fury" air for the first time?`: ```sql
SELECT "name" FROM "regular_season_statistics" WHERE "goals"=1 AND "position"='FW';
## Task Generate a SQL query to answer the following question: `who has the 1 goal and the position is fw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season_statistics" ( "name" text, "nationality" text, "position" text, "athletica_career" text, "appearances" real, "starts" real, "minutes" real, "goals" real, "assists" real ); ### SQL Given the database schema, here is the SQL query that answers `who has the 1 goal and the position is fw?`: ```sql
SELECT COUNT("release_date") FROM "list_of_songs_released_in_2007" WHERE "year"=1988 AND "additional_rock_band_3_features"='None';
## Task Generate a SQL query to answer the following question: `How many release dates are there for year of 1988 and additional rock band 3 features is none?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs_released_in_2007" ( "song_title" text, "artist" text, "year" real, "genre" text, "single_pack_name" text, "release_date" text, "family_friendly" text, "additional_rock_band_3_features" text ); ### SQL Given the database schema, here is the SQL query that answers `How many release dates are there for year of 1988 and additional rock band 3 features is none?`: ```sql
SELECT "artist" FROM "list_of_songs_released_in_2007" WHERE "song_title"='\" ...And Justice for All \"';
## Task Generate a SQL query to answer the following question: `Who is the artist for the song title of " ...and justice for all "?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs_released_in_2007" ( "song_title" text, "artist" text, "year" real, "genre" text, "single_pack_name" text, "release_date" text, "family_friendly" text, "additional_rock_band_3_features" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the artist for the song title of " ...and justice for all "?`: ```sql
SELECT "year" FROM "list_of_songs_released_in_2007" WHERE "song_title"='\" Little Sister \"';
## Task Generate a SQL query to answer the following question: `What is the year for the song title of " little sister "?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs_released_in_2007" ( "song_title" text, "artist" text, "year" real, "genre" text, "single_pack_name" text, "release_date" text, "family_friendly" text, "additional_rock_band_3_features" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year for the song title of " little sister "?`: ```sql
SELECT COUNT("single_pack_name") FROM "list_of_songs_released_in_2007" WHERE "song_title"='\" Rockaway Beach \"';
## Task Generate a SQL query to answer the following question: `How many single / pack names are there for the song title of " rockaway beach "?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs_released_in_2007" ( "song_title" text, "artist" text, "year" real, "genre" text, "single_pack_name" text, "release_date" text, "family_friendly" text, "additional_rock_band_3_features" text ); ### SQL Given the database schema, here is the SQL query that answers `How many single / pack names are there for the song title of " rockaway beach "?`: ```sql
SELECT MAX("year") FROM "list_of_songs_released_in_2007" WHERE "genre"='Emo' AND "artist"='All-American Rejects' AND "song_title"='\" Move Along \"';
## Task Generate a SQL query to answer the following question: `What is the year for the genre of emo and artist is all-american rejects and song title is " move along "?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs_released_in_2007" ( "song_title" text, "artist" text, "year" real, "genre" text, "single_pack_name" text, "release_date" text, "family_friendly" text, "additional_rock_band_3_features" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year for the genre of emo and artist is all-american rejects and song title is " move along "?`: ```sql
SELECT "nationality" FROM "all_time_saint_louis_athletica_statistic" WHERE "minutes"=0 AND "position"='MF' AND "athletica_career"='2009';
## Task Generate a SQL query to answer the following question: `What is the nationality associated with 0 minutes, position of MF, and an Athletica career of 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_saint_louis_athletica_statistic" ( "name" text, "nationality" text, "position" text, "athletica_career" text, "appearances" real, "starts" real, "minutes" real, "goals" real, "assists" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the nationality associated with 0 minutes, position of MF, and an Athletica career of 2009?`: ```sql
SELECT "position" FROM "playoff_statistics" WHERE "nationality"='United States' AND "minutes"=30;
## Task Generate a SQL query to answer the following question: `What is the position of the player who is from the United States and has 30 minutes? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoff_statistics" ( "name" text, "nationality" text, "position" text, "appearances" real, "starts" real, "minutes" real, "goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of the player who is from the United States and has 30 minutes? `: ```sql
SELECT MAX("goals") FROM "playoff_statistics";
## Task Generate a SQL query to answer the following question: `What is the most amount of goals any of the players had? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoff_statistics" ( "name" text, "nationality" text, "position" text, "appearances" real, "starts" real, "minutes" real, "goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most amount of goals any of the players had? `: ```sql
SELECT "year" FROM "list_of_songs_released_in_2008" WHERE "song_title"='\"Red Tandy\"';
## Task Generate a SQL query to answer the following question: `What year did the song "Red Tandy" come out?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs_released_in_2008" ( "song_title" text, "artist" text, "year" text, "genre" text, "single_pack_name" text, "release_date" text, "family_friendly" text, "additional_rock_band_3_features" text ); ### SQL Given the database schema, here is the SQL query that answers `What year did the song "Red Tandy" come out?`: ```sql
SELECT "song_title" FROM "list_of_songs_released_in_2008" WHERE "artist"='Dixie Chicks';
## Task Generate a SQL query to answer the following question: `What is the song for Dixie Chicks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs_released_in_2008" ( "song_title" text, "artist" text, "year" text, "genre" text, "single_pack_name" text, "release_date" text, "family_friendly" text, "additional_rock_band_3_features" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the song for Dixie Chicks?`: ```sql
SELECT "title" FROM "table1_23981882_1" WHERE "no_in_season"=7;
## Task Generate a SQL query to answer the following question: `What is the episode title for number 7 in the season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23981882_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the episode title for number 7 in the season?`: ```sql
SELECT "special" FROM "2000_2002_specials" WHERE "challenger"='Dominique Bouchet';
## Task Generate a SQL query to answer the following question: `What is the special when the challenger is dominique bouchet?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_2002_specials" ( "special" text, "original_airdate" text, "iron_chef" text, "challenger" text, "challenger_specialty" text, "theme_ingredient" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the special when the challenger is dominique bouchet?`: ```sql
SELECT "winner" FROM "2000_2002_specials" WHERE "iron_chef"='Hiroyuki Sakai';
## Task Generate a SQL query to answer the following question: `Who was the winner when the iron chef is hiroyuki sakai?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_2002_specials" ( "special" text, "original_airdate" text, "iron_chef" text, "challenger" text, "challenger_specialty" text, "theme_ingredient" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner when the iron chef is hiroyuki sakai?`: ```sql
SELECT "challenger" FROM "2000_2002_specials" WHERE "winner"='Kimio Nonaga';
## Task Generate a SQL query to answer the following question: `Who was the challenger when winner was kimio nonaga?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_2002_specials" ( "special" text, "original_airdate" text, "iron_chef" text, "challenger" text, "challenger_specialty" text, "theme_ingredient" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the challenger when winner was kimio nonaga?`: ```sql
SELECT "winner" FROM "2000_2002_specials" WHERE "original_airdate"='January 5, 2000' AND "challenger_specialty"='French';
## Task Generate a SQL query to answer the following question: `Who was the winner for the original airdate is january 5, 2000 and challenger specialty is french?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_2002_specials" ( "special" text, "original_airdate" text, "iron_chef" text, "challenger" text, "challenger_specialty" text, "theme_ingredient" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner for the original airdate is january 5, 2000 and challenger specialty is french?`: ```sql
SELECT COUNT("overall_episode_num") FROM "1993" WHERE "iron_chef"='Yutaka Ishinabe' AND "challenger_specialty"='French';
## Task Generate a SQL query to answer the following question: `How many episodes had Yutaka Ishinabe as the iron chef specializing in french cousin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1993" ( "overall_episode_num" real, "original_airdate" text, "iron_chef" text, "challenger" text, "challenger_specialty" text, "theme_ingredient" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes had Yutaka Ishinabe as the iron chef specializing in french cousin?`: ```sql
SELECT MAX("overall_episode_num") FROM "1993" WHERE "original_airdate"='November 21, 1993';
## Task Generate a SQL query to answer the following question: `What episode number originally aired on November 21, 1993?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1993" ( "overall_episode_num" real, "original_airdate" text, "iron_chef" text, "challenger" text, "challenger_specialty" text, "theme_ingredient" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `What episode number originally aired on November 21, 1993?`: ```sql
SELECT "challenger" FROM "1993" WHERE "overall_episode_num"=5;
## Task Generate a SQL query to answer the following question: `Who was the challenger on Episode 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1993" ( "overall_episode_num" real, "original_airdate" text, "iron_chef" text, "challenger" text, "challenger_specialty" text, "theme_ingredient" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the challenger on Episode 5?`: ```sql
SELECT COUNT("iron_chef") FROM "1993" WHERE "challenger_specialty"='Japanese';
## Task Generate a SQL query to answer the following question: `How many iron chefs were there when the challenge specialty was Japanese cuisine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1993" ( "overall_episode_num" real, "original_airdate" text, "iron_chef" text, "challenger" text, "challenger_specialty" text, "theme_ingredient" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `How many iron chefs were there when the challenge specialty was Japanese cuisine?`: ```sql
SELECT "qualifying_end_date" FROM "summary_of_qualification" WHERE "qualifying_start_date"='Qualifying start date';
## Task Generate a SQL query to answer the following question: `What is the qualifying end date when the qualifying start date is qualifying start date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_qualification" ( "confederation" text, "teams_started" text, "teams_that_have_secured_qualification" text, "teams_that_can_still_qualify" text, "teams_that_have_been_eliminated" text, "remaining_places_in_finals" text, "total_places_in_finals" text, "qualifying_start_date" text, "qualifying_end_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the qualifying end date when the qualifying start date is qualifying start date?`: ```sql
SELECT "teams_that_can_still_qualify" FROM "summary_of_qualification" WHERE "teams_that_have_secured_qualification"='0' AND "teams_started"='52';
## Task Generate a SQL query to answer the following question: `How many teams can still qualify when there are 0 teams that have secured qualification and 52 teams started?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_qualification" ( "confederation" text, "teams_started" text, "teams_that_have_secured_qualification" text, "teams_that_can_still_qualify" text, "teams_that_have_been_eliminated" text, "remaining_places_in_finals" text, "total_places_in_finals" text, "qualifying_start_date" text, "qualifying_end_date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many teams can still qualify when there are 0 teams that have secured qualification and 52 teams started?`: ```sql
SELECT "teams_that_have_been_eliminated" FROM "summary_of_qualification" WHERE "teams_started"='11';
## Task Generate a SQL query to answer the following question: `How many teams eliminated when 11 teams started?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_qualification" ( "confederation" text, "teams_started" text, "teams_that_have_secured_qualification" text, "teams_that_can_still_qualify" text, "teams_that_have_been_eliminated" text, "remaining_places_in_finals" text, "total_places_in_finals" text, "qualifying_start_date" text, "qualifying_end_date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many teams eliminated when 11 teams started?`: ```sql
SELECT "confederation" FROM "summary_of_qualification" WHERE "remaining_places_in_finals"='4';
## Task Generate a SQL query to answer the following question: `What is the confederation when there are 4 places remaining in the finals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_qualification" ( "confederation" text, "teams_started" text, "teams_that_have_secured_qualification" text, "teams_that_can_still_qualify" text, "teams_that_have_been_eliminated" text, "remaining_places_in_finals" text, "total_places_in_finals" text, "qualifying_start_date" text, "qualifying_end_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the confederation when there are 4 places remaining in the finals?`: ```sql
SELECT COUNT("qualifying_start_date") FROM "summary_of_qualification" WHERE "confederation"='CONCACAF';
## Task Generate a SQL query to answer the following question: `How many qualifying start dates for the Concacaf confederation?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_qualification" ( "confederation" text, "teams_started" text, "teams_that_have_secured_qualification" text, "teams_that_can_still_qualify" text, "teams_that_have_been_eliminated" text, "remaining_places_in_finals" text, "total_places_in_finals" text, "qualifying_start_date" text, "qualifying_end_date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many qualifying start dates for the Concacaf confederation?`: ```sql
SELECT "remaining_places_in_finals" FROM "summary_of_qualification" WHERE "teams_that_can_still_qualify"='1' AND "teams_that_have_secured_qualification"='0';
## Task Generate a SQL query to answer the following question: `How many remaining places in finals when 1 team can still qualify and 0 teams have secured qualification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_qualification" ( "confederation" text, "teams_started" text, "teams_that_have_secured_qualification" text, "teams_that_can_still_qualify" text, "teams_that_have_been_eliminated" text, "remaining_places_in_finals" text, "total_places_in_finals" text, "qualifying_start_date" text, "qualifying_end_date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many remaining places in finals when 1 team can still qualify and 0 teams have secured qualification?`: ```sql
SELECT "world_record" FROM "records" WHERE "14_july_1998"='13 August 1997';
## Task Generate a SQL query to answer the following question: `What is the world record when 14 July 1998 is 13 August 1997?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "hicham_el_guerrouj_mar" text, "3_26_00" text, "rome_italy" text, "14_july_1998" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the world record when 14 July 1998 is 13 August 1997?`: ```sql
SELECT COUNT("3_26_00") FROM "records" WHERE "world_record"='Championship record';
## Task Generate a SQL query to answer the following question: `How many of 3:26.00 have a championship record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "hicham_el_guerrouj_mar" text, "3_26_00" text, "rome_italy" text, "14_july_1998" text ); ### SQL Given the database schema, here is the SQL query that answers `How many of 3:26.00 have a championship record?`: ```sql
SELECT COUNT("3_26_00") FROM "records" WHERE "hicham_el_guerrouj_mar"='Hudson de Souza ( BRA )';
## Task Generate a SQL query to answer the following question: `How many of 3:26.00 when hicham el guerrouj ( mar ) is hudson de souza ( bra )?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "hicham_el_guerrouj_mar" text, "3_26_00" text, "rome_italy" text, "14_july_1998" text ); ### SQL Given the database schema, here is the SQL query that answers `How many of 3:26.00 when hicham el guerrouj ( mar ) is hudson de souza ( bra )?`: ```sql
SELECT "world_record" FROM "records" WHERE "saif_saaeed_shaheen_qat"='Saif Saaeed Shaheen ( QAT )';
## Task Generate a SQL query to answer the following question: `When saif saaeed shaheen (qat) is the saif saaeed shaheen ( qat ) what is the world record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "saif_saaeed_shaheen_qat" text, "7_53_63" text, "brussels_belgium" text, "3_september_2004" text ); ### SQL Given the database schema, here is the SQL query that answers `When saif saaeed shaheen (qat) is the saif saaeed shaheen ( qat ) what is the world record?`: ```sql
SELECT "3_september_2004" FROM "records" WHERE "saif_saaeed_shaheen_qat"='Daniel Lincoln ( USA )';
## Task Generate a SQL query to answer the following question: `When daniel lincoln ( usa ) is the saif saaeed shaheen ( qat ) What is the date for September 3rd, 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "saif_saaeed_shaheen_qat" text, "7_53_63" text, "brussels_belgium" text, "3_september_2004" text ); ### SQL Given the database schema, here is the SQL query that answers `When daniel lincoln ( usa ) is the saif saaeed shaheen ( qat ) What is the date for September 3rd, 2004?`: ```sql
SELECT "3_september_2004" FROM "records" WHERE "saif_saaeed_shaheen_qat"='Saif Saaeed Shaheen ( QAT )';
## Task Generate a SQL query to answer the following question: `When saif saaeed shaheen ( qat ) is the saif saaeed shaheen ( qat ) what is the date on September 3rd, 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "saif_saaeed_shaheen_qat" text, "7_53_63" text, "brussels_belgium" text, "3_september_2004" text ); ### SQL Given the database schema, here is the SQL query that answers `When saif saaeed shaheen ( qat ) is the saif saaeed shaheen ( qat ) what is the date on September 3rd, 2004?`: ```sql
SELECT COUNT("26_july_1983") FROM "records" WHERE "munich_west_germany"='Beijing, China';
## Task Generate a SQL query to answer the following question: `What is the 26 July 1983 total number if Munich, West Germany is Beijing, China?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "jarmila_kratochv_lov_tch" text, "1_53_28" text, "munich_west_germany" text, "26_july_1983" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 26 July 1983 total number if Munich, West Germany is Beijing, China?`: ```sql
SELECT COUNT("1_53_28") FROM "records" WHERE "world_record"='African record';
## Task Generate a SQL query to answer the following question: `If the world record is the African record, what is the 1:53.28 total number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "jarmila_kratochv_lov_tch" text, "1_53_28" text, "munich_west_germany" text, "26_july_1983" text ); ### SQL Given the database schema, here is the SQL query that answers `If the world record is the African record, what is the 1:53.28 total number?`: ```sql
SELECT "world_record" FROM "records" WHERE "1_53_28"='1:54.01';
## Task Generate a SQL query to answer the following question: `If 1:53.28 is 1:54.01, what is the world record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "jarmila_kratochv_lov_tch" text, "1_53_28" text, "munich_west_germany" text, "26_july_1983" text ); ### SQL Given the database schema, here is the SQL query that answers `If 1:53.28 is 1:54.01, what is the world record?`: ```sql
SELECT COUNT("episode_num") FROM "table1_2400842_1" WHERE "title"='\"A Perfect Crime\"';
## Task Generate a SQL query to answer the following question: `How many episodes have the title "a perfect crime"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2400842_1" ( "episode_num" real, "prod_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "filmed" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes have the title "a perfect crime"?`: ```sql
SELECT "directed_by" FROM "table1_2400842_1" WHERE "prod_num"=109;
## Task Generate a SQL query to answer the following question: `Who directed the epsiode with production number 109?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2400842_1" ( "episode_num" real, "prod_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text, "filmed" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the epsiode with production number 109?`: ```sql
SELECT MIN("finish") FROM "statistics" WHERE "driver"='Larry Dickson';
## Task Generate a SQL query to answer the following question: `Name the least finish for larry dickson` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics" ( "finish" real, "start" real, "car_no" real, "driver" text, "owner_sponsor" text, "car_make" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the least finish for larry dickson`: ```sql
SELECT "1_25_41" FROM "records" WHERE "7_august_2005"='19 November 2001';
## Task Generate a SQL query to answer the following question: `Name the 1:25 for 7 august 2005 being 19 november 2001` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "olimpiada_ivanova_rus" text, "1_25_41" text, "helsinki_finland" text, "7_august_2005" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 1:25 for 7 august 2005 being 19 november 2001`: ```sql
SELECT "26_august_2005" FROM "records" WHERE "world_record"='Asian record';
## Task Generate a SQL query to answer the following question: `Name the 26 august 2005 asian record` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "kenenisa_bekele_eth" text, "26_17_53" text, "bruxelles_belgium" text, "26_august_2005" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 26 august 2005 asian record`: ```sql
SELECT "bruxelles_belgium" FROM "records" WHERE "26_august_2005"='24 August 2003';
## Task Generate a SQL query to answer the following question: `Name the belgium for 26 august 2005 being 24 august 2003` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "kenenisa_bekele_eth" text, "26_17_53" text, "bruxelles_belgium" text, "26_august_2005" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the belgium for 26 august 2005 being 24 august 2003`: ```sql
SELECT COUNT("kenenisa_bekele_eth") FROM "records" WHERE "world_record"='African record';
## Task Generate a SQL query to answer the following question: `Name the total number of kenesia for african record` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "kenenisa_bekele_eth" text, "26_17_53" text, "bruxelles_belgium" text, "26_august_2005" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of kenesia for african record`: ```sql
SELECT COUNT("3rd_runner_up") FROM "top_5_winners" WHERE "putri_pariwisata_indonesia"='Albertina Fransisca Mailoa';
## Task Generate a SQL query to answer the following question: `List the number of runners up when albertina fransisca mailoa won the putri pariwisata contest?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_5_winners" ( "year" real, "putri_pariwisata_indonesia" text, "1st_runner_up" text, "2nd_runner_up" text, "3rd_runner_up" text, "4th_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `List the number of runners up when albertina fransisca mailoa won the putri pariwisata contest?`: ```sql
SELECT "1st_runner_up" FROM "top_5_winners" WHERE "2nd_runner_up"='Ratna Mariana';
## Task Generate a SQL query to answer the following question: `Who won 2nd place when ratna mariana won 3rd place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_5_winners" ( "year" real, "putri_pariwisata_indonesia" text, "1st_runner_up" text, "2nd_runner_up" text, "3rd_runner_up" text, "4th_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won 2nd place when ratna mariana won 3rd place?`: ```sql
SELECT "4th_runner_up" FROM "top_5_winners" WHERE "3rd_runner_up"='Jean Liatri Augustine Girsang';
## Task Generate a SQL query to answer the following question: `Who won 5th place when jean liatri augustine girsang won 4th place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_5_winners" ( "year" real, "putri_pariwisata_indonesia" text, "1st_runner_up" text, "2nd_runner_up" text, "3rd_runner_up" text, "4th_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won 5th place when jean liatri augustine girsang won 4th place?`: ```sql
SELECT "1st_runner_up" FROM "top_5_winners" WHERE "putri_pariwisata_indonesia"='Albertina Fransisca Mailoa';
## Task Generate a SQL query to answer the following question: `Who won 2nd place when albertina fransisca mailoa was the winner of the putri pariwisata contest?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_5_winners" ( "year" real, "putri_pariwisata_indonesia" text, "1st_runner_up" text, "2nd_runner_up" text, "3rd_runner_up" text, "4th_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won 2nd place when albertina fransisca mailoa was the winner of the putri pariwisata contest?`: ```sql
SELECT "3rd_runner_up" FROM "top_5_winners" WHERE "2nd_runner_up"='Audrie Adriana Sanova';
## Task Generate a SQL query to answer the following question: `Who won 4th place when audrie adriana sanova won 3rd place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_5_winners" ( "year" real, "putri_pariwisata_indonesia" text, "1st_runner_up" text, "2nd_runner_up" text, "3rd_runner_up" text, "4th_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won 4th place when audrie adriana sanova won 3rd place?`: ```sql
SELECT "4th_runner_up" FROM "top_5_winners" WHERE "3rd_runner_up"='Olivia Franciska';
## Task Generate a SQL query to answer the following question: `Who won 5th place with olivia franciska won 4th place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_5_winners" ( "year" real, "putri_pariwisata_indonesia" text, "1st_runner_up" text, "2nd_runner_up" text, "3rd_runner_up" text, "4th_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won 5th place with olivia franciska won 4th place?`: ```sql
SELECT "original_air_date" FROM "table1_24018430_3" WHERE "production_code"=216;
## Task Generate a SQL query to answer the following question: `what is the original air date for production code 216?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_24018430_3" ( "no_in_series" real, "no_in_season" 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 is the original air date for production code 216?`: ```sql
SELECT "written_by" FROM "table1_24018430_3" WHERE "directed_by"='Shannon Flynn';
## Task Generate a SQL query to answer the following question: `what is writtenand directed by shannon flynn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_24018430_3" ( "no_in_series" real, "no_in_season" 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 is writtenand directed by shannon flynn?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_24018430_3" WHERE "no_in_season"=12;
## Task Generate a SQL query to answer the following question: `what number is us viewers in season 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_24018430_3" ( "no_in_series" real, "no_in_season" 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 number is us viewers in season 12?`: ```sql
SELECT "population_density_km_2011" FROM "table1_24027047_1" WHERE "area_km_2011"='684.37';
## Task Generate a SQL query to answer the following question: `What was the population density in km2 for 2011 in the division where area in km2 was 684.37 in 2011? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_24027047_1" ( "administrative_division" text, "area_km_2011" text, "population_2001_census_adjusted" real, "population_2011_census_adjusted" real, "population_density_km_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the population density in km2 for 2011 in the division where area in km2 was 684.37 in 2011? `: ```sql
SELECT "administrative_division" FROM "table1_24027047_1" WHERE "population_density_km_2011"='8,552.4';
## Task Generate a SQL query to answer the following question: `What division had a population density of 8,552.4 km2 in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_24027047_1" ( "administrative_division" text, "area_km_2011" text, "population_2001_census_adjusted" real, "population_2011_census_adjusted" real, "population_density_km_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `What division had a population density of 8,552.4 km2 in 2011?`: ```sql
SELECT "area_km_2011" FROM "table1_24027047_1" WHERE "administrative_division"='Narsingdi District';
## Task Generate a SQL query to answer the following question: `What was the area in km2 in 2011 for the Narsingdi District?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_24027047_1" ( "administrative_division" text, "area_km_2011" text, "population_2001_census_adjusted" real, "population_2011_census_adjusted" real, "population_density_km_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the area in km2 in 2011 for the Narsingdi District?`: ```sql
SELECT "administrative_division" FROM "table1_24027047_1" WHERE "population_density_km_2011"='1,604.3';
## Task Generate a SQL query to answer the following question: `In what division was there a population density in km2 of 1,604.3 in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_24027047_1" ( "administrative_division" text, "area_km_2011" text, "population_2001_census_adjusted" real, "population_2011_census_adjusted" real, "population_density_km_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `In what division was there a population density in km2 of 1,604.3 in 2011?`: ```sql
SELECT "administrative_division" FROM "table1_24027047_1" WHERE "population_density_km_2011"='4,491.8';
## Task Generate a SQL query to answer the following question: `In what division was there a population density in km2 of 4,491.8 in 2011? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_24027047_1" ( "administrative_division" text, "area_km_2011" text, "population_2001_census_adjusted" real, "population_2011_census_adjusted" real, "population_density_km_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `In what division was there a population density in km2 of 4,491.8 in 2011? `: ```sql
SELECT "area_coordinator" FROM "political" WHERE "population_2010"=1715;
## Task Generate a SQL query to answer the following question: `What's the area coordinator for the municipality with 1715 people living in it in 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "political" ( "municipality" text, "no_of_barangays" real, "area_coordinator" text, "population_2010" real, "pop_density_per_km" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the area coordinator for the municipality with 1715 people living in it in 2010?`: ```sql
SELECT COUNT("no_of_barangays") FROM "political" WHERE "population_2010"=13824;
## Task Generate a SQL query to answer the following question: `How many different counts of tue number of Barangays are there for the municipality with 13824 citizens in 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "political" ( "municipality" text, "no_of_barangays" real, "area_coordinator" text, "population_2010" real, "pop_density_per_km" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different counts of tue number of Barangays are there for the municipality with 13824 citizens in 2010?`: ```sql
SELECT "no_of_barangays" FROM "political" WHERE "area_coordinator"='110.95';
## Task Generate a SQL query to answer the following question: `How many Barangays lived in the municipality with area coordinator of 110.95?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "political" ( "municipality" text, "no_of_barangays" real, "area_coordinator" text, "population_2010" real, "pop_density_per_km" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Barangays lived in the municipality with area coordinator of 110.95?`: ```sql
SELECT "circuit" FROM "table1_24037660_2" WHERE "rnd"=3;
## Task Generate a SQL query to answer the following question: `What circuit had rnd 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_24037660_2" ( "rnd" real, "circuit" text, "lmp_winning_team" text, "lmpc_winning_team" text, "gt_winning_team" text, "gtc_winning_team" text, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `What circuit had rnd 3?`: ```sql
SELECT COUNT("circuit") FROM "table1_24037660_2" WHERE "lmp_winning_team"='#1 Patrón Highcroft Racing' AND "gtc_winning_team"='#81 Alex Job Racing';
## Task Generate a SQL query to answer the following question: `How many circuits had a winning team of #1 patrón highcroft racing ang gtc winning team #81 alex job racing ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_24037660_2" ( "rnd" real, "circuit" text, "lmp_winning_team" text, "lmpc_winning_team" text, "gt_winning_team" text, "gtc_winning_team" text, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `How many circuits had a winning team of #1 patrón highcroft racing ang gtc winning team #81 alex job racing ?`: ```sql
SELECT "lmpc_winning_team" FROM "table1_24037660_2" WHERE "rnd"=3;
## Task Generate a SQL query to answer the following question: `What was the winning team lmpc in rnd 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_24037660_2" ( "rnd" real, "circuit" text, "lmp_winning_team" text, "lmpc_winning_team" text, "gt_winning_team" text, "gtc_winning_team" text, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the winning team lmpc in rnd 3?`: ```sql
SELECT "gtc_winning_team" FROM "table1_24037660_2" WHERE "lmp_winning_team"='#8 Drayson Racing';
## Task Generate a SQL query to answer the following question: `What was the gtc winning team when lmp winning team was #8 drayson racing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_24037660_2" ( "rnd" real, "circuit" text, "lmp_winning_team" text, "lmpc_winning_team" text, "gt_winning_team" text, "gtc_winning_team" text, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the gtc winning team when lmp winning team was #8 drayson racing?`: ```sql
SELECT "captain" FROM "team_summaries" WHERE "location"='Chaguaramas';
## Task Generate a SQL query to answer the following question: `Who is the captain in Chaguaramas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "team" text, "location" text, "stadium" text, "capacity" real, "manager" text, "captain" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the captain in Chaguaramas?`: ```sql
SELECT MIN("capacity") FROM "team_summaries" WHERE "stadium"='Sangre Grande Ground';
## Task Generate a SQL query to answer the following question: `What is the minimum capacity for Sangre Grande Ground?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "team" text, "location" text, "stadium" text, "capacity" real, "manager" text, "captain" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the minimum capacity for Sangre Grande Ground?`: ```sql
SELECT COUNT("capacity") FROM "team_summaries" WHERE "team"='North East Stars';
## Task Generate a SQL query to answer the following question: `What is the capacity for Sangre Grande Ground, home of the North East Stars?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "team" text, "location" text, "stadium" text, "capacity" real, "manager" text, "captain" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the capacity for Sangre Grande Ground, home of the North East Stars?`: ```sql
SELECT "stadium" FROM "team_summaries" WHERE "team"='San Juan Jabloteh';
## Task Generate a SQL query to answer the following question: `San Juan Jabloteh calls which stadium home?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "team" text, "location" text, "stadium" text, "capacity" real, "manager" text, "captain" text ); ### SQL Given the database schema, here is the SQL query that answers `San Juan Jabloteh calls which stadium home?`: ```sql
SELECT "innings" FROM "most_dismissals_in_test_career_wicketkee" WHERE "caught"=20;
## Task Generate a SQL query to answer the following question: `What was the innings when caught was 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the innings when caught was 20?`: ```sql
SELECT "matches" FROM "most_dismissals_in_test_career_wicketkee" WHERE "player"='MS Dhoni';
## Task Generate a SQL query to answer the following question: `What ist he matches where the player is ms dhoni?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real ); ### SQL Given the database schema, here is the SQL query that answers `What ist he matches where the player is ms dhoni?`: ```sql
SELECT "stumped" FROM "most_dismissals_in_test_career_wicketkee" WHERE "innings"=143;
## Task Generate a SQL query to answer the following question: `What is stumped when inning is 143?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real ); ### SQL Given the database schema, here is the SQL query that answers `What is stumped when inning is 143?`: ```sql
SELECT COUNT("dismissals") FROM "most_dismissals_in_test_career_wicketkee" WHERE "matches"=44;
## Task Generate a SQL query to answer the following question: `How many matches were 44?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real ); ### SQL Given the database schema, here is the SQL query that answers `How many matches were 44?`: ```sql
SELECT MIN("stumped") FROM "most_dismissals_in_test_career_wicketkee" WHERE "matches"=14;
## Task Generate a SQL query to answer the following question: `What is stumped when matches is 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real ); ### SQL Given the database schema, here is the SQL query that answers `What is stumped when matches is 14?`: ```sql
SELECT "crowned" FROM "capetian_associate_kings" WHERE "co_kingship_ceased"='17 September 1025';
## Task Generate a SQL query to answer the following question: `Name the crownded for 17 september 1025` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "capetian_associate_kings" ( "co_king" text, "relationship_to_monarch" text, "crowned" text, "co_kingship_ceased" text, "reason" text, "monarch" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the crownded for 17 september 1025`: ```sql
SELECT COUNT("monarch") FROM "capetian_associate_kings" WHERE "crowned"='23 May 1059';
## Task Generate a SQL query to answer the following question: `Name the total number of monarchs for 23 may 1059 crowned` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "capetian_associate_kings" ( "co_king" text, "relationship_to_monarch" text, "crowned" text, "co_kingship_ceased" text, "reason" text, "monarch" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of monarchs for 23 may 1059 crowned`: ```sql
SELECT "reason" FROM "capetian_associate_kings" WHERE "co_kingship_ceased"='20 July 1031';
## Task Generate a SQL query to answer the following question: `Name the reason for 20 july 1031` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "capetian_associate_kings" ( "co_king" text, "relationship_to_monarch" text, "crowned" text, "co_kingship_ceased" text, "reason" text, "monarch" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the reason for 20 july 1031`: ```sql