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